]> matita.cs.unibo.it Git - helm.git/blob - helm/matita/scripts/profile_cvs.sh
matita.conf.xml.sample now has a @@OWNER@@ so that sed is easy
[helm.git] / helm / matita / scripts / profile_cvs.sh
1 #!/bin/bash
2 MARK=`date +%Y%m%d`
3 TMPDIRNAME=.__$MARK
4 CVSROOT=":ext:$USER@marcello.cs.unibo.it:/home/faculty/PROJECTS/cvs/helm"
5
6 function testit {
7   MARK=`date +%Y%m%d`
8   LOGTOOPT=/dev/null
9   LOGTOBYTE=/dev/null
10   export DO_TESTS_EXTRA="$MARK\t$n"
11   ls
12   scripts/do_tests.sh -no-color ./matitac.opt $LOGTOOPT tests/*.ma
13   #scripts/do_tests.sh -nocolor ./matitac $LOGTOBYTE tests/*.ma
14 }
15
16 function compile {
17   OLD=$PWD
18   cd $1
19   autoconf 1>/dev/null
20   ./configure 1>/dev/null
21   make all opt 1>/dev/null
22   cd $2
23   autoconf 1>/dev/null
24   ./configure 1>/dev/null
25   make matitac matitac.opt updater 1>/dev/null
26   sed "s/@@OWNER@@/profiler/" matita.conf.xml.sample > matita.conf.xml
27   ./updater
28   cd $OLD
29 }
30
31 function run_tests {
32   OLD=$PWD
33   cd $1
34   export OCAMLRUNPARAM='o=1000000'
35   #testit $IMPL "off" 1>/dev/null 2>/dev/null
36   testit $IMPL "off"
37   export OCAMLRUNPARAM=''
38   #testit $IMPL "on" 1>/dev/null 2>/dev/null
39   #testit $IMPL "on"
40   cd $OLD
41 }
42
43 rm -rf $TMPDIRNAME
44 mkdir $TMPDIRNAME
45 cd $TMPDIRNAME
46 cvs -d $CVSROOT co helm/ocaml 1>/dev/null 2>/dev/null
47 cvs -d $CVSROOT co helm/matita 1>/dev/null 2>/dev/null
48 compile $PWD/helm/ocaml $PWD/helm/matita
49 run_tests $PWD/helm/matita #> LOG
50 #rm -rf $TMPDIRNAME
51