[CMake] Unit tests, but not CTest
Adolfo Rodríguez Tsouroukdissian
adolfo.rodriguez at pal-robotics.com
Fri Apr 23 11:59:44 EDT 2010
On Fri, Apr 23, 2010 at 5:56 PM, Magnus Therning <magnus at therning.org>wrote:
> On Fri, Apr 23, 2010 at 16:35, Tyler Roscoe <tyler at cryptio.net> wrote:
> > On Fri, Apr 23, 2010 at 04:24:06PM +0100, Magnus Therning wrote:
> >> A project that I'm currently trying to convert over to CMake has
> >> several unit tests written as standalone executables. Are there any
> >> examples around for integrating the running of such tests as part of
> >> the build in CMake?
> >
> > add_test just takes a command line. You can put whatever you want in
> > there and ctest will run it for you.
> >
> > http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:add_test
>
> Ah, yes, that comes closer to what I want. Thanks. Now I only want
> the test's stdout to be connected to the stdout so I can see the
> results immediately
>
Run ctest with the -V or -VV option
>
> /M.
>
> --
> Magnus Therning (OpenPGP: 0xAB4DFBA4)
> magnus@therning.org Jabber: magnus@therning.org
> http://therning.org/magnus identi.ca|twitter: magthe
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
--
Adolfo Rodríguez Tsouroukdissian, Ph. D.
Robotics engineer
PAL ROBOTICS S.L
http://www.pal-robotics.com
Tel. +34.93.414.53.47
Fax.+34.93.209.11.09
AVISO DE CONFIDENCIALIDAD: Este mensaje y sus documentos adjuntos, pueden
contener información privilegiada y/o confidencial que está dirigida
exclusivamente a su destinatario. Si usted recibe este mensaje y no es el
destinatario indicado, o el empleado encargado de su entrega a dicha
persona, por favor, notifíquelo inmediatamente y remita el mensaje original
a la dirección de correo electrónico indicada. Cualquier copia, uso o
distribución no autorizados de esta comunicación queda estrictamente
prohibida.
CONFIDENTIALITY NOTICE: This e-mail and the accompanying document(s) may
contain confidential information which is privileged and intended only for
the individual or entity to whom they are addressed. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution or use of this e-mail and/or accompanying document(s) is
strictly prohibited. If you have received this e-mail in error, please
immediately notify the sender at the above e-mail address.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100423/51638817/attachment.htm>
More information about the CMake
mailing list