X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fscripts%2Fprofile_svn.sh;h=72105b2e0dedd33d08808457be82f87ec7f2e08f;hb=0d9db17cef4232805de6193f5ff0028a3c99d908;hp=ba7d69806cbc4a99f62160079b0df881113b4f47;hpb=bf8a6aa5782c9b539ac6cf11ee68f20b7d2c83a6;p=helm.git diff --git a/matita/scripts/profile_svn.sh b/matita/scripts/profile_svn.sh index ba7d69806..72105b2e0 100755 --- a/matita/scripts/profile_svn.sh +++ b/matita/scripts/profile_svn.sh @@ -5,13 +5,13 @@ MARK=`date +%Y%m%d%H%M` TMPDIRNAME=__${MARK}_compilation SVNROOT="svn+ssh://mowgli.cs.unibo.it/local/svn/helm/trunk/" MYSQL="mysql -u helm -h mowgli.cs.unibo.it matita" -SVNLOG=$TMPDIRNAME/LOG.svn +SVNLOG=LOG.svn #helpers function testit { LOGTOOPT=/dev/null LOGTOBYTE=/dev/null - export BENCH_EXTRA_TEXT="$MARK\t$@" + export BENCH_EXTRA_TEXT="$MARK $@" make tests make tests.opt } @@ -29,8 +29,8 @@ function run_tests { LOCALOLD=$PWD cd $1 ./matitaclean all - export OCAMLRUNPARAM='o=100000' - testit "gc-off" + #export OCAMLRUNPARAM='o=100000' + #testit "gc-off" export OCAMLRUNPARAM='' testit "gc-on" cd $LOCALOLD @@ -59,14 +59,15 @@ ln -s trunk/helm . #compile export HOME="`pwd`/../$TMPDIRNAME.HOME" +export USER="bench" compile $PWD/helm/software/ #run run_tests $PWD/helm/software/matita > LOG 2>LOG.run_tests.err #insert the db -cat LOG | grep "\(OK\|FAIL\)" | grep "\(gc-on\|gc-off\)" | \ - $PWD/helm/software/matita/scripts/functions.lua log2sql - > INSERT.sql +cat LOG | grep "\(OK\|FAIL\)" | grep "\(gc-on\|gc-off\)" | grep -v "bad_tests" | grep -v "interactive" |\ + lua5.1 $PWD/helm/software/matita/scripts/functions.lua log2sql - > INSERT.sql cat INSERT.sql | $MYSQL #save the revision