Commit 4158afe1 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'trigp1-dumpopts-tests' into 'master'

TrigP1Test: Implement tests with dump-config option

See merge request !30440
parents baddf259 f6561f6c
#!/usr/bin/env python
# art-description: FullMenu test only dumping options for SMK generation
# art-type: build
# art-include: master/Athena
from TrigValTools.TrigValSteering import Test, ExecStep, CheckSteps
ex = ExecStep.ExecStep()
ex.type = 'athenaHLT'
ex.job_options = 'TriggerJobOpts/runHLT_standalone.py'
ex.input = 'data'
ex.args = '-M --dump-config-exit'
ex.perfmon = False # Cannot use PerfMon with -M
test = Test.Test()
test.art_type = 'build'
test.exec_steps = [ex]
# Only keep relevant checks from the defaults
test.check_steps = [chk for chk in CheckSteps.default_check_steps(test)
if type(chk) in (CheckSteps.LogMergeStep, CheckSteps.CheckLogStep)]
import sys
sys.exit(test.run())
#!/usr/bin/env python
#
# art-description: Run athenaHLT to test preloaded partition running
# art-description: Full menu athenaHLT test imitating partition with preloaded data at P1
# art-type: build
# art-include: master/Athena
......@@ -36,12 +36,20 @@ ex.type = 'athenaHLT'
ex.job_options = 'TriggerJobOpts/runHLT_standalone.py'
ex.input = ''
ex.explicit_input = True
ex.args = '-f ./raw._0001.data -C "from AthenaCommon.AppMgr import ServiceMgr; ServiceMgr.HltEventLoopMgr.forceRunNumber=%d; ServiceMgr.HltEventLoopMgr.forceStartOfRunTime=%d" -R 999999 --sor-time=now --detector-mask=all' % (run, sor)
ex.args = '-f ./raw._0001.data'
ex.args += ' -C "from AthenaCommon.AppMgr import ServiceMgr; ServiceMgr.HltEventLoopMgr.forceRunNumber=%d; ServiceMgr.HltEventLoopMgr.forceStartOfRunTime=%d"' % (run, sor)
ex.args += ' -R 999999 --sor-time=now --detector-mask=all'
ex.args += ' -M --dump-config' # For SMK generation
ex.perfmon = False # Cannot use PerfMon with -M
test = Test.Test()
test.art_type = 'build'
test.exec_steps = [ex_rm, ex_bs, ex]
test.check_steps = CheckSteps.default_check_steps(test)
# Overwrite default histogram file name for checks
for step in [test.get_step(name) for name in ['HistCount', 'RootComp', 'ChainDump']]:
step.input_file = 'r0000999999_athenaHLT_HLT-Histogramming.root'
import sys
sys.exit(test.run())
#!/usr/bin/env python
# art-description: PhysicsP1_pp_run3_v1 menu test only dumping options for SMK generation
# art-type: build
# art-include: master/Athena
from TrigValTools.TrigValSteering import Test, ExecStep, CheckSteps
ex = ExecStep.ExecStep()
ex.type = 'athenaHLT'
ex.job_options = 'TriggerJobOpts/runHLT_standalone.py'
ex.input = 'data'
ex.args = '-c "setMenu=\'PhysicsP1_pp_run3_v1\';"'
ex.args += ' -M --dump-config-exit'
ex.perfmon = False # Cannot use PerfMon with -M
test = Test.Test()
test.art_type = 'build'
test.exec_steps = [ex]
# Only keep relevant checks from the defaults
test.check_steps = [chk for chk in CheckSteps.default_check_steps(test)
if type(chk) in (CheckSteps.LogMergeStep, CheckSteps.CheckLogStep)]
import sys
sys.exit(test.run())
#!/usr/bin/env python
#
# art-description: PhysicsP1_pp_run3_v1 menu athenaHLT test imitating partition with preloaded data at P1
# art-type: build
# art-include: master/Athena
from TrigValTools.TrigValSteering import Input, Test, Step, ExecStep, CheckSteps
# Input file
f = Input.get_input('data').paths[0].encode('ascii', 'ignore')
# Delete any previous bytestream file
ex_rm = ExecStep.ExecStep('cleanup')
ex_rm.type = 'other'
ex_rm.input = ''
ex_rm.executable = 'rm'
ex_rm.args = '-f raw._0001.data'
ex_rm.auto_report_result = False # Do not set art-result for this step
ex_rm.output_stream = Step.Step.OutputStream.STDOUT_ONLY # Do not create a log file for this step
# Create new bytestream file with future run number and renumber LBs
ex_bs = ExecStep.ExecStep('create_bs')
ex_bs.type = 'other'
ex_bs.input = ''
ex_bs.executable = 'trigbs_modifyEvent.py'
ex_bs.args = '-n 50 --runNumber 999999 --incLB 3 --firstLB 4 -o raw %s' % f
# Run athenaHLT forcing run and timestamp of original data file
import eformat
from TrigCommon import AthHLT
run = eformat.EventStorage.pickDataReader(f).runNumber()
sor = AthHLT.get_sor_params(run)['SORTime']
ex = ExecStep.ExecStep()
ex.type = 'athenaHLT'
ex.job_options = 'TriggerJobOpts/runHLT_standalone.py'
ex.input = ''
ex.explicit_input = True
ex.args = '-f ./raw._0001.data'
ex.args += ' -c "setMenu=\'PhysicsP1_pp_run3_v1\';"'
ex.args += ' -C "from AthenaCommon.AppMgr import ServiceMgr; ServiceMgr.HltEventLoopMgr.forceRunNumber=%d; ServiceMgr.HltEventLoopMgr.forceStartOfRunTime=%d"' % (run, sor)
ex.args += ' -R 999999 --sor-time=now --detector-mask=all'
ex.args += ' -M --dump-config' # For SMK generation
ex.perfmon = False # Cannot use PerfMon with -M
test = Test.Test()
test.art_type = 'build'
test.exec_steps = [ex_rm, ex_bs, ex]
test.check_steps = CheckSteps.default_check_steps(test)
# Overwrite default histogram file name for checks
for step in [test.get_step(name) for name in ['HistCount', 'RootComp', 'ChainDump']]:
step.input_file = 'r0000999999_athenaHLT_HLT-Histogramming.root'
import sys
sys.exit(test.run())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment