Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-22 02:30:54

0001 #!/bin/sh
0002 
0003 TEST_DIR="/tmp/MuonGeomtryDBConverter_$(date '+%G-%m-%d_%H.%M.%S.%N')_${RANDOM}"
0004 TEST_CFG="${CMSSW_BASE}/src/Alignment/MuonAlignment/test/muonGeometryDBConverter_cfg.py"
0005 
0006 clean_up() {
0007     rm -rf ${TEST_DIR}
0008 }
0009 trap clean_up EXIT
0010 
0011 check_for_success() {
0012     "${@}" && echo -e "\n ---> Passed test of '${@}'\n\n" || exit 1
0013 }
0014 
0015 
0016 rm -rf ${TEST_DIR}
0017 mkdir -p ${TEST_DIR}
0018 
0019 check_for_success cmsRun ${TEST_CFG} input=ideal output=db outputFile=${TEST_DIR}/ideal.db
0020 check_for_success cmsRun ${TEST_CFG} input=db output=xml inputFile=${TEST_DIR}/ideal.db outputFile=${TEST_DIR}/ideal.xml
0021 check_for_success cmsRun ${TEST_CFG} input=xml output=db inputFile=${TEST_DIR}/ideal.xml outputFile=${TEST_DIR}/idealXML.db
0022 clean_up