CREATE TABLE bench (
mark VARCHAR(100) NOT NULL,
time TIME NOT NULL,
+ timeuser TIME NOT NULL,
compilation ENUM('byte','opt') NOT NULL,
test VARCHAR(100) NOT NULL,
result ENUM('ok','fail') NOT NULL,
- options SET('no-gc')
+ options SET('gc-off','gc-on')
);
DESCRIBE bench;
-
-select mark, SEC_TO_TIME(SUM(TIME_TO_SEC(time))) from bench where options = '' group by mark;
-select mark, SEC_TO_TIME(SUM(TIME_TO_SEC(time))) from bench where test LIKE '%uto.ma' and options = '' group by mark;
-select mark, SEC_TO_TIME(SUM(TIME_TO_SEC(time))) from bench where options = 'no-gc' group by mark;
-select mark, SEC_TO_TIME(SUM(TIME_TO_SEC(time))) from bench where test LIKE '%uto.ma' and options = 'no-gc' group by mark;
-
-
-/^[^#]/ {
- result=tolower($1);
- if( $2 ~ "\.opt$" )
+ {
+ result=tolower($3);
+ if( $1 ~ "\.opt$" )
compilation="opt"
else
compilation="byte"
- test=$3
+ test=$2
time="0:" $4
+ timeuser="0:0:" $5
mark=$7
- if ( $8 ~ "^GC=off$")
- options="'no-gc'"
- else
- options="''"
+ if ( $8 ~ "^gc-off$")
+ options="'gc-off'";
+ if ( $8 ~ "^gc-on$")
+ options="'gc-on'"
- printf "INSERT bench (result, compilation, test, time, mark, options) VALUES ('%s', '%s', '%s', '%s', '%s', %s);\n", result, compilation, test, time, mark, options;
+ printf "INSERT bench (result, compilation, test, time, timeuser, mark, options) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', %s);\n", result, compilation, test, time, timeuser, mark, options;
}
MARK=`date +%Y%m%d`
LOGTOOPT=/dev/null
LOGTOBYTE=/dev/null
- export DO_TESTS_EXTRA="$MARK\t$n"
+ export DO_TESTS_EXTRA="$MARK\t$2"
ls
scripts/do_tests.sh -no-color ./matitac.opt $LOGTOOPT tests/*.ma
#scripts/do_tests.sh -nocolor ./matitac $LOGTOBYTE tests/*.ma
OLD=$PWD
cd $1
export OCAMLRUNPARAM='o=1000000'
- #testit $IMPL "off" 1>/dev/null 2>/dev/null
- testit $IMPL "off"
+ testit $IMPL "gc-off" 1>/dev/null 2>/dev/null
+ testit $IMPL "gc-off"
export OCAMLRUNPARAM=''
- #testit $IMPL "on" 1>/dev/null 2>/dev/null
- #testit $IMPL "on"
+ testit $IMPL "gc-on" 1>/dev/null 2>/dev/null
+ testit $IMPL "gc-on"
cd $OLD
}
cvs -d $CVSROOT co helm/ocaml 1>/dev/null 2>/dev/null
cvs -d $CVSROOT co helm/matita 1>/dev/null 2>/dev/null
compile $PWD/helm/ocaml $PWD/helm/matita
-run_tests $PWD/helm/matita #> LOG
+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