Changeset 168
- Timestamp:
- 10/15/07 15:54:28
- Files:
-
- guts_main/guts_main.sh (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
guts_main/guts_main.sh
r167 r168 68 68 if [ "$COLOR" == "ON" ]; then 69 69 printf "TEST \033[34m\033[1mPASSED\033[0m for the unit [$UNIT]" 70 else 71 printf "TEST PASSED for the unit [$UNIT]" 70 72 fi 71 printf "TEST PASSED for the unit [$UNIT]"72 73 echo $exe_output 73 74 echo "$UNIT" >>units.passed … … 76 77 if [ "$COLOR" == "ON" ]; then 77 78 printf "TEST \033[31m\033[1mFAILED\033[0m for the unit [$UNIT]" 79 else 80 printf "TEST FAILED for the unit [$UNIT]" 78 81 fi 79 printf "TEST FAILED for the unit [$UNIT]"80 81 printf "\n"82 82 echo $exe_output 83 83 echo "$UNIT" >>units.notpassed … … 113 113 echo "The unit will not be run!!!" 114 114 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]" 116 118 fi 117 echo -e "TEST FAILED for the unit [$NUNIT]"118 119 119 120 echo "$NUNIT" >>units.notpassed … … 127 128 if [ "$COLOR" == "ON" ]; then 128 129 printf "TEST \033[34m\033[1mPASSED\033[0m for the unit [$NUNIT]" 130 else 131 printf "TEST PASSED for the unit [$NUNIT]" 129 132 fi 130 printf "TEST PASSED for the unit [$NUNIT]"131 133 echo "$NUNIT" >>units.passed 132 134 passed=`expr $passed + 1` … … 138 140 139 141 140 printf "\n "141 printf "===============================================================================\n "142 printf "\n\n" 143 printf "===============================================================================\n\n" 142 144 143 145 done … … 164 166 if [ "$COLOR" == "ON" ]; then 165 167 printf "TEST \033[31m\033[1mFAILED\033[0m for the unit [$UNIT]" 168 else 169 printf "TEST FAILED for the unit [$UNIT]" 166 170 fi 167 printf "TEST FAILED for the unit [$UNIT]"168 171 echo "$UNIT" >>units.notpassed 169 172 failed=`expr $failed + 1` … … 171 174 if [ "$COLOR" == "ON" ]; then 172 175 printf "TEST \033[34m\033[1mPASSED\033[0m for the unit [$UNIT]" 176 else 177 printf "TEST PASSED for the unit [$UNIT]" 173 178 fi 174 printf "TEST PASSED for the unit [$UNIT]"175 179 echo "$UNIT" >>units.passed 176 180 passed=`expr $passed + 1` … … 188 192 `rm -f *.o ${RNUNIT} ${RNUNIT}.*out` 189 193 190 printf "\n "194 printf "\n\n" 191 195 printf "===============================================================================\n" 192 196 done … … 225 229 fi 226 230 227 echo " --> Number of units PASSED : $passed"228 echo " --> Number of units FAILED : $failed"231 echo " >--> Number of units PASSED : $passed" 232 echo " >--> Number of units FAILED : $failed" 229 233 total=`expr $passed + $failed` 230 234 percentage=$(((passed*100) / total)) 231 235 232 printf " --> $percentage % of the units have PASSED\n" 236 echo " >--> $percentage % of the units have PASSED" 237 printf "\n" 233 238 234 239 if [ "$COLOR" == "ON" ]; then
