]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/tests/TPTP/try.sh
fix
[helm.git] / helm / software / matita / tests / TPTP / try.sh
1 #!/bin/sh
2
3 if [ -z "$1" ]; then
4   TODO=Unsatisfiable/[A-Z]*.ma
5 else
6   TODO=`cat $1`
7 fi
8
9 mkdir -p logs
10
11 i=1
12 for X in $TODO; do
13   echo -n "$X ... "
14   LOGNAME=logs/log.`basename $X`.gz
15   ../../matitac.opt -nodb $X | gzip -9 > $LOGNAME 2>&1
16   RATING=`grep "Rating" $X | sed 's/v.*//' | sed 's/(\*//'`
17   if [ `grep "Found a proof" $LOGNAME | wc -l` -gt 0 ]; then
18     TIME=`grep "TIME NEEDED" $LOGNAME`
19     echo OK $TIME $RATING $i
20   else
21     echo FAIL $RATING $i
22   fi
23   i=`expr $i + 1`
24 done