Commit 78e8b311 authored by Stefano Belforte's avatar Stefano Belforte
Browse files

test one CMSSW version

parent 1fdfc004
#!/bin/sh
cmsver=$1
echo "scramv1 project CMSSW $cmsver"
case $cmsver in
CMSSW_0* | CMSSW_1_[1-4]*)
arch=slc3_ia32_gcc323
;;
CMSSW_1_[5678]*)
arch=slc4_ia32_gcc345
;;
*)
arch=slc4_ia32_gcc345
;;
esac
export SCRAM_ARCH=$arch
export BUILD_ARCH=$arch
pwd
echo "<pre>"
scramv1 project CMSSW $cmsver
projectresult=$?
echo "</pre>"
if [ $projectresult != 0 ]
then
echo "<p><strong>"
echo "CMSSW version $cmsver project configuration failed"
echo "</strong></p>"
exit 1
else
#echo "<p>"
echo "Checking version $cmsver runtime environment"
echo "<br>"
echo "<pre>"
echo "eval \`scramv1 runtime -sh\`"
cd $cmsver/src
eval `scramv1 runtime -sh`
runtresult=$?
echo "</pre>"
cd ../..
if [ $runtresult != 0 ]
then
echo "<p><strong>"
echo "CMSSW version $cmsver runtime environment configuration failed"
echo "</strong></p>"
exit 1
else
#echo "<p>"
echo "CMSSW version $cmsver configured correctly"
echo "<br>"
fi
fi
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment