ATLAS Offline Software
Control
StoreGateTests
share
tests
atn_test_sgProducerConsumerDataPool_jobOptions.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
from
__future__
import
print_function
4
5
import
os
6
import
sys
7
from
AthenaCommon
import
ChapPy
8
9
from
future
import
standard_library
10
standard_library.install_aliases()
11
import
subprocess
12
13
15
from
TestTools.iobench
import
workDir
16
17
19
from
TestTools.iobench
import
ScOutput
20
from
TestTools.iobench
import
BenchSequence
21
22
print
(
"#"
*80)
23
print
(
"## StoreGate test... [producer/consumer-DataPool-bench]"
)
24
print
(
"#"
*80)
25
print
(
"::: No DataPool "
, end=
''
)
26
athena = ChapPy.Athena(
27
jobOptions = [
28
ChapPy.JobOptionsCmd(
"SGDATAPOOL=False"
),
29
ChapPy.JobOptions(
"StoreGateTests/test_sgProducerConsumer_jobOptions.py"
),
30
ChapPy.JobOptionsCmd(
"jp.PerfMonFlags.OutputFile = 'nodatapool.pmon.gz'"
),
31
]
32
)
33
athena.EvtMax = 100
34
sc = athena.run()
35
if
sc != 0:
36
print
(
"ERROR"
)
37
sys.exit(sc)
38
39
print
(
"::: With DataPool "
, end=
''
)
40
athena = ChapPy.Athena(
41
jobOptions = [
42
ChapPy.JobOptionsCmd(
"SGDATAPOOL=True"
),
43
ChapPy.JobOptions(
"StoreGateTests/test_sgProducerConsumer_jobOptions.py"
),
44
ChapPy.JobOptionsCmd(
"jp.PerfMonFlags.OutputFile = 'withdatapool.pmon.gz'"
),
45
]
46
)
47
athena.EvtMax = 100
48
sc = athena.run()
49
if
sc != 0:
50
print
(
"ERROR"
)
51
sys.exit(sc)
52
53
sc,out = subprocess.getstatusoutput(
54
"perfmon.py %s %s -o %s -l dp,nodp -s \"m.name!=''\""
% (
55
"withdatapool.pmon.gz"
,
56
"nodatapool.pmon.gz"
,
57
"datapool.root"
58
)
59
)
60
print
(
"All tests SUCCESSFULLY completed"
)
61
62
print
(
""
)
63
print
(
"#"
*80)
64
print
(
"## Bye."
)
65
print
(
"#"
*80)
Generated on Fri May 17 2024 21:10:42 for ATLAS Offline Software by
1.8.18