Skip to content
Snippets Groups Projects
Commit 5fe42960 authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (POOLCollectionToolsTest-00-01-10)

	* Fully remove tranform tests
	* POOLCollectionToolsTest-00-01-10
parent d071e84d
No related merge requests found
Showing
with 17 additions and 367 deletions
################################################################################
# Package: POOLCollectionToolsTest
################################################################################
# Declare the package name:
atlas_subdir( POOLCollectionToolsTest )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Database/AthenaPOOL/AtlasCollectionTools
Event/ByteStreamCnvSvc
PRIVATE
TestPolicy )
# Install files from the package:
atlas_install_runtime( share/*.py test/POOLCollectionToolsTest_TestConfiguration.xml data/*logCheck* )
...@@ -5,7 +5,6 @@ author Jack Cranshaw <Jack.Cranshaw@cern.ch> ...@@ -5,7 +5,6 @@ author Jack Cranshaw <Jack.Cranshaw@cern.ch>
use AtlasPolicy AtlasPolicy-* use AtlasPolicy AtlasPolicy-*
use ByteStreamCnvSvc ByteStreamCnvSvc-* Event -no_auto_imports use ByteStreamCnvSvc ByteStreamCnvSvc-* Event -no_auto_imports
use AtlasCollectionTools AtlasCollectionTools-* Database/AthenaPOOL -no_auto_imports use AtlasCollectionTools AtlasCollectionTools-* Database/AthenaPOOL -no_auto_imports
use AtlasCollectionTransforms AtlasCollectionTransforms-* Database/AthenaPOOL -no_auto_imports
apply_pattern declare_runtime files="../share/*.py ../test/*.pickle ../test/POOLCollectionToolsTest_TestConfiguration.xml ../data/*logCheck*" apply_pattern declare_runtime files="../share/*.py ../test/*.pickle ../test/POOLCollectionToolsTest_TestConfiguration.xml ../data/*logCheck*"
......
...@@ -78,30 +78,6 @@ ...@@ -78,30 +78,6 @@
</expectations> </expectations>
</TEST> </TEST>
<TEST name="tagMerge" type="script" suite="POOLCollectionToolsTest-Event">
<doc>Check script for merging tag files 1-1 (Atlas POOL). Straight. Should work.</doc>
<classification>
<displayClass>OfflineValidation</displayClass>
<displayProcess>Database</displayProcess>
<displayComponent>Atlas-POOL</displayComponent>
</classification>
<options_atn>${ATN_PACKAGE}/test/run_tagMerge</options_atn>
<timelimit>15</timelimit>
<author>JackCranshaw</author>
<mailto>cranshaw@anl.gov</mailto>
<expectations>
<errorMessage>Exception: </errorMessage>
<errorMessage>ERROR </errorMessage>
<errorMessage>ERROR: </errorMessage>
<errorMessage>Error: </errorMessage>
<errorMessage>Exception </errorMessage>
<successMessage>1 total events </successMessage>
<successMessage>Metadata entries: 15</successMessage>
<successMessage>OK</successMessage>
<returnValue>0</returnValue>
</expectations>
</TEST>
<TEST name="ListFileGUID" type="script" suite="POOLCollectionToolsTest-Event"> <TEST name="ListFileGUID" type="script" suite="POOLCollectionToolsTest-Event">
<doc>Check POOL tool for dumping GUID's`</doc> <doc>Check POOL tool for dumping GUID's`</doc>
<classification> <classification>
......
#!/bin/sh
DATADIR=/afs/cern.ch/atlas/offline/test/POOLCollectionTools
TESTFILE=$DATADIR/user_data09_2TeV_physics_MinBias_r988_p62_READ_1265241701_.root
TRF=CollSplitByRun.exe
# run the test
which $TRF
if [[ $? -ne 0 ]]; then
echo "ERROR: $TRF not found"
exit 2
fi
cmd="$TRF -src PFN:$TESTFILE RootCollection -splitref StreamESD_ref"
#cmd="$TRF -src PFN:$TESTFILE RootCollection"
echo $cmd
$cmd
cmd2="CollListMetadata -src sub_collection_1 RootCollection"
$cmd2
#$cmd | wc -l
#!/bin/sh
DATADIR=/afs/cern.ch/atlas/offline/test/POOLCollectionTools
TESTOUTPUT=oracle://int8r_nolb/atlas_tags_loading_test/atn_ATN_AtlasPOOL_Copy
TESTINPUT=oracle://int8r_nolb/atlas_tags_loading_test/atn_REF_AtlasPOOL_Copy
#TESTINPUT=oracle://atlarc.cern.ch/ATLAS_TAGS_DATA_R_DEC2010/data10_7TeV_physics_Standby_r1647_p306_p307_p372_READ
RUNS=165703
TRF=tagCopy_trf.py
RELEASE=Atlas,takeFromEnv
# remove detritus from previous tests
rm -f authentication.xml
rm -f PoolCollectionCatalog.xml
ln -s $DATADIR/authentication.xml .
cleanup="CollRemove -src $TESTTABLE RelationalCollection -srcconnect $CONNSTRING"
#echo $cleanup
#$cleanup
# run the test
which $TRF
if [[ $? -ne 0 ]]; then
echo "ERROR: $TRF not found"
exit 2
fi
cmd="$TRF $TESTINPUT $TESTOUTPUT $RUNS $RELEASE"
echo $cmd
$cmd
#!/bin/sh
DATADIR=/afs/cern.ch/atlas/offline/test/POOLCollectionTools
#INPUTCOLLS=fdr08_run2_physics_Minbias_o3_f8_m10:fdr08_run2_physics_Muon_o3_f8_m10
INPUTCOLLS=data12_8TeV_express_express_f446_m1148_m1147_READ:data12_8TeV_physics_JetTauEtmiss_f446_m1148_m1147_READ
OUTFILE=ExtractAtlas.root
QUERY="NLooseElectron>2"
TRF=tagExtract_trf.py
RELEASE=Atlas,takeFromEnv
CONNECT="oracle://atlas_tags/ATLAS_TAGS_DATA_F_2012"
LUMI="Query%3A%0ASELECT+distinct+%27user_RichardHawkings_topmix_Jet_v2_READ%27+as+stream_name%2CRunNumber%2CLumiBlockN+FROM+user_RichardHawkings_topmix_Jet_v2_READ+WHERE+%28RunNumber+%3D+108173%29+and+%28RunNumber+in+%28select+distinct+run_number+from+ATLAS_TAGS_METADATA.coma_runs"
# remove detritus from previous tests
rm -f authentication.xml
rm -f PoolCollectionCatalog.xml
rm -f $OUTFILE
ln -s $DATADIR/authentication.xml .
# run the test
which $TRF
if [[ $? -ne 0 ]]; then
echo "ERROR: $TRF not found"
exit 2
fi
cmd="$TRF $INPUTCOLLS $OUTFILE $QUERY $LUMI $RELEASE $CONNECT True $PWD"
echo $cmd
$cmd
#!/bin/sh
DATADIR=/afs/cern.ch/atlas/offline/test/POOLCollectionTools
INPUT=$DATADIR/Ryan_Buckingham_data10_7TeV_debugrec_hltacc_f243_m435_READ_1271245689_.root
INPUT2=$DATADIR/Sky_French_data10_7TeV_physics_MinBias_f238_m427_READ_1271338106_.root
OUTPUT=atn_test_tagMergeAtlas.root
TRF=tagMerge_trf.py
RELEASE=Atlas,takeFromEnv
# remove detritus from previous tests
rm -f $TRF
rm -f PoolCollectionCatalog.xml
rm -f $OUTPUT
# run the test
which $TRF
if [[ $? -ne 0 ]]; then
echo "ERROR: $TRF not found"
exit 2
fi
# Do first file
cmd="$TRF $INPUT $OUTPUT $RELEASE"
echo $cmd
$cmd
# Do second file
cmd="$TRF $INPUT2 $OUTPUT $RELEASE"
echo $cmd
$cmd
# Dump metadata
cmd="CollListMetadata -src PFN:$OUTPUT RootCollection"
echo $cmd
$cmd
#!/bin/sh
DATADIR=/afs/cern.ch/atlas/offline/test/POOLCollectionTools
#INPUT=$DATADIR/Ryan_Buckingham_data10_7TeV_debugrec_hltacc_f243_m435_READ_1271245689_.root
#INPUT2=$DATADIR/Sky_French_data10_7TeV_physics_MinBias_f238_m427_READ_1271338106_.root
INPUT=$DATADIR/TAG.102268._000025.pool.root.1
INPUT2=$DATADIR/TAG.102268._000029.pool.root.1
OUTPUT=atn_test_tagMerge_panda.root
TRF=merge_trf.py
# remove detritus from previous tests
#rm -f $TRF
#rm -f PoolCollectionCatalog.xml
rm -f $OUTPUT
# run the test
which $TRF
if [[ $? -ne 0 ]]; then
echo "ERROR: $TRF not found"
exit 2
fi
# Do first file
cmd="$TRF -i $INPUT $INPUT2 -o $OUTPUT -m tag"
echo $cmd
$cmd
# Dump metadata
cmd="CollListMetadata -src PFN:$OUTPUT RootCollection"
echo $cmd
$cmd
# Dump metadata
cmd="cat metadata.xml"
$cmd
#!/bin/sh
DATADIR=/afs/.cern.ch/atlas/offline/test/POOLCollectionTools
TESTTABLE=atn_test_102268_Prov
CONNSTRING=oracle://int8r_nolb/atlas_tags_loading_test
#TESTFILE=$DATADIR/fdr08_run2_physics_Minbias_o3_f8_m10_1217278983_user.root
TESTFILE=$DATADIR/TAG.102268._000029.pool.root.1
#TESTFILE=/afs/cern.ch/user/c/cranshaw/maxidisk/workarea/AtlasTest/DatabaseTest/AthenaPoolMultiTest/run/Collection_Split1.root
TRF=tagUpload_trf.py
RELEASE=Atlas,takeFromEnv
# remove detritus from previous tests
rm -f authentication.xml
rm -f PoolCollectionCatalog.xml
ln -s $DATADIR/authentication.xml .
cleanup="CollRemove -src $TESTTABLE RelationalCollection -srcconnect $CONNSTRING"
#echo $cleanup
#$cleanup
# run the test
which $TRF
if [[ $? -ne 0 ]]; then
echo "ERROR: $TRF not found"
exit 2
fi
cmd="$TRF $TESTFILE $TESTTABLE $RELEASE $CONNSTRING"
echo $cmd
$cmd
#!/bin/sh
CONNSTRING=oracle://int8r_nolb/atlas_tags_loading_test
DATADIR=/afs/.cern.ch/atlas/offline/test/POOLCollectionTools
PICKLE=tagUploadT0.pickle
#TRF=tagUploadT0_trf.py
#TRF=tagUpload_trf.py
TRF=TAGUpload_Tier0Wrapper_trf.py
# remove detritus from previous tests
rm -f $PICKLE
rm -f authentication.xml
rm -f PoolCollectionCatalog.xml
ln -s $DATADIR/authentication.xml .
#cleanup="CollRemove -src $TESTTABLE RelationalCollection -srcconnect $CONNSTRING"
#echo $cleanup
#$cleanup
get_files -data $PICKLE
# run the test
which $TRF
if [[ $? -ne 0 ]]; then
echo "ERROR: $TRF not found"
exit 2
fi
cmd="$TRF --argdict=$PICKLE"
echo $cmd
$cmd
#!/bin/sh
INPUT1=/afs/cern.ch/atlas/offline/test/POOLCollectionTools/knownerrors.log
INPUT2=/afs/cern.ch/atlas/offline/test/POOLCollectionTools/errors.log
INPUT3=/afs/cern.ch/atlas/offline/test/POOLCollectionTools/data10_7TeV.00155116.physics_RNDM.merge.TAG.r1647_p306_p307_p372.upload2desy_re.task._0001.job.TMP.log.1
TRF=tagUpload_logChecks_trf.py
# run the test
which $TRF
if [[ $? -ne 0 ]]; then
echo "ERROR: $TRF not found"
exit 2
fi
cmd="$TRF $INPUT1"
echo $cmd
$cmd
cmd="$TRF $INPUT2"
echo $cmd
$cmd
cmd="$TRF $INPUT3"
echo $cmd
$cmd
#!/bin/sh
CONNSTRING=oracle://int8r_nolb/atlas_tags_loading_test
DATADIR=/afs/.cern.ch/atlas/offline/test/POOLCollectionTools
PICKLE=tagUploadT0MC.pickle
#TRF=tagUploadT0_trf.py
#TRF=tagUpload_trf.py
TRF=MCTAGUpload_Tier0Wrapper_trf.py
# remove detritus from previous tests
rm -f $PICKLE
rm -f authentication.xml
rm -f PoolCollectionCatalog.xml
ln -s $DATADIR/authentication.xml .
#cleanup="CollRemove -src $TESTTABLE RelationalCollection -srcconnect $CONNSTRING"
#echo $cleanup
#$cleanup
get_files -data $PICKLE
# run the test
which $TRF
if [[ $? -ne 0 ]]; then
echo "ERROR: $TRF not found"
exit 2
fi
cmd="$TRF --argdict=$PICKLE"
echo $cmd
$cmd
(lp0
(lp1
I32
aS'TRF_TIMEOUT'
p2
aS'NO LOCKS // CONN_TIMEOUT: '
p3
aa.
\ No newline at end of file
(dp0
S'dbCollection'
p1
S'atn_t0test_102268_Prov_2'
p2
sS'addattr'
p3
(lp4
S'test_id'
p5
aS'uint'
p6
aS'25'
p7
asS'releaseConfig'
p8
S'Atlas,takeFromEnv'
p9
sS'pid'
p10
S'0'
p11
sS'dbConnect'
p12
S'oracle://int8r_nolb/atlas_tags_loading_test'
p13
sS'inputTagFile'
p14
(lp15
S'PCT.001.ATN.test.TAG.r1#/afs/cern.ch/atlas/offline/test/POOLCollectionTools/TAG.102268._000025.pool.root.1'
p16
aS'PCT.001.ATN.test.TAG.r1#/afs/cern.ch/atlas/offline/test/POOLCollectionTools/TAG.102268._000029.pool.root.1'
p17
as.
\ No newline at end of file
(dp0
S'dbCollection'
p1
S'atn_t0test_AtlasPOOL_102268_chk_Prov'
p2
sS'attChk'
p3
I01
sS'releaseConfig'
p4
S'AtlasPOOL,takeFromEnv'
p5
sS'pid'
p6
S'0'
p7
sS'dbConnect'
p8
S'oracle://int8r_nolb/atlas_tags_loading_test'
p9
sS'inputTagFile'
p10
(lp11
S'/afs/cern.ch/atlas/offline/test/POOLCollectionTools/TAG.102268._000029.pool.root.1'
p12
as.
\ No newline at end of file
(dp0
S'dbConnect'
p1
S'oracle://int8r_nolb/atlas_tags_loading_test'
p2
sS'inputTagFile'
p3
(lp4
S'PCT_MC.111.ATN.test.TAG.r1#/afs/cern.ch/atlas/offline/test/POOLCollectionTools/TAG.00828528._000001.pool.root.1'
p5
asS'dbCollection'
p6
S'atn_t0test_111_MC_2'
p7
s.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment