Corrected gcc version test.

Removed network tests.
This commit is contained in:
henry
2009-07-27 12:32:20 +01:00
parent 0ce7570777
commit e2a74e59d9

View File

@ -252,7 +252,7 @@ reportExecutable () {
;; ;;
gcc) gcc)
VERSION=`$1 -v 2>&1 \ VERSION=`$1 -v 2>&1 \
| grep 'version' \ | grep 'gcc version' \
| cut -d" " -f3` | cut -d" " -f3`
if [ ! "$VERSION" = "$SUPPLIED_VERSION_GCC" ]; then if [ ! "$VERSION" = "$SUPPLIED_VERSION_GCC" ]; then
echo "WARNING: gcc version does not match gcc supplied" \ echo "WARNING: gcc version does not match gcc supplied" \
@ -523,32 +523,9 @@ reportExecutable icoFoam "${FOAM_APPBIN}/icoFoam"
hline hline
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
heading "Checking networking..." heading "Summary"
COL1=`fixlen "Action" 25`
COL2=`fixlen "Result" 45`
COL3=`fixlen "Crit" 5`
hline
echo "$COL1 $COL2 $COL3"
hline hline
pingTest "$HOST_NAME" "yes"
pingTest "localHost" "yes"
checkRsh
checkSsh
if [ $SSHRSHOK -eq 1 ]; then
echo "(*) Only one of rsh or ssh is required by the OpenFOAM enviroment."
elif [ $SSHRSHOK -gt 1 ]; then
echo "FATAL ERROR: No remote shell available."
echo " OpenFOAM ${FOAM_VERSION} enviroment requires either ssh and/or rsh."
echo " Contact your system administrator."
echo ""
FATALERROR=`expr $FATALERROR + 1`
fi
echo ""
hline
echo ""
if [ $FATALERROR -gt 0 ] ; then if [ $FATALERROR -gt 0 ] ; then
echo "The system test has evoked $FATALERROR fatal error(s)." echo "The system test has evoked $FATALERROR fatal error(s)."
else else