[Cmake] CMake tests
Amitha Perera
perera at cs.rpi.edu
Tue May 14 12:25:30 EDT 2002
On Tue, May 14, 2002 at 09:39:38AM -0400, Brad King wrote:
> If you don't really need to run
> the other executable since the test is just about linking, then you really
> need only one ADD_TEST.
However, linking errors aren't caught by ctest--it's only check for
pass/fail is running the executable. So, if I specify exec1 as the
executable, but exec4 fails to link, the test would still pass. Which
leads to your other suggestion:
> If you want to run more than one executable, you could write a
> wrapper executable that doesn't link to anything, but runs the other
> executables.
Is there a convenient, platform independent way of doing this? Looking
at how CMake itself executes programs, there is non-trivial effort
involved. I'd rather not duplicate all that effort in the test
program.
Amitha.
More information about the CMake
mailing list