Prefix bytecode filenames with $srcdir so the tests work in VPATH builds.

This commit is contained in:
Alexandre Duret-Lutz 2008-06-12 17:23:22 +02:00
parent b28d7ba804
commit 862302590c
3 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2008-06-12 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* iface/nips/nipstest/dotty.test,
iface/nips/nipstest/emptiness.test: Prefix bytecode filenames
with $srcdir so the tests work in VPATH builds.
2008-06-12 Alexandre Duret-Lutz <adl@lrde.epita.fr> 2008-06-12 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* wrap/python/spot.i: Adjust includes after the previous patch. * wrap/python/spot.i: Adjust includes after the previous patch.

View file

@ -4,10 +4,9 @@
set -e set -e
BYTECODE="never.pr.b regbit.b" BYTECODE="never.pr.b regbit.b"
for bytecode in $BYTECODE; do for bytecode in $BYTECODE; do
run 0 ${top_builddir}/dottynips ${bytecode} > dotty || exit 1 run 0 "$top_builddir/dottynips" "$srcdir/$bytecode" > dotty || exit 1
${DOT} -Tps dotty > /dev/null || exit 1 "$DOT" -Tps dotty > /dev/null || exit 1
rm -f dotty rm -f dotty
done done

View file

@ -10,7 +10,7 @@ ALGO="Cou99 CVWY90 GV04 SE05 Tau03 Tau03"
BYTECODE="dinner.pr.nips.b never.pr.b" BYTECODE="dinner.pr.nips.b never.pr.b"
for algo in $ALGO; do for algo in $ALGO; do
for bytecode in $BYTECODE; do for bytecode in $BYTECODE; do
run 0 ${top_builddir}/empt_check -c -e${algo} ${bytecode} | run 0 "$top_builddir/empt_check" -c -e$algo "$srcdir/$bytecode" |
grep '^non empty$' > /dev/null || exit 1 grep '^non empty$' > /dev/null || exit 1
done done
done done
@ -19,7 +19,7 @@ done
BYTECODE="peterson.pm.b" BYTECODE="peterson.pm.b"
for algo in $ALGO; do for algo in $ALGO; do
for bytecode in $BYTECODE; do for bytecode in $BYTECODE; do
run 0 ${top_builddir}/empt_check -c -e${algo} ${bytecode} | run 0 "$top_builddir/empt_check" -c -e$algo "$srcdir/$bytecode" |
grep '^empty$' > /dev/null || exit 1 grep '^empty$' > /dev/null || exit 1
done done
done done