Example #1
0
    if '_tf' not in test_type:
        ex.job_options = 'AthExJobOptions/AthExJobOptions_MinimalJobOptionsNoEvt.py'
    ex.input = ''
    ex.args = '--help'
    test.exec_steps.append(ex)

test.art_type = 'build'
test.check_steps = CheckSteps.default_check_steps(test)

regtest_ref_text = [
    '### athena.log ###',
    '### athena.Test_athena.log ###',
    '### athenaHLT.Test_athenaHLT.log ###',
    '### Reco_tf.Test_Reco_tf.log ###',
    '### Trig_reco_tf.Test_Trig_reco_tf.log ###',
]

with open('regtest.ref', 'w') as f:
    f.write('\n'.join(regtest_ref_text))

refcomp = CheckSteps.RegTestStep('RefComp')
refcomp.input_base_name = 'athena.merged'
refcomp.regex = '###'
refcomp.reference = 'regtest.ref'
refcomp.required = True
CheckSteps.add_step_after_type(test.check_steps, CheckSteps.LogMergeStep,
                               refcomp)

import sys
sys.exit(test.run())
Example #2
0
    "doWriteBS=False;",
    "doWriteRDOTrigger=True;",
    "forceEnableAllChains=True;",
    "fpeAuditor=True;",
    "failIfNoProxy=True;"
])
ex.args = '-c "{:s}"'.format(precommand)

test = Test.Test()
test.art_type = 'build'
test.exec_steps = [ex]
test.check_steps = CheckSteps.default_check_steps(test)

# Overwrite default MessageCount settings
# We are trying to lower the limits step by step
# Ultimately there should be no per-event messages
msgcount = test.get_step("MessageCount")
msgcount.thresholds = {'WARNING': 500, 'INFO': 1200, 'other': 80}
msgcount.required = True  # make the test exit code depend on this step

# Add a step comparing counts in the log against reference
refcomp = CheckSteps.RegTestStep("CountRefComp")
refcomp.regex = r'TrigSignatureMoniMT\s*INFO\sHLT_.*|TrigSignatureMoniMT\s*INFO\s-- #[0-9]+ (Events|Features).*'
refcomp.reference = 'TriggerTest/ref_data_v1Dev_build.ref'
refcomp.required = True  # Final exit code depends on this step
CheckSteps.add_step_after_type(test.check_steps, CheckSteps.LogMergeStep,
                               refcomp)

import sys
sys.exit(test.run())
Example #3
0
ex.perfmon = False  # perfmon currently not fully supported with athenaHLT -M

# Pass the transitions file into athenaHLT -i
ex.cmd_suffix = ' < `find_data.py magFieldOnOff.trans`'

test = Test.Test()
test.art_type = 'build'
test.exec_steps = [ex]
test.check_steps = CheckSteps.default_check_steps(test)

# Extra merging pattern for logs produced with -ul option
logmerge = test.get_step("LogMerge")
logmerge.extra_log_regex = 'athenaHLT-.*-.*(.out|.err)'

# Compare to reference to check field status
refcomp = CheckSteps.RegTestStep('RegTest')
refcomp.regex = '^AtlasFieldSvc.*Initializing the field map'
refcomp.reference = 'TrigP1Test/test_trigP1_v1PhysP1_magFieldToggle.ref'
refcomp.required = True  # Final exit code depends on this step
test.check_steps.insert(-1, refcomp)  # Add before the last (zip) step

# Modify rootcomp to compare histograms between the two field ON runs
rc = test.get_step("RootComp")
rc.input_file = 'run_3.root'
rc.reference = 'run_1.root'
rc.explicit_reference = True  # Don't check if reference exists at configuration time
rc.required = True

import sys
sys.exit(test.run())