CMakeLists.txt 2.49 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# start of test CBM setups from geometry/setup
Set(MACRO_DIR ${CBMROOT_BINARY_DIR}/macro/much)
GENERATE_ROOT_TEST_SCRIPT(${CBMROOT_SOURCE_DIR}/macro/much/run_transport.C)
GENERATE_ROOT_TEST_SCRIPT(${CBMROOT_SOURCE_DIR}/macro/much/run_ana.C)
GENERATE_CBM_TEST_SCRIPT(${CBMROOT_SOURCE_DIR}/macro/run/run_digi.C ${MACRO_DIR})
GENERATE_CBM_TEST_SCRIPT(${CBMROOT_SOURCE_DIR}/macro/run/run_reco_event.C ${MACRO_DIR})

# Put the .rootrc file into the directory from which root is executed.
# Otherwise the rootalias file is not loaded
File(COPY ${CBMROOT_SOURCE_DIR}/macro/include/.rootrc DESTINATION ${CBMROOT_BINARY_DIR}/macro/much)

Set(NumEvents 3)

# --- Transport of UrQMD events
Set(testname much_transport)
add_test(${testname} ${MACRO_DIR}/run_transport.sh ${NumEvents} \"sis100_muon_lmvm\" \"muons\")
SET_TESTS_PROPERTIES(${testname} PROPERTIES TIMEOUT "1200")
SET_TESTS_PROPERTIES(${testname} PROPERTIES PASS_REGULAR_EXPRESSION "TestPassed;All ok")
set_tests_properties(${testname} PROPERTIES FIXTURES_SETUP fixture_much_digi)

# --- Digitisation, event-by-event
Set(testname much_digi)
23
Add_Test(${testname} ${MACRO_DIR}/run_digi.sh \"muons\" ${NumEvents} \"muons.event\" -1.)
24
Set_Tests_Properties(${testname} PROPERTIES TIMEOUT "1200")
25
Set_Tests_Properties(${testname} PROPERTIES PASS_REGULAR_EXPRESSION "Macro finished successfully")
26
27
28
29
30
31
32
33
34
35
36
37
38
set_tests_properties(${testname} PROPERTIES FIXTURES_REQUIRED fixture_much_digi)
set_tests_properties(${testname} PROPERTIES FIXTURES_SETUP fixture_much_reco)

# --- Reconstruction, event-by-event
Set(testname much_reco_event)
add_test(${testname} ${MACRO_DIR}/run_reco_event.sh ${NumEvents} \"muons\" \"sis100_muon_lmvm\" 1 1)
SET_TESTS_PROPERTIES(${testname} PROPERTIES TIMEOUT "1200")
SET_TESTS_PROPERTIES(${testname} PROPERTIES PASS_REGULAR_EXPRESSION "TestPassed;All ok")
set_tests_properties(${testname} PROPERTIES FIXTURES_REQUIRED fixture_much_reco)
set_tests_properties(${testname} PROPERTIES FIXTURES_SETUP fixture_much_ana)

# --- Analysis, event-by-event
Set(testname much_analysis)
39
add_test(${testname} ${MACRO_DIR}/run_ana.sh ${NumEvents} \"muons\" \"sis100_muon_lmvm\" 1 \"\" -1)
40
41
42
43
44
SET_TESTS_PROPERTIES(${testname} PROPERTIES TIMEOUT "1200")
SET_TESTS_PROPERTIES(${testname} PROPERTIES PASS_REGULAR_EXPRESSION "TestPassed;All ok")
set_tests_properties(${testname} PROPERTIES FIXTURES_REQUIRED fixture_much_ana)


45
46
47
48
49
50
51
Install(FILES .rootrc run_transport.C run_ana.C
        DESTINATION share/cbmroot/macro/much
       )

Install(DIRECTORY data
        DESTINATION share/cbmroot/macro/much
       )