]> matita.cs.unibo.it Git - helm.git/blob - helm/matita/scripts/profile_cvs.sh
added a getter maps updater
[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   ./updater
27   cd $OLD
28 }
29
30 function run_tests {
31   OLD=$PWD
32   cd $1
33   export OCAMLRUNPARAM='o=1000000'
34   #testit $IMPL "off" 1>/dev/null 2>/dev/null
35   testit $IMPL "off"
36   export OCAMLRUNPARAM=''
37   #testit $IMPL "on" 1>/dev/null 2>/dev/null
38   #testit $IMPL "on"
39   cd $OLD
40 }
41
42 #rm -rf $TMPDIRNAME
43 #mkdir $TMPDIRNAME
44 cd $TMPDIRNAME
45 #cvs -d $CVSROOT co helm/ocaml 1>/dev/null 2>/dev/null
46 #cvs -d $CVSROOT co helm/matita 1>/dev/null 2>/dev/null
47 compile $PWD/helm/ocaml $PWD/helm/matita
48 run_tests $PWD/helm/matita #> LOG
49 #rm -rf $TMPDIRNAME
50