]> matita.cs.unibo.it Git - helm.git/commitdiff
New argument: the cleaner.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 1 Jul 2005 16:27:37 +0000 (16:27 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 1 Jul 2005 16:27:37 +0000 (16:27 +0000)
helm/matita/scripts/do_tests.sh

index 3fd13e4cf418fafaa0eb2bca3194b436319f82f2..79fba09decb402f05f82aa6648f31ba0b75c8799 100755 (executable)
@@ -15,14 +15,16 @@ fi
 
 COMPILER=$1
 shift
+CLEANER=$1
+shift
 LOGFILE=$1
 shift
 TODO="$@"
 
-if [ -z "$COMPILER" -o -z "$LOGFILE" -o -z "$TODO" ]; then
+if [ -z "$COMPILER" -o -z "$CLEANER" -o -z "$LOGFILE" -o -z "$TODO" ]; then
   echo
   echo "usage: "
-  echo "  do_tests.sh [-no-color] [-twice] ./compiler logfile tests.ma ..."
+  echo "  do_tests.sh [-no-color] [-twice] ./compiler ./cleaner logfile tests.ma ..."
   echo
   echo "options:  "
   echo "  -no-color Do not use vt100 colors"
@@ -40,7 +42,7 @@ for T in $TODO; do
   if [ "$TWICE" = "1" ]; then
     $COMPILER $T 1>/dev/null 2>/dev/null
   fi
-  ./matitaclean $T 1>/dev/null 2>/dev/null
+  $CLEANER $T 1>/dev/null 2>/dev/null
   /usr/bin/time --quiet -o $TMP -f "%E  %U  %S" $COMPILER $T >> $LOGFILE 2>&1
   if [ $? = 0 ]; then
     printf "$OK\t`cat $TMP`\t$DO_TESTS_EXTRA\n"