Alpine3D

Alpine3D Svn Source Tree

Root/trunk/tests/startScriptCoverage.cmake

1# simple Script that makes Experimental build with cTest and publie it on CDash with coverage informations.
2# This script need to be started be cron. The command for the cron is :
3# "ctest -S startScriptCoverage.cmake"
4
5# set for the thest source and binary directories
6SET(CTEST_SOURCE_DIRECTORY .)
7SET(CTEST_BINARY_DIRECTORY .)
8
9# set cTest commands to be used
10SET(CTEST_COMMAND "\"${CTEST_EXECUTABLE_NAME}\" -D Nightly")
11
12#set cMake command to be used
13SET(CTEST_CMAKE_COMMAND "\"${CMAKE_EXECUTABLE_NAME}\"")
14
15#also possible to set initial cache values for config to set that the test are build
16# BUILD NAME SET HERE DROUG CACHE.. OLD WAY TO OD BUT ONLY WORKING WAY
17SET(CTEST_INITIAL_CACHE "
18BUILD_TESTING:BOOL=ON
19BUILD_TESTING_WITH_COVERAGE:BOOL=ON
20BUILDNAME:STRING=Linux_Coverage_noOptim
21")

Archive Download this file

Revision: HEAD