diff options
Diffstat (limited to 'tools/test')
-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 |