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