Changeset 168

Show
Ignore:
Timestamp:
10/15/07 15:54:28
Author:
apokayi
Message:

remove duplicate output
add some stylistic changes

Files:

Legend:

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

    r167 r168  
    6868                        if [ "$COLOR" == "ON" ]; then 
    6969                                printf "TEST \033[34m\033[1mPASSED\033[0m for the unit [$UNIT]" 
     70                        else 
     71                                printf "TEST PASSED for the unit [$UNIT]" 
    7072                        fi 
    71                         printf "TEST PASSED for the unit [$UNIT]" 
    7273                        echo $exe_output 
    7374                        echo "$UNIT" >>units.passed 
     
    7677                        if [ "$COLOR" == "ON" ]; then 
    7778                                printf "TEST \033[31m\033[1mFAILED\033[0m for the unit [$UNIT]" 
     79                        else 
     80                                printf "TEST FAILED for the unit [$UNIT]" 
    7881                        fi 
    79                         printf "TEST FAILED for the unit [$UNIT]" 
    80  
    81                         printf "\n" 
    8282                        echo $exe_output 
    8383                        echo "$UNIT" >>units.notpassed 
     
    113113                echo "The unit will not be run!!!" 
    114114                if [ "$COLOR" == "ON" ]; then 
    115                         echo -e "TEST \033[31m\033[1mFAILED\033[0m for the unit [$NUNIT]" 
     115                        printf "TEST \033[31m\033[1mFAILED\033[0m for the unit [$NUNIT]" 
     116                else 
     117                        printf "TEST FAILED for the unit [$NUNIT]" 
    116118                fi 
    117                 echo -e "TEST FAILED for the unit [$NUNIT]" 
    118119 
    119120                echo "$NUNIT" >>units.notpassed 
     
    127128                if [ "$COLOR" == "ON" ]; then 
    128129                        printf "TEST \033[34m\033[1mPASSED\033[0m for the unit [$NUNIT]" 
     130                else 
     131                        printf "TEST PASSED for the unit [$NUNIT]" 
    129132                fi 
    130                 printf "TEST PASSED for the unit [$NUNIT]" 
    131133                echo "$NUNIT" >>units.passed      
    132134                passed=`expr $passed + 1` 
     
    138140 
    139141         
    140         printf "\n
    141         printf "===============================================================================\n
     142        printf "\n\n
     143        printf "===============================================================================\n\n
    142144         
    143145done 
     
    164166                        if [ "$COLOR" == "ON" ]; then 
    165167                                printf "TEST \033[31m\033[1mFAILED\033[0m for the unit [$UNIT]" 
     168                        else 
     169                                printf "TEST FAILED for the unit [$UNIT]" 
    166170                        fi 
    167                         printf "TEST FAILED for the unit [$UNIT]" 
    168171                        echo "$UNIT" >>units.notpassed 
    169172                        failed=`expr $failed + 1` 
     
    171174                        if [ "$COLOR" == "ON" ]; then 
    172175                                printf "TEST \033[34m\033[1mPASSED\033[0m for the unit [$UNIT]" 
     176                        else 
     177                                printf "TEST PASSED for the unit [$UNIT]" 
    173178                        fi 
    174                         printf "TEST PASSED for the unit [$UNIT]" 
    175179                        echo "$UNIT" >>units.passed 
    176180                        passed=`expr $passed + 1` 
     
    188192        `rm -f *.o ${RNUNIT} ${RNUNIT}.*out` 
    189193 
    190         printf "\n
     194        printf "\n\n
    191195        printf "===============================================================================\n" 
    192196done 
     
    225229fi 
    226230 
    227 echo "                 -->    Number of units PASSED : $passed" 
    228 echo "                 -->    Number of units FAILED : $failed" 
     231echo "                 >-->   Number of units PASSED : $passed" 
     232echo "                 >-->   Number of units FAILED : $failed" 
    229233total=`expr $passed + $failed` 
    230234percentage=$(((passed*100) / total)) 
    231235 
    232 printf "                 -->    $percentage % of the units have PASSED\n" 
     236echo "                  >-->    $percentage % of the units have PASSED" 
     237printf "\n" 
    233238 
    234239if [ "$COLOR" == "ON" ]; then