diff options
author | deva <deva> | 2009-07-22 14:58:11 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-22 14:58:11 +0000 |
commit | 8109ada79a24f03e00ebc199ebfdb58e70b054d9 (patch) | |
tree | 449c793915dcc6f4eb6e24050975a481d94b7a47 | |
parent | 177cea995d02fd14dd82fa010957ebfbc1c5e760 (diff) |
Testscript updated with pretty colours...
-rwxr-xr-x | tools/test | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -7,6 +7,7 @@ DEFINE=TEST_$UPPER COMPILE="g++ -g -Wall -Werror -D$DEFINE -o $OUTPUT $*" +echo -e "\033[0;2m" echo Testing $TEST: echo Testing $TEST: > $OUTPUT.log @@ -15,20 +16,20 @@ echo Compiling $TEST test: > $OUTPUT.log echo ${COMPILE} >> $OUTPUT.log if ${COMPILE} >> ${OUTPUT}.log 2>&1; then - echo " [Success]" + echo -e " [\033[1;32mSuccess\033[0;2m]" echo "[Success]" >> $OUTPUT.log echo -n "* Running $TEST test" echo Running $TEST test: >> $OUTPUT.log if ./$OUTPUT >> $OUTPUT.log 2>&1; then - echo " [Success]" + echo -e " [\033[1;32mSuccess\033[0;2m]" echo "[Success]" >> $OUTPUT.log else - echo " [Failure]" + echo -e " [\033[1;31mFailure\033[0;2m]" echo "[Failure]" >> $OUTPUT.log fi else - echo " [Failure]" + echo -e " [\033[1;31mFailure\033[0;2m]" echo "[Failure]" >> $OUTPUT.log fi |