Skip to content
Snippets Groups Projects
Commit 65cba90e authored by Guillaume Melquiond's avatar Guillaume Melquiond
Browse files

Do not skip directories in case of typo.

parent b34f9182
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ suffix=$1 ...@@ -15,6 +15,7 @@ suffix=$1
goods () { goods () {
pgm="bin/why3prove$suffix" pgm="bin/why3prove$suffix"
ERROR= ERROR=
test -d $1 || exit 1
rm -f bench_errors rm -f bench_errors
for f in $1/*.[wm][hl][yw] ; do for f in $1/*.[wm][hl][yw] ; do
printf " $f... " printf " $f... "
...@@ -45,6 +46,7 @@ goods () { ...@@ -45,6 +46,7 @@ goods () {
bads () { bads () {
pgm="bin/why3prove$suffix" pgm="bin/why3prove$suffix"
test -d $1 || exit 1
for f in $1/*.[wm][hl][yw] ; do for f in $1/*.[wm][hl][yw] ; do
printf " $f... " printf " $f... "
if $pgm $2 $f > /dev/null 2>&1; then if $pgm $2 $f > /dev/null 2>&1; then
...@@ -59,6 +61,7 @@ bads () { ...@@ -59,6 +61,7 @@ bads () {
drivers () { drivers () {
pgm="bin/why3prove$suffix" pgm="bin/why3prove$suffix"
test -d $1 || exit 1
for f in $1/*.drv; do for f in $1/*.drv; do
if [[ $f == drivers/ocaml*.drv ]]; then continue; fi if [[ $f == drivers/ocaml*.drv ]]; then continue; fi
if [[ $f == drivers/c.drv ]]; then continue; fi if [[ $f == drivers/c.drv ]]; then continue; fi
...@@ -76,6 +79,7 @@ drivers () { ...@@ -76,6 +79,7 @@ drivers () {
valid_goals () { valid_goals () {
pgm="bin/why3prove$suffix" pgm="bin/why3prove$suffix"
test -d $1 || exit 1
for f in $1/*.mlw; do for f in $1/*.mlw; do
printf " $f... " printf " $f... "
if ! $pgm -t 15 -P alt-ergo $f > /dev/null 2>&1; then if ! $pgm -t 15 -P alt-ergo $f > /dev/null 2>&1; then
...@@ -90,6 +94,7 @@ valid_goals () { ...@@ -90,6 +94,7 @@ valid_goals () {
invalid_goals () { invalid_goals () {
pgm="bin/why3prove$suffix" pgm="bin/why3prove$suffix"
test -d $1 || exit 1
for f in $1/*.mlw; do for f in $1/*.mlw; do
printf " $f... " printf " $f... "
if $pgm -t 3 -P alt-ergo $f | grep -q Valid; then if $pgm -t 3 -P alt-ergo $f | grep -q Valid; then
...@@ -105,6 +110,7 @@ invalid_goals () { ...@@ -105,6 +110,7 @@ invalid_goals () {
replay () { replay () {
pgm="bin/why3replay$suffix" pgm="bin/why3replay$suffix"
test -d $1 || exit 1
for f in $1/*/; do for f in $1/*/; do
printf " $f... " printf " $f... "
if $pgm $2 $f > /dev/null 2> /dev/null; then if $pgm $2 $f > /dev/null 2> /dev/null; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment