Commit aa1f92c5 authored by Guillaume Melquiond's avatar Guillaume Melquiond

Add a 'replay' section to the bench when replaying does not involve any prover.

parent dd57b9de
......@@ -74,7 +74,7 @@ drivers () {
valid_goals () {
pgm="bin/why3prove$suffix"
for f in $1/*.mlw; do
printf " "$f"... "
printf " $f... "
if $pgm -t 10 -P alt-ergo $f | grep -q -v Valid; then
echo "valid test $f failed!"
echo "$pgm -P alt-ergo $f"
......@@ -89,7 +89,7 @@ valid_goals () {
invalid_goals () {
pgm="bin/why3prove$suffix"
for f in $1/*.mlw; do
printf " "$f"... "
printf " $f... "
if $pgm -t 3 -P alt-ergo $f | grep -q Valid; then
echo "invalid test $f failed!"
echo "$pgm -P alt-ergo $f"
......@@ -101,6 +101,21 @@ invalid_goals () {
done
}
replay () {
pgm="bin/why3replay$suffix"
for f in $1/*/; do
printf " $f... "
if $pgm $f > /dev/null; then
echo "ok"
else
echo "replay test failed!"
echo $pgm $f
$pgm $f
exit 1
fi
done
}
execute () {
pgm="bin/why3execute$suffix"
printf " $1 $2... "
......@@ -214,6 +229,10 @@ goods examples/double_wp "-L examples/double_wp"
goods examples/in_progress
echo ""
echo "=== Checking replay (no prover) ==="
replay bench/replay
echo ""
echo "=== Checking valid goals ==="
valid_goals bench/valid
echo ""
......
......@@ -3,7 +3,7 @@
"http://why3.lri.fr/why3session.dtd">
<why3session shape_version="4">
<file name="../13_compute_in.mlw">
<theory name="Test" sum="0f62b987219641c9a62fe01b2edf29de">
<theory name="Test" sum="f01ddd4edc37064e7b1aad04e4e6acfa">
<goal name="g">
<transf name="compute_hyp" arg1="in" arg2="a">
<goal name="g.0">
......
......@@ -3,7 +3,7 @@
"http://why3.lri.fr/why3session.dtd">
<why3session shape_version="4">
<file name="../14_simpl.mlw">
<theory name="Test" sum="22cf7419b518c45bfba8210f6a346e58">
<theory name="Test" sum="58230ee4a7c9ed66f332d211cf0d40a1">
<goal name="g10">
<transf name="step" arg1="in" arg2="g10">
<goal name="g10.0">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment