◆ setUp()
def python.TestCases.DQUTestCase.setUp |
( |
|
self | ) |
|
◆ tearDown()
def python.TestCases.DQUTestCase.tearDown |
( |
|
self | ) |
|
◆ test02_WebDisplay()
def python.TestCases.DQUTestCase.test02_WebDisplay |
( |
|
self | ) |
|
Test that a terminal web display job works
Definition at line 28 of file DataQualityUtils/python/TestCases.py.
28 def test02_WebDisplay(self):
29 '''Test that a terminal web display job works'''
31 print(
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
32 print(
'Running web display test ....')
33 print(
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
34 outdir = os.environ.get(
'TMPDIR',
'.')
35 infile = os.path.join(TESTING_DIR,
'data09_calophys.00128005.physics_CosmicMuons.root')
36 rv = os.system(
'cd %s ; DQWebDisplay.py %s TestDisplay 123' % (outdir, infile))
37 self.assertTrue(rv==0,
"DQWebDisplay.py return code is nonzero")
◆ test_01_Merging()
def python.TestCases.DQUTestCase.test_01_Merging |
( |
|
self | ) |
|
Test that histogram merging + postprocessing works
Definition at line 16 of file DataQualityUtils/python/TestCases.py.
16 def test_01_Merging(self):
17 '''Test that histogram merging + postprocessing works'''
19 print(
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
20 print(
'Running merge test ....')
21 print(
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
22 outdir = os.environ.get(
'TMPDIR',
'.')
23 inlist = os.path.join(TESTING_DIR,
'test_merging')
24 self.outfile = os.path.join(outdir,
'data09_calophys.00128005.physics_CosmicMuons.root')
25 rv = os.system(
'cd %s ; DQHistogramMerge.py %s %s True' % (outdir, inlist, self.outfile))
26 self.assertTrue(rv==0,
"DQHistogramMerge.py return code is nonzero")
◆ test_03_WebDisplay()
def python.TestCases.DQUTestCase.test_03_WebDisplay |
( |
|
self | ) |
|
Test that a terminal web display job works in temporary accumulation mode
Definition at line 39 of file DataQualityUtils/python/TestCases.py.
39 def test_03_WebDisplay(self):
40 '''Test that a terminal web display job works in temporary accumulation mode'''
42 print(
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
43 print(
'Running intermediate web display test ....')
44 print(
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
45 outdir = os.environ.get(
'TMPDIR',
'.')
46 infile = os.path.join(TESTING_DIR,
'data09_calophys.00128005.physics_CosmicMuons.root')
47 from DataQualityConfigurations.TestDisplay
import dqconfig
48 cachedir = dqconfig.histogramCache
50 self.fail(
'Unable to test intermediate web displays; no histogramCache directory set')
51 if not os.access(cachedir, os.W_OK):
52 print(
"No write permissions for cache dir %s; skipping test" % cachedir)
54 cachefilename = os.path.basename(infile).rsplit(
'.',1)[-2] +
'.CACHE_1'
55 shutil.copy(infile, os.path.join(cachedir, cachefilename))
57 rv = os.system(
'cd %s ; DQWebDisplay.py %s TestDisplay 123 True' % (outdir, infile))
58 self.assertTrue(rv==0,
"DQWebDisplay.py return code is nonzero")
◆ outfile
python.TestCases.DQUTestCase.outfile |
The documentation for this class was generated from the following file: