Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
ace75523
Commit
ace75523
authored
Jul 29, 2022
by
Pierre-Alain Loizeau
Browse files
Options
Downloads
Patches
Plain Diff
[CI] add test of mCBM 2022 event building (task version)
parent
c03502fa
No related branches found
No related tags found
1 merge request
!903
Add task based event building step to CI of mcbm22
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
macro/run/CMakeLists.txt
+33
-30
33 additions, 30 deletions
macro/run/CMakeLists.txt
macro/run/run_unpack_tsa.C
+1
-0
1 addition, 0 deletions
macro/run/run_unpack_tsa.C
with
34 additions
and
30 deletions
macro/run/CMakeLists.txt
+
33
−
30
View file @
ace75523
...
...
@@ -303,7 +303,8 @@ If(DEFINED ENV{RAW_DATA_PATH} )
## Generate scripts
GENERATE_ROOT_TEST_SCRIPT
(
${
CBMROOT_SOURCE_DIR
}
/macro/run/run_unpack_tsa.C
)
# Unpackers
GENERATE_ROOT_TEST_SCRIPT
(
${
CBMROOT_SOURCE_DIR
}
/macro/beamtime/mcbm2021/check_timing_any.C
)
# Check Timing
GENERATE_ROOT_TEST_SCRIPT
(
${
CBMROOT_SOURCE_DIR
}
/macro/beamtime/mcbm2021/check_timing_any.C
)
# Check Timing mCBM 2021
GENERATE_ROOT_TEST_SCRIPT
(
${
CBMROOT_SOURCE_DIR
}
/macro/beamtime/mcbm2022/mcbm_event.C
)
# Event building mCBM 2022
## Run only if raw data files present: 2021
ForEach
(
RUN 1588
)
...
...
@@ -314,27 +315,28 @@ If(DEFINED ENV{RAW_DATA_PATH} )
## Define tests + dependencies
### Raw data analysis tests: unpacking
Set
(
testname mcbm_unpack_2021_
${
RUN
}
)
Set
(
fixture_unpacked_
${
RUN
}
fixture_done_
${
testname
}
)
Add_Test
(
${
testname
}
${
CBMROOT_BINARY_DIR
}
/macro/run/run_unpack_tsa.sh \"
${
RAW_DATA_PATH
}
/
${
RUN
}
_first20Ts.tsa\"
${
RUN
}
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES TIMEOUT
"600"
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES
TIMEOUT
"600"
FAIL_REGULAR_EXPRESSION
"segmentation violation"
PASS_REGULAR_EXPRESSION
"Macro finished successfully"
)
set_tests_properties
(
${
testname
}
PROPERTIES DEPENDS
run_cleanup
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_REQUIRED run_cleanup
)
Set
(
fixture_unpacked_
${
RUN
}
fixture_done_
${
testname
}
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_SETUP
${
fixture_unpacked_
${
RUN
}}
)
PASS_REGULAR_EXPRESSION
"Macro finished successfully"
FIXTURES_REQUIRED
run_cleanup
FIXTURES_SETUP
${
fixture_unpacked_
${
RUN
}}
RESOURCE_LOCK mcbm_unpack_disk
)
### Raw data analysis tests: time offsets check
Set
(
testname mcbm_chktime_2021_
${
RUN
}
)
Set
(
fixture_chktime_
${
RUN
}
fixture_done_
${
testname
}
)
Add_Test
(
${
testname
}
${
CBMROOT_BINARY_DIR
}
/macro/beamtime/mcbm2021/check_timing_any.sh \"
${
CBMROOT_BINARY_DIR
}
/macro/run/data/
${
RUN
}
_first20Ts.digi.root\"
${
RUN
}
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES TIMEOUT
"600"
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES
TIMEOUT
"600"
FAIL_REGULAR_EXPRESSION
"segmentation violation"
PASS_REGULAR_EXPRESSION
"Macro finished successfully"
)
set_tests_properties
(
${
testname
}
PROPERTIES DEPENDS mcbm_unpack_2021_
${
RUN
}
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_REQUIRED
${
fixture_unpacked_
${
RUN
}}
)
Set
(
fixture_chktime_
${
RUN
}
fixture_done_
${
testname
}
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_SETUP
${
fixture_chktime_
${
RUN
}}
)
PASS_REGULAR_EXPRESSION
"Macro finished successfully"
FIXTURES_REQUIRED
${
fixture_unpacked_
${
RUN
}}
FIXTURES_SETUP
${
fixture_chktime_
${
RUN
}}
)
EndIf
()
# If(EXISTS ${RAW_DATA_PATH}/${RUN}_first20Ts.tsa))
EndForEach
()
# ForEach(RUN 1588 )
...
...
@@ -347,29 +349,30 @@ If(DEFINED ENV{RAW_DATA_PATH} )
## Define tests + dependencies
### Raw data analysis tests: unpacking
Set
(
testname mcbm_unpack_
${
RUN
}
)
Set
(
fixture_unpacked_
${
RUN
}
fixture_done_
${
testname
}
)
Add_Test
(
${
testname
}
${
CBMROOT_BINARY_DIR
}
/macro/run/run_unpack_tsa.sh \"
${
RAW_DATA_PATH
}
/
${
RUN
}
_first20Ts.tsa\"
${
RUN
}
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES TIMEOUT
"600"
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES
TIMEOUT
"600"
FAIL_REGULAR_EXPRESSION
"segmentation violation"
PASS_REGULAR_EXPRESSION
"Macro finished successfully"
)
set_tests_properties
(
${
testname
}
PROPERTIES DEPENDS
run_cleanup
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_REQUIRED run_cleanup
)
Set
(
fixture_unpacked_
${
RUN
}
fixture_done_
${
testname
}
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_SETUP
${
fixture_unpacked_
${
RUN
}}
)
PASS_REGULAR_EXPRESSION
"Macro finished successfully"
FIXTURES_REQUIRED
run_cleanup
FIXTURES_SETUP
${
fixture_unpacked_
${
RUN
}}
RESOURCE_LOCK mcbm_unpack_disk
)
### Raw data analysis tests: event building and reconstruction => need calibration files!!
#
Set(testname mcbm_event_2022_${RUN})
#
Add_Test(${testname} ${CBMROOT_BINARY_DIR}/macro/beamtime/mcbm2022/check_timing_any.sh \"${CBMROOT_BINARY_DIR}/macro/run/data/${RUN}_first20Ts.digi.root\" ${RUN
})
#
Set
_Test
s_Properties
(${testname}
PROPERTIES TIMEOUT "600"
)
#
Set_Tests_Properties(${testname} PROPERTIES
#
FAIL_REGULAR_EXPRESSION "segmentation violation
"
#
PASS
_REGULAR_EXPRESSION "
Macro finished successfully")
#
set_tests_properties(${testname} PROPERTIES DEPENDS mcbm_unpack_${RUN})
#
set_tests_properties(${testname} PROPERTIES
FIXTURES_REQUIRED ${fixture_unpacked_${RUN}}
)
#
Set(fixture_chktime_${RUN} fixture_done_${testname})
#
set_tests_properties(${testname} PROPERTIES FIXTURES_SETUP ${fixture_chktime_${RUN}}
)
Set
(
testname mcbm_event_2022_
${
RUN
}
)
Set
(
fixture_event_
${
RUN
}
fixture_done_
${
testname
}
)
Add
_Test
(
${
testname
}
${
CBMROOT_BINARY_DIR
}
/macro/beamtime/mcbm2022/mcbm_event.sh \"
${
CBMROOT_BINARY_DIR
}
/macro/run/data/
${
RUN
}
_first20Ts.digi.root\"
${
RUN
}
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES
TIMEOUT
"600
"
FAIL
_REGULAR_EXPRESSION
"
segmentation violation"
PASS_REGULAR_EXPRESSION
"Macro finished successfully"
FIXTURES_REQUIRED
${
fixture_unpacked_
${
RUN
}}
FIXTURES_SETUP
${
fixture_event_
${
RUN
}}
)
EndIf
()
# If(EXISTS ${RAW_DATA_PATH}/${RUN}_first20Ts.tsa))
EndForEach
()
# ForEach(RUN
15
88 )
EndForEach
()
# ForEach(RUN
2391 24
88 )
EndIf
()
# If(DEFINED ENV{RAW_DATA_PATH} )
#####################
# ============================================================================
...
...
...
...
This diff is collapsed.
Click to expand it.
macro/run/run_unpack_tsa.C
+
1
−
0
View file @
ace75523
...
...
@@ -125,6 +125,7 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
// ---- BMON ----
std
::
shared_ptr
<
CbmBmonUnpackConfig
>
bmonconfig
=
nullptr
;
if
(
!
bBmoninTof
)
{
bmonconfig
=
std
::
make_shared
<
CbmBmonUnpackConfig
>
(
""
,
runid
);
if
(
bmonconfig
)
{
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment