Added ctest scripting directory.

This commit is contained in:
Ward Fisher 2012-11-14 20:18:42 +00:00
parent 272f489ae7
commit 5429f81c5a
2 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,51 @@
#####
# Some Test/System Setup
#####
set (CTEST_PROJECT_NAME "netCDF-C")
# Get Hostname
find_program(HOSTNAME_CMD NAMES hostname)
exec_program(${HOSTNAME_CMD} ARGS "-f" OUTPUT_VARIABLE HOSTNAME)
set(CTEST_SITE "${HOSTNAME}")
# Get system configuration
find_program(UNAME NAMES uname)
macro(getuname name flag)
exec_program("${UNAME}" ARGS "${flag}" OUTPUT_VARIABLE "${name}")
endmacro(getuname)
getuname(osname -s)
getuname(osrel -r)
getuname(cpu -m)
set(CTEST_BUILD_NAME "${osname}-${osrel}-${cpu}")
# Set locations of src/build
set (CTEST_DASHBOARD_ROOT /Users/wfisher/Desktop/ctest/Dashboards)
SET (CTEST_SOURCE_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}/src-snapshot")
SET (CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/build-cont")
#####
# End Test/System Setup
#####
set (CTEST_CONTINUOUS_DURATION 300)
set (CTEST_CONTINUOUS_MINIMUM_INTERVAL 10)
set (CTEST_CMAKE_GENERATOR "Unix Makefiles")
set (CTEST_SVN_COMMAND "/opt/local/bin/svn")
set (CTEST_SVN_CHECKOUT "\"${CTEST_SVN_COMMAND} co https://sub.unidata.ucar.edu/netcdf/branches/netcdf-cmake ${CTEST_SOURCE_DIRECTORY}")
set (CTEST_COMMAND "\"${CTEST_EXECUTABLE_NAME} -D Continuous -A \"${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}\"")
set (CTEST_CHECKOUT_COMMAND "svn co https://sub.unidata.ucar.edu/netcdf/branches/netcdf-cmake ${CTEST_SOURCE_DIRECTORY}")
set (CTEST_UPDATE_COMMAND "svn")
set (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
## Kick off the test
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
ctest_start("Continuous")
ctest_update()
ctest_configure()
ctest_build()
ctest_test()
ctest_submit()

View File

@ -0,0 +1,49 @@
#####
# Some Test/System Setup
#####
set (CTEST_PROJECT_NAME "netCDF-C")
# Get Hostname
find_program(HOSTNAME_CMD NAMES hostname)
exec_program(${HOSTNAME_CMD} ARGS "-f" OUTPUT_VARIABLE HOSTNAME)
set(CTEST_SITE "${HOSTNAME}")
# Get system configuration
find_program(UNAME NAMES uname)
macro(getuname name flag)
exec_program("${UNAME}" ARGS "${flag}" OUTPUT_VARIABLE "${name}")
endmacro(getuname)
getuname(osname -s)
getuname(osrel -r)
getuname(cpu -m)
set(CTEST_BUILD_NAME "${osname}-${osrel}-${cpu}")
# Set locations of src/build
set (CTEST_DASHBOARD_ROOT /Users/wfisher/Desktop/ctest/Dashboards)
SET (CTEST_SOURCE_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}/src-snapshot")
SET (CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/build")
#####
# End Test/System Setup
#####
set (CTEST_CMAKE_GENERATOR "Unix Makefiles")
set (CTEST_SVN_COMMAND "/opt/local/bin/svn")
set (CTEST_SVN_CHECKOUT "\"${CTEST_SVN_COMMAND} co https://sub.unidata.ucar.edu/netcdf/branches/netcdf-cmake ${CTEST_SOURCE_DIRECTORY}")
set (CTEST_COMMAND "\"${CTEST_EXECUTABLE_NAME} -D Experimental\"")
set (CTEST_CHECKOUT_COMMAND "svn co https://sub.unidata.ucar.edu/netcdf/branches/netcdf-cmake ${CTEST_SOURCE_DIRECTORY}")
set (CTEST_UPDATE_COMMAND "svn")
set (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
## Kick off the test
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
ctest_start("Experimental")
ctest_update()
ctest_configure()
ctest_build()
ctest_test()
ctest_submit()