1 # ctest -S script for testing HOOMD and submitting to the dashboard at cdash.fourpisolutions.com
2 # this script must be copied and modified for each test build. Locations in the script
3 # that need to be modified to configure the build are near the top
6 # 1) checkout a copy of hoomd's source to be tested
7 # 2) copy all ctest_hoomd_* cmake scripts to a convenient location (i.e., next to the hoomd source checkout)
8 # 3a) On linux/mac: cp ctest_hoomd_setup_linux.cmake ctest_hoomd_setup.cmake
9 # 3b) On win32: cp ctest_hoomd_setup_win32.cmake ctest_hoomd_setup.cmake
10 # 3c) On win64: cp ctest_hoomd_setup_win64.cmake ctest_hoomd_setup.cmake
11 # 4) modify variables in ctest_site_options to match your site
12 # 5) set TEST_GROUP to "Experimental" and run ctest -V -S ctest_hoomd.cmake to check that the test runs OK.
13 # Test results of the test should show up at: http://cdash.fourpisolutions.com/index.php?project=HOOMD.
14 # (you may want to ignore the bdnvt and npt tests for this as they are quite long).
15 # 6) change TEST_GROUP back to "Nightly" and set "ctest -S ctest_hoomd.cmake" to run every day
17 # ctest_hoomd.cmake tests the default configuration. Also included are a set of of other scripts with
18 # various combinations of build options. Use any or all of them as you wish.
20 # (set to ON to enable CUDA build)
21 SET (ENABLE_CUDA "OFF")
23 # (set to OFF to enable double precision build) (ENABLE_CUDA must be off if this is set off)
24 SET (SINGLE_PRECISION "ON")
26 # (set to OFF to enable shared library builds)
27 SET (ENABLE_STATIC "OFF")
29 # (set to ON to enable MPI)
30 SET (ENABLE_MPI "OFF")
32 # (set tests to ignore, see the example for the format)
33 # (bdnvt and npt take minutes to run, and an enternity with valgrind enabled, so they are ignored by default)
35 #SET (IGNORE_TESTS "-E \"test_bdnvt_integrator|test_npt_integrator\"")
37 # (location of valgrind: Leave blank unless you REALLY want the long valgrind tests to run
38 SET (MEMORYCHECK_COMMAND "")
39 #SET (MEMORYCHECK_COMMAND "/usr/bin/valgrind")
41 # (architectures to compile CUDA for 10=compute 1.0 11=compute 1.1, ...)
42 SET (CUDA_ARCH_LIST 20 30 35)
44 # (set to ON to enable coverage tests: these extensive tests don't really need to be done on every single build)
45 SET (ENABLE_COVERAGE OFF)
48 SET (BUILD_TYPE Release)
50 # Bring in the settings common to all ctest scripts
51 include(site_options.cmake)
52 include(test_setup.cmake)