Commit 7273003d authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Added tests using namespace qualifiers in instance names in .opts

From: Marco Clemencic <marco.clemencic@cern.ch>


git-svn-id: svn+ssh://svn.cern.ch/reps/gaudi/Gaudi/trunk@6751 53ecefc3-a64d-0410-9bdf-b8581fa3287e
parent df466a61
Package GaudiExamples
Package manager : Marco Clemencic
! 2011-12-13 - Marco Clemencic
- Added tests using namespace qualifiers in instance names in .opts (Gaudi.exe
and gaudirun.py).
- Reordering of tests.
! 2011-12-12 - Marco Clemencic
- Fixed tests for new dependencies:
- updated configuration
......
// test the use of namespace in instance names
MyNamespace::MyAlg.Int = 10;
Gaudi::Alg.Gaudi::Tool.Float = 1.234;
<?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'>
<extension class="GaudiTest.GaudiExeTest" kind="test">
<argument name="args"><set><text>$GAUDIEXAMPLESROOT/options/Properties.opts</text></set></argument>
<argument name="use_temp_dir"><enumeral>true</enumeral></argument>
<argument name="reference"><text>refs/Properties.ref</text></argument>
<argument name="use_temp_dir"><enumeral>true</enumeral></argument>
<argument name="reference"><text>refs/Properties.ref</text></argument>
</extension>
<?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'>
<extension class="GaudiTest.GaudiExeTest" kind="test">
<argument name="args"><set><text>$GAUDIEXAMPLESROOT/options/ExtendedProperties.opts</text></set></argument>
<argument name="validator"><text>
<argument name="args"><set><text>$GAUDIEXAMPLESROOT/options/ExtendedProperties.opts</text></set></argument>
<argument name="validator"><text>
import ExtPropValidator
ExtPropValidator.validate(stdout,stderr,result,causes)
</text></argument>
......
<?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'>
<extension class="GaudiTest.GaudiExeTest" kind="test">
<argument name="program"><text>gaudirun.py</text></argument>
<argument name="args"><set><text>$GAUDIEXAMPLESROOT/options/ExtendedProperties.py</text></set></argument>
<argument name="validator"><text>
<argument name="program"><text>gaudirun.py</text></argument>
<argument name="args"><set><text>$GAUDIEXAMPLESROOT/options/ExtendedProperties.py</text></set></argument>
<argument name="validator"><text>
import ExtPropValidator
ExtPropValidator.validate(stdout,stderr,result,causes)
</text></argument>
......
<?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'>
<extension class="GaudiTest.GaudiExeTest" kind="test">
<!--<argument name="program"><text>gaudirun.py</text></argument>-->
<argument name="args"><set><text>$GAUDIEXAMPLESROOT/options/namespace_properties.opts</text></set></argument>
<argument name="use_temp_dir"><enumeral>true</enumeral></argument>
<argument name="reference"><text>refs/ns_props.ref</text></argument>
<argument name="validator"><text>
# hide a difference between JobOptionsSvc and Configurables
preprocessor = normalizeExamples + \
LineSkipper(strings=["INFO Job options successfully"])
validateWithReference(preproc = preprocessor)
</text></argument>
</extension>
<?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'>
<extension class="GaudiTest.GaudiExeTest" kind="test">
<argument name="program"><text>gaudirun.py</text></argument>
<argument name="args"><set><text>$GAUDIEXAMPLESROOT/options/namespace_properties.opts</text></set></argument>
<argument name="use_temp_dir"><enumeral>true</enumeral></argument>
<argument name="reference"><text>refs/ns_props.ref</text></argument>
</extension>
# --> Including file '/afs/cern.ch/user/m/marcocle/scratch0/workspace/Gaudi/GaudiExamples/options/namespace_properties.opts'
# MyNames-pace::MyAlg.Int = 10;
# Gaudi::Alg.Gaudi::Tool.Float = 1.234;
# <-- End of file '/afs/cern.ch/user/m/marcocle/scratch0/workspace/Gaudi/GaudiExamples/options/namespace_properties.opts'
ApplicationMgr SUCCESS
====================================================================================================================================
Welcome to ApplicationMgr $Revision: 1.77 $
running on lxplus419.cern.ch on Tue Dec 13 14:58:19 2011
====================================================================================================================================
ApplicationMgr INFO Application Manager Configured successfully
HistogramPersis...WARNING Histograms saving not required.
ApplicationMgr INFO Application Manager Initialized successfully
ApplicationMgr INFO Application Manager Started successfully
EventSelector INFO End of event input reached.
EventLoopMgr INFO No more events in event selection
ApplicationMgr INFO Application Manager Stopped successfully
EventLoopMgr INFO Histograms converted successfully according to request.
ToolSvc INFO Removing all tools created by ToolSvc
ApplicationMgr INFO Application Manager Finalized successfully
ApplicationMgr INFO Application Manager Terminated successfully
Supports Markdown
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