2 MARK=`date +%Y%m%d%H%M`
3 TMPDIRNAME=__${MARK}_compilation
4 SVNROOT="svn+ssh://mowgli.cs.unibo.it/local/svn/helm/trunk/"
9 export DO_TESTS_EXTRA="$MARK\t$@"
10 make tests DO_TESTS_OPTS="-no-color -twice -keep-logs"
11 make tests.opt DO_TESTS_OPTS="-no-color -twice -keep-logs"
18 ./configure 1>/dev/null
19 make all opt 1>/dev/null
28 export OCAMLRUNPARAM='o=1000000'
30 export OCAMLRUNPARAM=''
38 mkdir $TMPDIRNAME.HOME
43 svn co -N $SVNROOT > $SVNLOG 2>&1
45 svn update -N helm >> $SVNLOG 2>&1
47 svn update -N software >> $SVNLOG 2>&1
49 svn update $SVNOPTIONS components >> $SVNLOG 2>&1
50 svn update $SVNOPTIONS matita >> $SVNLOG 2>&1
57 export HOME="`pwd`/../$TMPDIRNAME.HOME"
58 compile $PWD/helm/software/
61 run_tests $PWD/helm/software/matita > LOG 2>LOG.run_tests.err
63 cat LOG | grep "\(OK\|FAIL\)" | grep "\(gc-on\|gc-off\)" | awk -f $PWD/helm/software/matita/scripts/insert.awk > INSERT.sql
64 cat INSERT.sql | mysql -u helm -h mowgli.cs.unibo.it matita
65 SVNREVISION=`cat $SVNLOG | grep revision | tail -n 1 | sed "s/.*revision \(\w\+\)./\1/"`
66 echo "INSERT INTO bench_svn VALUES ('$MARK','$SVNREVISION')" | mysql -u helm -h mowgli.cs.unibo.it matita