X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fmatita%2Fscripts%2Fdo_tests.sh;h=687cb26d7192e0c3eaced9f933b678a7fce688d3;hb=12cc5b2b8e7f7bb0b5e315094b008a293a4df6b1;hp=d2e7eec91cc34cc1d537f38a4a90cbbf14e3645e;hpb=cc7e298cf9d19f6f7230a4796b945836c30f1ccd;p=helm.git diff --git a/helm/matita/scripts/do_tests.sh b/helm/matita/scripts/do_tests.sh index d2e7eec91..687cb26d7 100755 --- a/helm/matita/scripts/do_tests.sh +++ b/helm/matita/scripts/do_tests.sh @@ -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" @@ -38,8 +40,10 @@ TMP=.__temp.txt for T in $TODO; do printf "$COMPILER\t%-30s " $T if [ "$TWICE" = "1" ]; then + $CLEANER $T 1>/dev/null 2>/dev/null $COMPILER $T 1>/dev/null 2>/dev/null fi + $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"