Commit 30d01f18 authored by wangw's avatar wangw
Browse files

add check for SL5

parent d7e5ce0f
......@@ -24,6 +24,39 @@ if [ $result != 0 ]
exit $SAME_ERROR
fi
#
# check for SL5
#
libc25=1
if ! [ -f $SW_DIR/common/cmsos ] ; then
echo "$SW_DIR/common/cmsos not found - force to SL5"
slVersion="slc5"
else
osVersion=`$SW_DIR/common/cmsos`
echo "osVersion from \$SW_DIR/common/cmsos =" $osVersion
cmsarch=`$SW_DIR/common/cmsarch`
echo "scram_arch from \$SW_DIR/common/cmsarch=" $cmsarch
slVersion=`echo $cmsarch|cut -d'_' -f1`
fi
echo "slVersion=" $slVersion
if ! [ -f /lib/libc-2.5.so ] ; then
echo "libc 2.5 not found, not an SL5 node"
libc25=0
fi
if ! [ $slVersion == "slc5" ] ; then
echo "<h3> not an SL5 machine </h3>"
exit $SAME_NOTICE
fi
if [ $libc25 == "0" ] ; then
echo "<h2>ohibo' ! SL5 but no libc-2.5</h2>"
echo "osVersion/slVersion =" $osVersion $slVersion
echo "ls -l /lib/libc*"
ls -l /lib/libc*
exit $SAME_INFO
fi
# Execute main test script
echo "<h3>Executing the FroNtier test</h3>"
echo "<pre>"
......
Markdown is supported
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