5 TMPERR
=$PWD/why3bench.err
8 HTML
=$PWD/why3bench.html
15 echo '<head><title>Why3 Bench</title></head>' >> $HTML
16 echo '<body>' >> $HTML
17 echo '<h1>Why3 bench</h1>' >> $HTML
20 echo '<h2>Directory '$1'</h2>' >> $HTML
22 for f
in `ls $1/*/why3session.xml`; do
25 echo -n "Benchmarking $d ... "
26 ..
/bin
/why3replay.opt
-bench $REPLAYOPT $2 $d 2> $TMPERR > $TMP
28 if test "$ret" != "0" ; then
29 echo -n "FAILED (ret code=$ret):"
31 if test -z "$out" ; then
32 echo "standard error: (standard output empty)"
38 echo '<li>'$d' failed' >> $HTML
41 success
=`expr $success + 1`
42 ..
/bin
/why3session html
$d 2> $TMPERR > $TMP
43 echo '<li><a href="'$d/$b'.html">'$d'</a>' >> $HTML
45 total
=`expr $total + 1`
55 echo "=== Check Builtin translation ==="
65 run_dir bitvectors
"-I bitvectors"
68 echo "=== Programs ==="
72 run_dir vacid_0_binary_heaps
"-I vacid_0_binary_heaps"
75 echo '</body></html>' >> $HTML
76 echo "Summary: $success/$total"