[CMake] ctest setup

Karl Merkley karl at elemtech.com
Mon Jun 19 11:14:21 EDT 2006


I'm trying to get a ctest script to automatically checkout, build,  
and run my test suite on Mac OS X 10.4.6.  I'm trying to develop one  
common template script that could be used on multiple platforms.     
It does the cvs checkout, runs cmake, but make never gets invoked.    
Any ideas on what I'm doing wrong?

    Thanks,
         Karl


SET (CTEST_SOURCE_DIRECTORY "/Users/kgmerk/projects/testing/cubitclaro")
SET (CTEST_BINARY_DIRECTORY "/Users/kgmerk/projects/testing/ 
cubitclaro/build")

# what cmake command to use for configuring this dashboard
SET (CTEST_CMAKE_COMMAND /usr/bin/cmake)

SET (CTEST_CVS_COMMAND "cvs")
SET (CTEST_CVS_CHECKOUT  "${CTEST_CMAKE_COMMAND} -E chdir /Users/ 
kgmerk/projects/testing ${CTEST_CVS_COMMAND} - 
d:pserver:kmerkle at server.eti:2405/usr/local/eng_sci/CVS co cubitclaro")

# which ctest command to use for running the dashboard
SET (CTEST_COMMAND "/usr/bin/ctest -D Experimental")


####################################################################
# The values in this section are optional you can either
# have them or leave them commented out
####################################################################

# should ctest wipe the binary tree before running
SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)

# this is the initial cache to use for the binary tree, be careful to  
escape
# any quotes inside of this string if you use it
SET (CTEST_INITIAL_CACHE "
MAKECOMMAND:STRING=make -i
CMAKE_MAKE_PROGRAM:FILEPATH=make
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
BUILDNAME:STRING=ETI-Mac
SITE:STRING=ETI
CVSCOMMAND:FILEPATH=cvs
")



More information about the CMake mailing list