Tests: problems script now outputs color and optional --summary

The problems script now outputs color on each of the test categories,
following the same rules used by simpletap.

It also now includes a --summary switch which outputs the same short
report seen when using ./run_all.
This commit is contained in:
Renato Alves
2015-06-25 18:54:00 +01:00
parent c0df2b9f70
commit 290674d7c1
2 changed files with 105 additions and 31 deletions

View File

@@ -94,7 +94,7 @@ elif [ "$1" = "--fast" ]; then
# Results in (almost) the exact same "all.log" as a normal run.
# Ordering is off, but could easily be adjusted to be the same.
date > all.log
date +"# %s ==> %a %b %d %H:%M:%S %Z %Y" > all.log
# Perl is used here to get the time in seconds
# because 'date +%s' isn't supported on Solaris.
@@ -140,7 +140,7 @@ elif [ "$1" = "--fast" ]; then
runlog_cleanup
date >> all.log
date +"# %s ==> %a %b %d %H:%M:%S %Z %Y" >> all.log
ENDEPOCH=`perl -e 'print time'`
RUNTIME=`expr $ENDEPOCH - $STARTEPOCH`
@@ -152,7 +152,7 @@ elif [ "$1" = "--fast" ]; then
exit $rc
else
date > all.log
date +"# %s ==> %a %b %d %H:%M:%S %Z %Y" > all.log
# Perl is used here to get the time in seconds
# because 'date +%s' isn't supported on Solaris.
@@ -190,7 +190,7 @@ else
$VRAMSTEG --remove
fi
date >> all.log
date +"# %s ==> %a %b %d %H:%M:%S %Z %Y" >> all.log
ENDEPOCH=`perl -e 'print time'`
RUNTIME=`expr $ENDEPOCH - $STARTEPOCH`