Warning, /DD4hep/DDTest/README is written in an unsupported language. File is not indexed.
0001 #######################################################################
0002 #
0003 # DDTest - (unit) tests for dd4hep
0004 #
0005 # F.Gaede, DESY, 2014
0006 #######################################################################
0007
0008
0009 Package for the definition of (unit) tests using the CTest mechanism.
0010
0011
0012 If build with -DBUILD_TESTING=1 (default), testing will be enabled.
0013
0014 Run the tests with:
0015
0016 cd build
0017 make install
0018 make test
0019
0020 run the tests with verbose output:
0021
0022 ctest -V
0023
0024 ----------------------------------------------------------------------------------------
0025
0026 New test programs can be added to ./DDTest/src as test_xxx.cc
0027
0028 Add corresponding lines to ./DDTest/CMakeLists.txt:
0029
0030 SET( test_name "test_xxx" )
0031 ADD_EXECUTABLE( ${test_name} ./src/${test_name}.cc )
0032 ADD_TEST( t_${test_name} "${EXECUTABLE_OUTPUT_PATH}/${test_name}" )
0033 SET_TESTS_PROPERTIES( t_${test_name} PROPERTIES PASS_REGULAR_EXPRESSION "TEST_PASSED" )
0034 SET_TESTS_PROPERTIES( t_${test_name} PROPERTIES FAIL_REGULAR_EXPRESSION "TEST_FAILED" )
0035
0036 ----------------------------------------------------------------------------------------
0037
0038 Nightly test results will be published at
0039
0040 http://aidasoft.desy.de/CDash/index.php
0041
0042
0043 This is not yet implemented. For now the command:
0044
0045 make Experimental
0046
0047
0048 will publish the result at the dashboard.
0049
0050 ----------------------------------------------------------------------------------------
0051
0052