X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Ftests%2FTPTP%2Ftry.sh;h=bd5b982fb432e59dd904021c7aedfad63472e7d7;hb=bc76b4d2f3c380894259b45fad52cf85ae6cee18;hp=eb1c3f9d125acdec63e719f584d5e5db52e200f2;hpb=4d6dfee39ca102851b1f10738598166b15c052da;p=helm.git diff --git a/helm/software/matita/tests/TPTP/try.sh b/helm/software/matita/tests/TPTP/try.sh index eb1c3f9d1..bd5b982fb 100755 --- a/helm/software/matita/tests/TPTP/try.sh +++ b/helm/software/matita/tests/TPTP/try.sh @@ -1,22 +1,46 @@ #!/bin/sh +prover=y + +MATITAC=../../matitac.opt +#MATITAC=../../matitac +MATITAPROVER=../../matitaprover.opt +TPTPPATH=/home/tassi/helm/trunk/TPTP-v3.1.1/ + if [ -z "$1" ]; then - TODO=Unsatisfiable/[A-Z]*.ma + if [ $prover = 'y' ]; then + TODO=`cat elenco_unsatisfiable.txt` + else + TODO=Unsatisfiable/[A-Z]*.ma + fi else TODO=`cat $1` fi mkdir -p logs +i=1 for X in $TODO; do echo -n "$X ... " LOGNAME=logs/log.`basename $X` - ../../matitac.opt $X > $LOGNAME 2>&1 + if [ $prover = 'y' ]; then + $MATITAPROVER -tptppath $TPTPPATH $X > $LOGNAME 2>&1 + else + $MATITAC -nodb $X > $LOGNAME 2>&1 + fi + if [ $prover = 'y' ]; then + BASE=`echo $X | cut -c 1-3` + RATING=`grep "Rating" $TPTPPATH/Problems/$BASE/$X | sed 's/v.*//' | sed 's/%//'` + else + RATING=`grep "Rating" $X | sed 's/v.*//' | sed 's/(\*//'` + fi if [ `grep "Found a proof" $LOGNAME | wc -l` -gt 0 ]; then TIME=`grep "TIME NEEDED" $LOGNAME` - RATING=`grep "Rating" $X | sed 's/v.*//' | sed 's/(\*//'` - echo OK $TIME $RATING + MAXWEIGHT=`grep "max weight:" $LOGNAME` + echo OK $TIME $RATING $MAXWEIGHT $i else - echo FAIL + echo FAIL $RATING $i fi + i=`expr $i + 1` + gzip -f $LOGNAME done