3 # This checks specifically error messages
10 while test $# != 0; do
15 printf "unknown option: %s\n" "$1"
16 printf "usage: parsing-bench [-update-oracle] <files>\n"
17 printf " <files> must be given without the '.mlw' suffix\n"
18 printf " if <files> empty, use all files from directory 'parsing/bad'\n"
26 if test "$files" = "" ; then
27 files
="$dir/parsing/bad/*.mlw"
33 $dir/..
/bin
/why3.opt prove
--parse-only "$1.mlw" 2> "$f.out"
34 if cmp "$f.oracle" "$f.out" > /dev
/null
2>&1 ; then
37 if $updateoracle; then
38 echo "Updating oracle for $1"
39 mv "$f.out" "$f.oracle"
42 echo "diff is the following:"
44 diff -u "$f.oracle" "$f.out"
50 for file in $files; do
51 filedir
=`dirname $file`
52 filebase
=`basename $file .mlw`
53 run
$filedir/$filebase