]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/scripts/profile_svn.sh
mod change (-x)
[helm.git] / helm / software / matita / scripts / profile_svn.sh
old mode 100755 (executable)
new mode 100644 (file)
index ba7d698..c0eb466
@@ -5,15 +5,15 @@ 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$@"
-  make tests 
+  export BENCH_EXTRA_TEXT="$MARK $@"
   make tests.opt 
+  #make tests 
 }
 
 function compile {
@@ -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 "^matitac" | grep -v "interactive" |\
+  lua5.1 $PWD/helm/software/matita/scripts/functions.lua log2sql - > INSERT.sql
 cat INSERT.sql | $MYSQL
 
 #save the revision