X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fscripts%2Fprofile_svn.sh;h=eca457ecc89f129980b2ab700da184c203c7d09e;hb=771ee8b9d122fa963881c876e86f90531bb7434f;hp=6265e4d9d1bdbf1e536c23d9f0e392fb82fb3449;hpb=6626baa0f908872c13e9ed738b2d88cd68f0ba78;p=helm.git diff --git a/helm/matita/scripts/profile_svn.sh b/helm/matita/scripts/profile_svn.sh index 6265e4d9d..eca457ecc 100755 --- a/helm/matita/scripts/profile_svn.sh +++ b/helm/matita/scripts/profile_svn.sh @@ -42,21 +42,29 @@ rm -rf $TMPDIRNAME mkdir $TMPDIRNAME mkdir $TMPDIRNAME.HOME cd $TMPDIRNAME -svn co -N $SVNROOT +SVNLOG=`pwd`/LOG.svn + +#svn +svn co -N $SVNROOT > $SVNLOG 2>&1 cd trunk -svn update -N helm +svn update -N helm >> $SVNLOG 2>&1 cd helm -svn update ocaml -svn update matita +svn update $SVNOPTIONS ocaml >> $SVNLOG 2>&1 +svn update $SVNOPTIONS matita >> $SVNLOG 2>&1 cd .. cd .. ln -s trunk/helm . +#compile export HOME="`pwd`/../$TMPDIRNAME.HOME" compile $PWD/helm/ocaml $PWD/helm/matita + +#run run_tests $PWD/helm/matita > LOG 2>/dev/null cat LOG | grep "\(OK\|FAIL\)" | grep "\(gc-on\|gc-off\)" | awk -f $PWD/helm/matita/scripts/insert.awk > INSERT.sql cat INSERT.sql | mysql -u helm -h mowgli.cs.unibo.it matita +SVNREVISION=`cat $SVNLOG | grep revision | tail -n 1 | sed "s/.*revision \(\w\+\)./\1/"` +echo "INSERT INTO bench_svn VALUES ('$MARK','$SVNREVISION')" | mysql -u helm -h mowgli.cs.unibo.it matita cd $OLD #rm -rf $TMPDIRNAME