[CMake] Simultaneous --build-and-test and CDash submission

David Cole david.cole at kitware.com
Thu Dec 9 06:29:13 EST 2010


On Thu, Dec 9, 2010 at 4:13 AM, Wojciech Migda <wojtek.golf at interia.pl> wrote:
> Hi,
>
> I have unit tests configured for CDash submissions. Submissions do work if I issue in sequence TWO commands which go pretty much like this:
>
> # configure the build system
> ${CMAKE_ROOT}${CMAKE_BINDIR}/cmake .
> # build tests
> make clean ; make
> # run tests
> ${CMAKE_ROOT}${CMAKE_BINDIR}/ctest
>
> However, when doing that CDash shows useful results only for the test phase - build info is missing and configure info shows only 3 lines despite removal of CMakeCache.txt.
>
> So I attepmted using the build-and-test option. I would expect this to work:
>
> /vob/tetra/tools/CMake/bin_linux_x86_64/ctest -D Experimental --build-and-test . . --build-generator 'Unix Makefiles' --build-makeprogram `which clearmake`
>
> but it only builds and tests --- '-D' option seems to be ignored.
>
> I also tried this:
>
> /vob/tetra/tools/CMake/bin_linux_x86_64/ctest --build-and-test . . --build-generator 'Unix Makefiles' --build-makeprogram `which clearmake` --test-command ./test_command.sh
>
> where test_command.sh executes 'ctest -D Experimental' but although it submission is achieved the CDash contents is the same as with the original two commands.
>
> So my question is how to achieve CDash submission with 'scratch' configure info (just as if cmake was invoked on clean environment), build info (compilation warnings and such) and test results by issueing single command ?
>
> Thanks for help,
>
> Wojtek
>
>
> ----------------------------------------------
> Księgowa radzi: Jak załozyć firmę w 15 minut?
> http://linkint.pl/f2842
>
> _______________________________________________
> 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


How about this?

# configure the build system
${CMAKE_ROOT}${CMAKE_BINDIR}/cmake .
# run an Experimental dashboard
${CMAKE_ROOT}${CMAKE_BINDIR}/ctest -D Experimental

Running an Experimental dashboard should execute configure, build and
test steps and submit the results to the CDash server. The initial
configure is necessary to configure some of the files that ctest reads
to know, for example, where the CDash server is.


HTH,
David


More information about the CMake mailing list