Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:18

0001 #!/bin/sh
0002 
0003 # Pass in name and status
0004 function die { echo $1: status $2 ;  exit $2; }
0005 
0006 pushd ${LOCAL_TMP_DIR}
0007 
0008 export TMPDIR=${LOCAL_TMP_DIR:-/tmp}
0009 cmsRun ${LOCAL_TEST_DIR}/gen_things_cfg.py || die 'Failed generating test root file' $?
0010 
0011 rm -f a.jpg refA.jpg
0012 root -b -n -q ${LOCAL_TEST_DIR}/thing_sel.C || die 'Failed tfwliteselectortest::ThingsTSelector test' $?
0013 [ -s a.jpg ] && [ -s refA.jpg ] || die 'Failed tfwliteselectortest::ThingsTSelector test, no histograms' 20
0014 
0015 rm -f a.jpg refA.jpg
0016 root -b -n -q ${LOCAL_TEST_DIR}/thing2_sel.C || die 'Failed tfwliteselectortest::ThingsTSelector2 test' $?
0017 [ -s a.jpg ] && [ -s refA.jpg ] || die 'Failed tfwliteselectortest::ThingsTSelector2 test, no histograms' 20
0018 
0019 rm -f a.jpg refA.jpg
0020 root -b -n -q ${LOCAL_TEST_DIR}/proof_thing_sel.C || die 'Failed tfwliteselectortest::ThingsTSelector test' $?
0021 [ -s a.jpg ] && [ -s refA.jpg ] || die 'Failed tfwliteselectortest::ThingsTSelector test, no histograms' 20
0022 
0023 rm -f a.jpg refA.jpg
0024 root -b -n -q ${LOCAL_TEST_DIR}/proof_thing2_sel.C || die 'Failed tfwliteselectortest::ThingsTSelector2 test' $?
0025 [ -s a.jpg ] && [ -s refA.jpg ] || die 'Failed tfwliteselectortest::ThingsTSelector2 test, no histograms' 20
0026 
0027 rm -f a.jpg refA.jpg
0028 
0029 popd
0030 
0031 exit 0