]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/tests/TPTP/try.sh
...
[helm.git] / matita / tests / TPTP / try.sh
index e55733bff040262b35742d2021ad46ecbdb75deb..fdf8031b3a36ec7bb31fa1acce2bf2a02ee80607 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+MATITAC=../../matitac.opt
+#MATITAC=../../matitac
+
 if [ -z "$1" ]; then
   TODO=Unsatisfiable/[A-Z]*.ma
 else
@@ -12,13 +15,15 @@ i=1
 for X in $TODO; do
   echo -n "$X ... "
   LOGNAME=logs/log.`basename $X`
-  ../../matitac.opt $X > $LOGNAME 2>&1
+  $MATITAC -nodb $X > $LOGNAME 2>&1
   RATING=`grep "Rating" $X | sed 's/v.*//' | sed 's/(\*//'`
   if [ `grep "Found a proof" $LOGNAME | wc -l` -gt 0 ]; then
     TIME=`grep "TIME NEEDED" $LOGNAME`
-    echo OK $TIME $RATING $i
+    MAXWEIGHT=`grep "max weight:" $LOGNAME`
+    echo OK $TIME $RATING $MAXWEIGHT $i
   else
     echo FAIL $RATING $i
   fi
   i=`expr $i + 1`
+  gzip -f $LOGNAME
 done