Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-01-16 23:23:57

0001 #!/bin/bash
0002 
0003 function die { echo Failure $1: status $2 ; exit $2 ; }
0004 function runSuccess {
0005     echo "cmsRun $@"
0006     cmsRun $@ || die "cmsRun $*" $?
0007     echo
0008 }
0009 function runFailure {
0010     echo "cmsRun $@ (expected to fail)"
0011     cmsRun $@ && die "cmsRun $*" 1
0012     echo
0013 }
0014 
0015 # Produce two files with different ProductID metadata
0016 runSuccess ${SCRAM_TEST_PATH}/testRefProductIDMetadataConsistencyStreamer_cfg.py
0017 runSuccess ${SCRAM_TEST_PATH}/testRefProductIDMetadataConsistencyStreamer_cfg.py --enableOther
0018 
0019 # Processing the two files together works
0020 runSuccess ${SCRAM_TEST_PATH}/testRefProductIDMetadataConsistencyStreamerTest_cfg.py --input refconsistency_1.dat --input refconsistency_10.dat
0021 
0022 # Concatenating the two files by keeping the Init message of only first file ...
0023 echo "Concatenating streamer files"
0024 CatStreamerFiles refconsistency_cat.dat refconsistency_1.dat refconsistency_10.dat
0025 echo
0026 
0027 # ... fails
0028 runSuccess ${SCRAM_TEST_PATH}/testRefProductIDMetadataConsistencyStreamerTest_cfg.py --input refconsistency_cat.dat