File tree Expand file tree Collapse file tree
examples/simulation/Tutorial1/macros Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,19 +22,23 @@ foreach(mcEngine IN LISTS mcEngine_list)
2222 PASS_REGULAR_EXPRESSION " Macro finished successfully "
2323 )
2424
25- add_test(NAME ex_sim_tutorial1_pythia6_${mcEngine}
26- COMMAND ${CMAKE_CURRENT_BINARY_DIR} /run_tutorial1_pythia6.sh 10 \" ${mcEngine} \" )
27- set_tests_properties(ex_sim_tutorial1_pythia6_${mcEngine} PROPERTIES
28- TIMEOUT ${maxTestTime}
29- PASS_REGULAR_EXPRESSION " Macro finished successfully "
30- )
25+ if(Pythia6_FOUND)
26+ add_test(NAME ex_sim_tutorial1_pythia6_${mcEngine}
27+ COMMAND ${CMAKE_CURRENT_BINARY_DIR} /run_tutorial1_pythia6.sh 10 \" ${mcEngine} \" )
28+ set_tests_properties(ex_sim_tutorial1_pythia6_${mcEngine} PROPERTIES
29+ TIMEOUT ${maxTestTime}
30+ PASS_REGULAR_EXPRESSION " Macro finished successfully "
31+ )
32+ endif()
3133
32- add_test(NAME ex_sim_tutorial1_pythia8_${mcEngine}
33- COMMAND ${CMAKE_CURRENT_BINARY_DIR} /run_tutorial1_pythia8.sh 10 \" ${mcEngine} \" )
34- set_tests_properties(ex_sim_tutorial1_pythia8_${mcEngine} PROPERTIES
35- TIMEOUT ${maxTestTime}
36- PASS_REGULAR_EXPRESSION " Macro finished successfully "
37- )
34+ if(Pythia8_FOUND)
35+ add_test(NAME ex_sim_tutorial1_pythia8_${mcEngine}
36+ COMMAND ${CMAKE_CURRENT_BINARY_DIR} /run_tutorial1_pythia8.sh 10 \" ${mcEngine} \" )
37+ set_tests_properties(ex_sim_tutorial1_pythia8_${mcEngine} PROPERTIES
38+ TIMEOUT ${maxTestTime}
39+ PASS_REGULAR_EXPRESSION " Macro finished successfully "
40+ )
41+ endif()
3842
3943 add_test(NAME ex_sim_tutorial1_urqmd_${mcEngine}
4044 COMMAND ${CMAKE_CURRENT_BINARY_DIR} /run_tutorial1_urqmd.sh 2 \" ${mcEngine} \" )
You can’t perform that action at this time.
0 commit comments