Changeset 144

Show
Ignore:
Timestamp:
05/31/07 13:53:30
Author:
apokayi
Message:

remove unnecessary lines

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • guts_npb/guts_npb.sh

    r137 r144  
    99 
    1010# COMPILE -- NAS NPB 
    11 if [ $# -ne 2 ]; then 
     11if test $# -ne 2 ; then 
    1212        echo "Usage:  ./guts_npb.sh [NP] [CLASS]" 
    1313        echo "for example -->  ./guts_npb.sh 2 W" 
     
    1616        make CLASS=$1 NP=$2 >>compile.out 2>compile.errout 
    1717 
    18         if [ $? -eq 0 ] ; then 
     18        if test $? -eq 0 ; then 
    1919                echo "Compilation was SUCCESSFUL for the kernel MG Class [$2]" 
    2020                echo "Now the kernel will be run for ${NP} threads ..." 
     
    2424                exe_output=`$RUN` 
    2525                if [ $? -eq 0 ] ; then 
    26                         echo -e "TEST \033[34m\033[1mPASSED\033[0m for the kernel CLASS [$2]" 
     26                        printf "TEST \033[34m\033[1mPASSED\033[0m for the kernel CLASS [$2]" 
    2727                        echo $exe_output 
    2828                else 
    29                         echo -e "TEST \033[31m\033[1mFAILED\033[0m for the kernel CLASS [$2]" 
     29                        printf "TEST \033[31m\033[1mFAILED\033[0m for the kernel CLASS [$2]" 
    3030                        echo $exe_output 
    3131                fi 
    32  
    3332        else 
    3433                echo "COMPILER ERROR: The kernel NAS-MG cannot be compiled" 
    3534                echo "The kernel will not be run!!!" 
    3635        fi 
    37  
    3836fi 
    39  
    40  
    41