summaryrefslogtreecommitdiff
path: root/tools/test
diff options
context:
space:
mode:
authordeva <deva>2009-07-22 14:58:11 +0000
committerdeva <deva>2009-07-22 14:58:11 +0000
commit8109ada79a24f03e00ebc199ebfdb58e70b054d9 (patch)
tree449c793915dcc6f4eb6e24050975a481d94b7a47 /tools/test
parent177cea995d02fd14dd82fa010957ebfbc1c5e760 (diff)
Testscript updated with pretty colours...
Diffstat (limited to 'tools/test')
-rwxr-xr-xtools/test9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/test b/tools/test
index 7e15b3d..0639ff1 100755
--- a/tools/test
+++ b/tools/test
@@ -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