diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 40b76a08be..c0a2563784 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -220,8 +220,8 @@ endif() # Regression tests #=============================================================================== -# This allows mpi test to work -enable_testing() +# This allows for dashboard configuration +include(CTest) # Get a list of all the tests to run file(GLOB_RECURSE TESTS ${CMAKE_CURRENT_SOURCE_DIR}/../tests/test_*.py) diff --git a/src/CTestConfig.cmake b/src/CTestConfig.cmake new file mode 100644 index 0000000000..fa3c21d29a --- /dev/null +++ b/src/CTestConfig.cmake @@ -0,0 +1,13 @@ +## This file should be placed in the root directory of your project. +## Then modify the CMakeLists.txt file in the root directory of your +## project to incorporate the testing dashboard. +## # The following are required to uses Dart and the Cdash dashboard +## ENABLE_TESTING() +## INCLUDE(CTest) +set(CTEST_PROJECT_NAME "OpenMC") +set(CTEST_NIGHTLY_START_TIME "05:00:00 UTC") + +set(CTEST_DROP_METHOD "http") +set(CTEST_DROP_SITE "neutronbalance.mit.edu") +set(CTEST_DROP_LOCATION "/CDash/submit.php?project=OpenMC") +set(CTEST_DROP_SITE_CDASH TRUE)