]> 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 for X in $TODO; do
12   echo -n "$X ... "
13   LOGNAME=logs/log.`basename $X`
14   ../../matitac.opt $X > $LOGNAME 2>&1
15   RATING=`grep "Rating" $X | sed 's/v.*//' | sed 's/(\*//'`
16   if [ `grep "Found a proof" $LOGNAME | wc -l` -gt 0 ]; then
17     TIME=`grep "TIME NEEDED" $LOGNAME`
18     echo OK $TIME $RATING
19   else
20     echo FAIL $RATING
21   fi
22 done