From: Andrea Asperti Date: Fri, 26 Jun 2009 12:01:01 +0000 (+0000) Subject: an easy for loop X-Git-Tag: make_still_working~3785 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=9b3325753f813248f6e8cfcc1312a1edac613cfc;p=helm.git an easy for loop --- diff --git a/helm/software/components/binaries/matitaprover/run_on_a_list.sh b/helm/software/components/binaries/matitaprover/run_on_a_list.sh new file mode 100755 index 000000000..dbcd65631 --- /dev/null +++ b/helm/software/components/binaries/matitaprover/run_on_a_list.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ -z "$1" ] || [ -z "$2" ]; then + echo usage: $0 timeout problem_list + exit 1 +fi + +> log +for PROBLEM in `cat $2`; do + echo running on $PROBLEM + ./matitaprover.native --timeout $1 --tptppath TPTP-v3.7.0/ $PROBLEM \ + >> log 2>&1 + echo So far `grep Unsatisfiable log|wc -l` solved +done +echo Solved: +grep 'Unsatisfiable' log | wc -l +echo Failed: +grep 'Timeout' log | wc -l