---
To run all the system tests, enter the command:
- sh runall.sh [-n] [numproc]
+ sh runall.sh [-c] [-n] [numproc]
+
+The optional flag "-c" forces colored output (by default system test output is
+not printed in color due to run.sh being piped through "tee").
The optional flag "-n" has the same effect as it does for "run.sh" - it causes
the retention of all output files from all tests.
SYSTEMTEST_NO_CLEAN=1 make [-j numproc] test
+while setting environment variable SYSTEMTEST_FORCE_COLOR to 1 forces system
+test output to be printed in color.
Running Multiple System Test Suites Simultaneously
#
# Set up color-coded test output
#
-if test -t 1 && type tput > /dev/null 2>&1 ; then
+if [ ${SYSTEMTEST_FORCE_COLOR:-0} -eq 1 ] || test -t 1 && type tput > /dev/null 2>&1 ; then
COLOR_END=`tput setaf 4` # blue
COLOR_FAIL=`tput setaf 1` # red
COLOR_INFO=`tput bold` # bold
# Run all the system tests.
#
# Usage:
-# runall.sh [-n] [numprocesses]
+# runall.sh [-c] [-n] [numprocesses]
+#
+# -c Force colored output.
#
# -n Noclean. Keep all output files produced by all tests. These
# can later be removed by running "cleanall.sh".
SYSTEMTESTTOP=.
. $SYSTEMTESTTOP/conf.sh
-usage="Usage: ./runall.sh [-n] [numprocesses]"
+usage="Usage: ./runall.sh [-c] [-n] [numprocesses]"
+SYSTEMTEST_FORCE_COLOR=0
SYSTEMTEST_NO_CLEAN=0
-# Handle "-n" switch if present.
+# Handle command line switches if present.
-while getopts "n" flag; do
+while getopts "cn" flag; do
case "$flag" in
+ c) SYSTEMTEST_FORCE_COLOR=1 ;;
n) SYSTEMTEST_NO_CLEAN=1 ;;
esac
done
# Run the tests.
+export SYSTEMTEST_FORCE_COLOR
export SYSTEMTEST_NO_CLEAN
status=0