--- /dev/null
+MARK=`date +%Y%m%d`
+TMPDIRNAME=.__${MARK}_crontab
+CVSROOT=":ext:$USER@marcello.cs.unibo.it:/home/faculty/PROJECTS/cvs/helm"
+
+OLD=$PWD
+rm -rf $TMPDIRNAME
+mkdir $TMPDIRNAME
+cd $TMPDIRNAME
+cvs -d $CVSROOT co helm/matita/scripts 1>/dev/null 2>/dev/null
+bash helm/matita/scripts/profile_cvs.sh > LOG
+
+cat <<EOT
+WEB INTERFACE
+http://mowgli.cs.unibo.it/tassi/index.php
+
+DAILY BENCHMARK REPORT
+`echo "select mark, SEC_TO_TIME(SUM(TIME_TO_SEC(time))) from becnh where mark = \"$MARK\" group by mark;" | mysql -u helm -h mowgli.cs.unibo.it matita`
+
+
+DAILY BENCHMARK REPORT (DETAILED)
+`echo "select * from becnh where mark = \"$MARK\";" | mysql -u helm -h mowgli.cs.unibo.it matita`
+
+COMPILATION OUTPUT
+`cat LOG`
+
+EOT
+cd $OLD
+rm -rf $TMPDIRNAME
+
MARK=`date +%Y%m%d`
LOGTOOPT=/dev/null
LOGTOBYTE=/dev/null
- export DO_TESTS_EXTRA="$MARK\t$2"
- ls
+ export DO_TESTS_EXTRA="$MARK\t$@"
scripts/do_tests.sh -no-color ./matitac.opt $LOGTOOPT tests/*.ma
- #scripts/do_tests.sh -nocolor ./matitac $LOGTOBYTE tests/*.ma
+ scripts/do_tests.sh -no-color ./matitac $LOGTOBYTE tests/*.ma
}
function compile {
autoconf 1>/dev/null
./configure 1>/dev/null
make matitac matitac.opt updater 1>/dev/null
- sed "s/@@OWNER@@/profiler/" matita.conf.xml.sample > matita.conf.xml
+ sed "s/@@OWNER@@/profiler/" matita.conf.xml.sample | sed "s/@@PREFETCH@@/false/" > matita.conf.xml
./updater
cd $OLD
}
OLD=$PWD
cd $1
export OCAMLRUNPARAM='o=1000000'
- testit $IMPL "gc-off" 1>/dev/null 2>/dev/null
- testit $IMPL "gc-off"
+ testit "gc-off" 1>/dev/null 2>/dev/null
+ testit "gc-off"
export OCAMLRUNPARAM=''
- testit $IMPL "gc-on" 1>/dev/null 2>/dev/null
- testit $IMPL "gc-on"
+ testit "gc-on" 1>/dev/null 2>/dev/null
+ testit "gc-on"
cd $OLD
}
+OLD=$PWD
rm -rf $TMPDIRNAME
mkdir $TMPDIRNAME
cd $TMPDIRNAME
compile $PWD/helm/ocaml $PWD/helm/matita
run_tests $PWD/helm/matita > LOG
cat LOG | awk -f $PWD/helm/matita/scripts/insert.awk > INSERT.sql
-cat INSERT.sql | mysql -u helm matita
-#rm -rf $TMPDIRNAME
+cat INSERT.sql | mysql -u helm -h mowgli.cs.unibo.it matita
+cd $OLD
+rm -rf $TMPDIRNAME