[CMake] "ctest -T Test" does not run tests, "ctest" and "make test" do

Joris Dobbelsteen joris.dobbelsteen at sioux.eu
Wed Jun 29 05:59:35 EDT 2011


Hi all,

I'm currently migrating from custom build scripts to cmake and it has
been working quite good. At this point I'm integrating cmake/ctest with
Jenkins continuous integration.

However, I run into the problem that on the build server the system does
not run the tests when executing "cd "${WORKSPACE}/Build"
&& /usr/bin/ctest -M Continuous -T Test -C Debug --output-on-failure".
It prints:
>   Site: summit-buildserver3
>   Build name: Linux-c++
>Create new tag: 20110628-1838 - Continuous
CTest stops after this, even though there are numerous of tests it
should actually run. It also does not create the Test.xml file.

I use the option to generate the ".xml" file that I can import into
jenkins view (after conversion). It seems that running "make test" does
work, however. It only does not accept the "-T Test" option.

The sequence of commands executed is (between brackets is the directory:
[Build] $ /usr/bin/cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=
${WORKSPACE}/Install -DCMAKE_BUILD_TYPE=Debug -D ENABLE_COVERAGE=yes
${WORKSPACE}/Software
[Build] $ make
[Build] $ make install
[?] $ cd ${WORKSPACE}/Build && /usr/bin/ctest -M Continuous -T Test -C
Debug --output-on-failure

Does anyone know a solution or can you help me diagnose and solve this
issue?

Thanks.

-- 
With kind regards, met vriendelijke groeten, cordialement,

Joris Dobbelsteen
Software Engineer

Sioux Embedded Systems B.V. 
The Netherlands | Visit us at: www.sioux.eu




More information about the CMake mailing list