6 if [ "$1" = "-no-color" ]; then
11 if [ "$1" = "-twice" ]; then
24 if [ -z "$COMPILER" -o -z "$CLEANER" -o -z "$LOGFILE" -o -z "$TODO" ]; then
27 echo " do_tests.sh [-no-color] [-twice] ./compiler ./cleaner logfile tests.ma ..."
30 echo " -no-color Do not use vt100 colors"
31 echo " -twice Run each test twice but show only the second run times"
33 echo "The value of the DO_TESTS_EXTRA evironment variable"
34 echo "will be appended to each line."
41 printf "$COMPILER\t%-30s " $T
42 if [ "$TWICE" = "1" ]; then
43 $CLEANER $T 1>/dev/null 2>/dev/null
44 $COMPILER $T 1>/dev/null 2>/dev/null
46 $CLEANER $T 1>/dev/null 2>/dev/null
47 /usr/bin/time --quiet -o $TMP -f "%E %U %S" $COMPILER $T >> $LOGFILE 2>&1
50 printf "$OK\t`cat $TMP`\t$DO_TESTS_EXTRA\n"
53 printf "$FAIL\t`cat $TMP`\t$DO_TESTS_EXTRA\n";