Commit eab12614 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Fix ltlcounter.test for VPATH builds and n > 2.

* src/tgbatest/defs.in (srcdir): Adjust from VPATH builds.
* src/tgbatest/ltlcounter.test (lcdir): Adjust definition to
new value of $srcdir.
(run): Fix setting of $run after $n = 2.  Using run=: would in
fact disable all the big tests...
parent b57fdcb6
2009-11-05 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix ltlcounter.test for VPATH builds and n > 2.
* src/tgbatest/defs.in (srcdir): Adjust from VPATH builds.
* src/tgbatest/ltlcounter.test (lcdir): Adjust definition to
new value of $srcdir.
(run): Fix setting of $run after $n = 2. Using run=: would in
fact disable all the big tests...
2009-11-05 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/tgbatest/ltlcounter.test (run): Only construct small
......
......@@ -49,6 +49,15 @@ rm -rf $testSubDir > /dev/null 2>&1
mkdir $testSubDir
cd $testSubDir
# Adjust srcdir now that we are in a subdirectory. We still want to
# source directory corresponding to the build directory that contains
# $testSubDir.
case $srcdir in
# I
[\\/$]* | ?:[\\/]* );;
*) srcdir=../$srcdir
esac
DOT='@DOT@'
top_builddir='../@top_builddir@'
LBTT="@LBTT@"
......
......@@ -25,7 +25,7 @@
set -e
lcdir=$srcdir/../ltlcounter
lcdir=$srcdir/ltlcounter
lc=$lcdir/LTLcounter.pl
lcl=$lcdir/LTLcounterLinear.pl
lcc=$lcdir/LTLcounterCarry.pl
......@@ -50,21 +50,21 @@ check_formula()
# so the translation of the formula stopped midway, on a formula it
# thought it had already seen.
for i in 1 2 3 4 5 6 7 8 9 10 11 12
for n in 1 2 3 4 5 6 7 8 9 10 11 12
do
:;:;: "========== $i counters ==========" ;:;: # only visible with "set -x"
f=`"$lc" $i`
:;:;: "========== $n counters ==========" ;:;: # only visible with "set -x"
f=`"$lc" $n`
check_formula "$f"
f=`"$lcl" $i`
f=`"$lcl" $n`
check_formula "$f"
f=`"$lcc" $i`
f=`"$lcc" $n`
check_formula "$f"
f=`"$lccl" $i`
f=`"$lccl" $n`
check_formula "$f"
# Only run the first two formulae under valgrind,
# Only run the first two formulae under valgrind,
# it is too slow otherwise.
if test $i = 2; then
run=:
if test $n = 2; then
run=
fi
done
Supports Markdown
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