diff --git a/ctest-scripts/ContinuousTest.cmake b/ctest-scripts/ContinuousTest.cmake new file mode 100644 index 000000000..a0d5b656f --- /dev/null +++ b/ctest-scripts/ContinuousTest.cmake @@ -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() diff --git a/ctest-scripts/ExperimentalTest.cmake b/ctest-scripts/ExperimentalTest.cmake new file mode 100644 index 000000000..8fcfc9b9a --- /dev/null +++ b/ctest-scripts/ExperimentalTest.cmake @@ -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()