]> matita.cs.unibo.it Git - helm.git/commitdiff
Nicer output for the "make tests*" commands.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 27 Jun 2005 10:03:16 +0000 (10:03 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 27 Jun 2005 10:03:16 +0000 (10:03 +0000)
helm/matita/scripts/do_tests.sh

index 080ff2adaf9a81908ffde12dc814ecb59ec2e996..d2e7eec91cc34cc1d537f38a4a90cbbf14e3645e 100755 (executable)
@@ -36,15 +36,15 @@ fi
 TMP=.__temp.txt
 
 for T in $TODO; do
-  echo -en "$COMPILER\t$T\t"
+  printf "$COMPILER\t%-30s   " $T
   if [ "$TWICE" = "1" ]; then
     $COMPILER $T 1>/dev/null 2>/dev/null
   fi
-  /usr/bin/time --quiet -o $TMP -f "%E\t%U\t%S" $COMPILER $T >> $LOGFILE 2>&1
+  /usr/bin/time --quiet -o $TMP -f "%E  %U  %S" $COMPILER $T >> $LOGFILE 2>&1
   if [ $? = 0 ]; then
-    echo -e "$OK\t`cat $TMP`\t$DO_TESTS_EXTRA"
+    printf "$OK\t`cat $TMP`\t$DO_TESTS_EXTRA\n"
   else
-    echo -e "$FAIL\t`cat $TMP`\t$DO_TESTS_EXTRA"
+    printf "$FAIL\t`cat $TMP`\t$DO_TESTS_EXTRA\n"
   fi
 done