Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-26 05:06:36

0001 #!/bin/bash
0002 
0003 function die { echo $1: status $2 ;  exit $2; }
0004 
0005 LOCAL_TEST_DIR=${SCRAM_TEST_PATH}
0006 
0007 cmsRun ${LOCAL_TEST_DIR}/create_VectorDetId_test_file_cfg.py || die 'Failure using create_VectorDetId_test_file_cfg.py' $?
0008 
0009 file=testVectorDetId.root
0010 
0011 cmsRun ${LOCAL_TEST_DIR}/test_readVectorDetId_cfg.py "$file" || die "Failure using test_readVectorDetId_cfg.py $file" $?
0012 
0013 # The old files read below were generated as follows.
0014 #
0015 #     Check out the 13_2_4 release and cherry pick the commit that
0016 #     adds the original version of the file
0017 #     DataFormats/DetId/test/TestWriteVectorDetId.cc.
0018 #     Except for BuildFile.xml this only adds new test files.
0019 #     There may be minor conflicts or issues in test/BuildFile.xml
0020 #     that need to be resolved.
0021 #
0022 # Run cmsRun with DataFormats/DetId/test/create_VectorDetId_test_file_cfg.py
0023 # as the configuration and rename the file that creates.
0024 #
0025 # By default, split level 99 is used (maximum possible splitting).
0026 # If the suffix "_split_0" is near the end of the filename, the
0027 # following was added to the configuration of the output module:
0028 #     "splitLevel = cms.untracked.int32(0)"
0029 #
0030 
0031 oldFiles="testVectorDetId_CMSSW_13_2_4_split_99.root testVectorDetId_CMSSW_13_2_4_split_0.root"
0032 for file in $oldFiles; do
0033   inputfile=$(edmFileInPath DataFormats/DetId/data/$file) || die "Failure edmFileInPath DataFormats/DetId/data/$file" $?
0034   cmsRun ${LOCAL_TEST_DIR}/test_readVectorDetId_cfg.py "$inputfile" || die "Failed to read old file $file" $?
0035 done
0036 
0037 exit 0