diff --git a/Kernel/LHCbAlgs/tests/qmtest/lhcbalgs.qms/fsr-small-files-root.qmt b/Kernel/LHCbAlgs/tests/qmtest/lhcbalgs.qms/fsr-small-files-root.qmt index f3500cbbff55029cacbc0183dd473106e3a6dbff..a055ff4d9509b2e14b74f4417ce1d0dc3fdda357 100755 --- a/Kernel/LHCbAlgs/tests/qmtest/lhcbalgs.qms/fsr-small-files-root.qmt +++ b/Kernel/LHCbAlgs/tests/qmtest/lhcbalgs.qms/fsr-small-files-root.qmt @@ -18,4 +18,7 @@ if (t1 is None or not t1) or (t1.GetEntries()<50): result['gaudiconf.fsr-small-files-root']=result.Quote("Not enough events copied, output file is corrupted") </text></argument> +<argument name="prerequisites"><set> + <tuple><text>lhcbalgs.fsr-only-file-root</text><enumeral>PASS</enumeral></tuple> +</set></argument> </extension> diff --git a/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/exit.qmt b/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/exit.qmt index 0fde07c410b25dc41e1bc3a55f10cb6635ab5ee0..25535618e335a94ec13c52fb13c786f45e21b8da 100755 --- a/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/exit.qmt +++ b/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/exit.qmt @@ -1,4 +1,15 @@ <?xml version="1.0" ?><!DOCTYPE extension PUBLIC '-//QM/2.3/Extension//EN' 'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'> +<!-- +####################################################### +# SUMMARY OF THIS TEST +# ................... +# Author: rlambert +# Purpose: Check what the XMLSummary stores when the program exits with non-zero exit code +# Prerequisites: None +# Common failure modes, severities and cures: +# . MAJOR: modified or missing XMLSUmmary indicates that either Gaudi has changed how it handles aborts in the code, or that there is some serious problem with the XMLSummary +####################################################### +--> <extension class="GaudiTest.GaudiExeTest" kind="test"> <argument name="program"><text>python</text></argument> <argument name="args"><set><text>../../options/runExitTest.py</text></set></argument> @@ -22,7 +33,7 @@ sumblock=sum.read().split('\n') for l in refblock: ######################################## #allow mem to change - ######################################## + ######################################## if 'MemoryMaximum' in l: pass #do something special @@ -49,7 +60,7 @@ for l in refblock: result['xmlsummarykernel.exit']=result.Quote(restr) if not re.search(restr,stdout): causes.append('XMLsummary output file error') - result['xmlsummarykernel.exit']=result.Quote(restr) + result['xmlsummarykernel.exit']=result.Quote(restr) ######################################## #do not allow any other omissions ######################################## @@ -62,4 +73,7 @@ for l in refblock: result['xmlsummarykernel.exit']=result.Quote(l) </text></argument> +<argument name="prerequisites"><set> + <tuple><text>xmlsummarykernel.exception</text><enumeral>PASS</enumeral></tuple> +</set></argument> </extension> diff --git a/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/readerror.qmt b/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/readerror.qmt index 9fd7545da7b9ccda950adeb2190a3d5ee625445d..d48d03539dc938e28c1e0c3301c49ed261c49ebb 100755 --- a/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/readerror.qmt +++ b/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/readerror.qmt @@ -1,4 +1,15 @@ <?xml version="1.0" ?><!DOCTYPE extension PUBLIC '-//QM/2.3/Extension//EN' 'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'> +<!-- +####################################################### +# SUMMARY OF THIS TEST +# ................... +# Author: rlambert +# Purpose: Test what happens when you try and read a nonexistent file, verify that the XMLSummary does something sensible in this case. +# Prerequisites: None +# Common failure modes, severities and cures: +# . MAJOR: changes here indicate either a major problem with the xmlsumamry, or a major change in how Gaudi handles failed-to-open-files which needs to be incoprorated in the XMLSummary. +####################################################### +--> <extension class="GaudiTest.GaudiExeTest" kind="test"> <argument name="exit_code"><integer>2</integer></argument> <argument name="program"><text>gaudirun.py</text></argument> @@ -24,7 +35,7 @@ for l in refblock: doBreak=False ######################################## #allow mem to change - ######################################## + ######################################## if 'MemoryMaximum' in l: #pass #do something special @@ -51,7 +62,10 @@ for l in refblock: causes.append('XMLsummary printout error') result['xmlsummarykernel.readerror']=result.Quote(l) doBreak=True - if doBreak: + if doBreak: break </text></argument> +<argument name="prerequisites"><set> + <tuple><text>xmlsummarykernel.exit</text><enumeral>PASS</enumeral></tuple> +</set></argument> </extension> diff --git a/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/writedst.qmt b/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/writedst.qmt index a3b20551c57af77822209925a0d7c159ada79cf1..c673f09ca9ad55ea33ab57ac86d9a3822bdf996e 100755 --- a/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/writedst.qmt +++ b/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/writedst.qmt @@ -1,4 +1,15 @@ <?xml version="1.0" ?><!DOCTYPE extension PUBLIC '-//QM/2.3/Extension//EN' 'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'> +<!-- +####################################################### +# SUMMARY OF THIS TEST +# ................... +# Author: rlambert +# Purpose: Check what an XMLSummary for a successful written DST looks like +# Prerequisites: +# Common failure modes, severities and cures: +# . MAJOR: any changes in the XML summary indicates a modification in the behaviour of Gaudi which probably has major impact on how XMLSummary needs to be handled +####################################################### +--> <extension class="GaudiTest.GaudiExeTest" kind="test"> <argument name="program"><text>gaudirun.py</text></argument> <argument name="args"><set><text>../../options/test-XMLSummary.py</text></set></argument> @@ -22,7 +33,7 @@ sumblock=sum.read().split('\n') for l in refblock: ######################################## #allow mem to change - ######################################## + ######################################## if 'MemoryMaximum' in l: pass #do something special @@ -49,7 +60,7 @@ for l in refblock: result['xmlsummarykernel.writedst']=result.Quote(restr) if not re.search(restr,stdout): causes.append('XMLsummary output file error') - result['xmlsummarykernel.writedst']=result.Quote(restr) + result['xmlsummarykernel.writedst']=result.Quote(restr) ######################################## #do not allow any other omissions ######################################## @@ -62,4 +73,7 @@ for l in refblock: result['xmlsummarykernel.writedst']=result.Quote(l) </text></argument> +<argument name="prerequisites"><set> + <tuple><text>xmlsummarykernel.readerror</text><enumeral>PASS</enumeral></tuple> +</set></argument> </extension> diff --git a/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/writeerror.qmt b/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/writeerror.qmt index 3e5769c3ece7dddebbed6ec14fca46fe1aba16b5..68fb573df5993e603f14491370f260c6b5e8f823 100755 --- a/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/writeerror.qmt +++ b/Kernel/XMLSummaryKernel/tests/qmtest/xmlsummarykernel.qms/writeerror.qmt @@ -1,4 +1,15 @@ <?xml version="1.0" ?><!DOCTYPE extension PUBLIC '-//QM/2.3/Extension//EN' 'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'> +<!-- +####################################################### +# SUMMARY OF THIS TEST +# ................... +# Author: rlambert +# Purpose: Keep track of what XMLSummary stores on a write error (trying to write to an unopenable file). +# Prerequisites: None +# Common failure modes, severities and cures: +# . MINOR: Any changes here indicate a change in how Gaudi handles truing to write unwritable files +####################################################### +--> <extension class="GaudiTest.GaudiExeTest" kind="test"> <argument name="exit_code"><integer>2</integer></argument> <argument name="program"><text>gaudirun.py</text></argument> @@ -24,7 +35,7 @@ for l in refblock: doBreak=False ######################################## #allow mem to change - ######################################## + ######################################## if 'MemoryMaximum' in l: #pass #do something special @@ -51,7 +62,10 @@ for l in refblock: causes.append('XMLsummary printout error') result['xmlsummarykernel.writeerror']=result.Quote(l) doBreak=True - if doBreak: + if doBreak: break </text></argument> +<argument name="prerequisites"><set> + <tuple><text>xmlsummarykernel.writedst</text><enumeral>PASS</enumeral></tuple> +</set></argument> </extension>