X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fscripts%2Fdo_tests.sh;h=687b7f8c07b928bb0afae68f628672e7aa3cc8b9;hb=5104e38ee747fd1052ce21f3f9f2ecc778d590ba;hp=b7500bf03a3d0e3cb59d41cf5a6a5b6e57c592cb;hpb=78229b5b53f947df657547e682c5365bbba9455b;p=helm.git diff --git a/helm/matita/scripts/do_tests.sh b/helm/matita/scripts/do_tests.sh index b7500bf03..687b7f8c0 100755 --- a/helm/matita/scripts/do_tests.sh +++ b/helm/matita/scripts/do_tests.sh @@ -12,6 +12,10 @@ if [ "$1" = "-twice" ]; then shift TWICE=1 fi +if [ "$1" = "-keep-logs" ]; then + shift + KEEP=1 +fi COMPILER=$1 shift @@ -27,11 +31,12 @@ TODO="$@" if [ -z "$COMPILER" -o -z "$CLEANER" -o -z "$LOGFILE" -o -z "$EXPECTED" -o -z "$TODO" ]; then echo echo "usage: " - echo " do_tests.sh [-no-color] [-twice] ./compiler ./cleaner logfile expected_result test.ma ..." + echo " do_tests.sh [-no-color] [-twice] [-keep-logs] ./compiler ./cleaner logfile expected_result test.ma ..." echo echo "options: " echo " -no-color Do not use vt100 colors" echo " -twice Run each test twice but show only the second run times" + echo " -keep-logs Do not dele __* files" echo echo "If expected_result is OK the result will be OK if the test compiles." echo "Otherwise if expected_result is FAIL the result will be OK if the test" @@ -72,7 +77,9 @@ for T in $TODO; do printf "$FAIL\t$TIMES\t$DO_TESTS_EXTRA\n"; cat $DIFF fi - #rm -f $LOG - #rm -f $DIFF + if [ "$KEEP" != "1" ]; then + rm -f $LOG + rm -f $DIFF + fi exit $RC done