4 MARK=`date +%Y%m%d%H%M`
5 TMPDIRNAME=__${MARK}_compilation
6 SVNROOT="svn+ssh://mowgli.cs.unibo.it/local/svn/helm/trunk/"
7 MYSQL="mysql -u helm -h mowgli.cs.unibo.it matita"
14 export BENCH_EXTRA_TEXT="$MARK $@"
23 ./configure 1>/dev/null
24 make all opt 1>/dev/null
32 #export OCAMLRUNPARAM='o=100000'
34 export OCAMLRUNPARAM=''
43 mkdir $TMPDIRNAME.HOME
47 svn co -N $SVNROOT > $SVNLOG 2>&1
49 svn update -N helm >> $SVNLOG 2>&1
51 svn update -N software >> $SVNLOG 2>&1
53 svn update $SVNOPTIONS components >> $SVNLOG 2>&1
54 svn update $SVNOPTIONS matita >> $SVNLOG 2>&1
61 export HOME="`pwd`/../$TMPDIRNAME.HOME"
63 compile $PWD/helm/software/
66 run_tests $PWD/helm/software/matita > LOG 2>LOG.run_tests.err
69 cat LOG | grep "\(OK\|FAIL\)" | grep "\(gc-on\|gc-off\)" | grep -v "bad_tests" | grep -v "interactive" |\
70 lua5.1 $PWD/helm/software/matita/scripts/functions.lua log2sql - > INSERT.sql
71 cat INSERT.sql | $MYSQL
74 SVNREVISION=`svn info $PWD/helm/software/ | grep "^Revision:" | cut -d : -f 2`
75 echo "INSERT INTO bench_svn VALUES ('$MARK','$SVNREVISION')" | $MYSQL