Use Automake 1.11's parallel-tests feature.

* configure.ac: Enable parallel-tests.
* src/eltltest/defs.in, src/evtgbatest/defs.in,
src/ltltest/defs.in, src/tgbatest/defs.in: Always output verbose
tests.  Make a subdirectory for each test case.
* src/ltltest/Makefile.am, src/eltltest/Makefile.am,
src/tgbatest/Makefile.am, src/evtgbatest/Makefile.am: Remove
CLEANFILES and clean the test subdirectories in a distclean-local
rule instead.
* src/eltltest/acc.test, src/eltltest/nfa.test,
src/evtgbatest/explicit.test, src/evtgbatest/ltl2evtgba.test,
src/evtgbatest/product.test, src/evtgbatest/readsave.test,
src/ltltest/equals.test, src/ltltest/lunabbrev.test,
src/ltltest/nenoform.test, src/ltltest/parse.test,
src/ltltest/parseerr.test, src/ltltest/reduc.test,
src/ltltest/reduccmp.test, src/ltltest/syntimpl.test,
src/ltltest/tostring.test, src/ltltest/tunabbrev.test,
src/ltltest/tunenoform.test, src/tgbatest/bddprod.test,
src/tgbatest/complementation.test, src/tgbatest/dfs.test,
src/tgbatest/dupexp.test, src/tgbatest/eltl2tgba.test,
src/tgbatest/emptchk.test, src/tgbatest/emptchke.test,
src/tgbatest/emptchkr.test, src/tgbatest/explicit.test,
src/tgbatest/explpro2.test, src/tgbatest/explpro3.test,
src/tgbatest/explpro4.test, src/tgbatest/explprod.test,
src/tgbatest/ltl2neverclaim.test, src/tgbatest/ltl2tgba.test,
src/tgbatest/ltlprod.test, src/tgbatest/mixprod.test,
src/tgbatest/readsave.test, src/tgbatest/reduccmp.test,
src/tgbatest/reductgba.test, src/tgbatest/scc.test,
src/tgbatest/spotlbtt.test, src/tgbatest/tgbaread.test,
src/tgbatest/tripprod.test: Adjust to run from a subdirectory.
This commit is contained in:
Alexandre Duret-Lutz 2009-08-31 16:08:16 +02:00
parent 1f7aa90d74
commit 1098c62de2
51 changed files with 488 additions and 467 deletions

View file

@ -95,16 +95,5 @@ TESTS = \
EXTRA_DIST = $(TESTS)
CLEANFILES = \
blue_counter \
blue_last \
config \
expected \
input \
input1 \
input2 \
input3 \
output1 \
output2 \
red \
stdout
distclean-local:
rm -rf $(TESTS:.test=.dir)

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -28,11 +28,11 @@ set -e
# We don't check the output, but just running these might be enough to
# trigger assertions.
run 0 ./bddprod a b
run 0 ./bddprod a a
run 0 ./bddprod 'a U b' 'X f'
run 0 ./bddprod 'X a' 'X a'
run 0 ./bddprod 'X a' 'a U b'
run 0 ./bddprod 'a & b & c' 'b & d & c'
run 0 ./bddprod 'a | b | (c U (d & (g U (h ^ i))))' 'h ^ i'
run 0 ./bddprod 'Xa & (b U !a) & (b U !a)' '(b U !a) & f'
run 0 ../bddprod a b
run 0 ../bddprod a a
run 0 ../bddprod 'a U b' 'X f'
run 0 ../bddprod 'X a' 'X a'
run 0 ../bddprod 'X a' 'a U b'
run 0 ../bddprod 'a & b & c' 'b & d & c'
run 0 ../bddprod 'a | b | (c U (d & (g U (h ^ i))))' 'h ^ i'
run 0 ../bddprod 'Xa & (b U !a) & (b U !a)' '(b U !a) & f'

View file

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (C) 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
# This file is part of Spot, a model checking library.
@ -25,7 +25,7 @@
set -e
while read f; do
run 0 ./complement -f "$f"
run 0 ../complement -f "$f"
done <<EOF
GFa
FGa

View file

@ -1,5 +1,5 @@
# -*- shell-script -*-
# Copyright (C) 2003, 2004, 2006 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2006, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -26,9 +26,8 @@ test -f ./defs || {
exit 1
}
# If srcdir is not set, then we are not running from `make check', be verbose.
# If srcdir is not set, then we are not running from `make check'.
if test -z "$srcdir"; then
test -z "$VERBOSE" && VERBOSE=x
# compute $srcdir.
srcdir=`echo "$0" | sed -e 's,/[^\\/]*$,,'`
test $srcdir = $0 && srcdir=.
@ -40,11 +39,16 @@ test -f $srcdir/defs.in || {
exit 1
}
# User can set VERBOSE to see all output.
test -z "$VERBOSE" && exec >/dev/null 2>&1
echo "== Running test $0"
me=`echo "$0" | sed -e 's,.*[\\/],,;s/\.test$//'`
testSubDir=$me.dir
chmod -R a+rwx $testSubDir > /dev/null 2>&1
rm -rf $testSubDir > /dev/null 2>&1
mkdir $testSubDir
cd $testSubDir
DOT='@DOT@'
top_builddir='@top_builddir@'
LBTT="@LBTT@"
@ -71,9 +75,4 @@ run()
test $exitcode = $expected_exitcode || exit 1
}
# Turn on shell traces when VERBOSE=x.
if test "x$VERBOSE" = xx; then
set -x
else
:
fi
set -x

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2005, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -77,8 +77,8 @@ s9, s8,,;
s9, s9,,;
EOF
run 0 ./ltl2tgba -eSE05 -X blue_counter
run 0 ./ltl2tgba -eTau03_opt -X blue_counter
run 0 ../ltl2tgba -eSE05 -X blue_counter
run 0 ../ltl2tgba -eTau03_opt -X blue_counter
# s1->s2->s3->(large composant from s4 to s9)
# ^ ||
@ -129,8 +129,8 @@ s9, s8,,;
s9, s9,,;
EOF
run 0 ./ltl2tgba -eSE05 -X blue_last
run 0 ./ltl2tgba -eTau03_opt -X blue_last
run 0 ../ltl2tgba -eSE05 -X blue_last
run 0 ../ltl2tgba -eTau03_opt -X blue_last
# _______
# | |
@ -185,7 +185,7 @@ s9, s8,,;
s9, s9,,;
EOF
run 0 ./ltl2tgba -eSE05 -X red
run 0 ./ltl2tgba -eTau03_opt -X red
run 0 ../ltl2tgba -eSE05 -X red
run 0 ../ltl2tgba -eTau03_opt -X red
rm -f red blue_counter blue_last

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -27,12 +27,12 @@ set -e
dorun()
{
run 0 ./ltl2tgba -f -s "$1" >output1
run 0 ./ltl2tgba -f -S "$1" >output2
run 0 ../ltl2tgba -f -s "$1" >output1
run 0 ../ltl2tgba -f -S "$1" >output2
test `wc -l <output1` = `wc -l <output2`
run 0 ./ltl2tgba -s "$1" >output1
run 0 ./ltl2tgba -S "$1" >output2
run 0 ../ltl2tgba -s "$1" >output1
run 0 ../ltl2tgba -S "$1" >output2
test `wc -l <output1` = `wc -l <output2`
}

View file

@ -6,7 +6,7 @@ set -e
# Check if the TGBA was corretly constructed.
check_construct()
{
run 0 ./eltl2tgba -F "$1" input
run 0 ../eltl2tgba -F "$1" input
}
# Check if the TGBA behaves correctly by doing an emptiness check on
@ -14,11 +14,11 @@ check_construct()
# translated using FM.
check_true()
{
run 0 ./ltl2tgba -e -Pinput -f "$1"
run 0 ../ltl2tgba -e -Pinput -f "$1"
}
check_false()
{
run 1 ./ltl2tgba -e -Pinput -f "$1"
run 1 ../ltl2tgba -e -Pinput -f "$1"
}
# Create the prelude file.

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004, 2005, 2008 Laboratoire d'Informatique de
# Copyright (C) 2003, 2004, 2005, 2008, 2009 Laboratoire d'Informatique de
# Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
# Université Pierre et Marie Curie.
#
@ -27,8 +27,8 @@ set -e
expect_ce_do()
{
run 0 ./ltl2tgba "$@"
run 0 ./ltl2tgba -g "$@"
run 0 ../ltl2tgba "$@"
run 0 ../ltl2tgba -g "$@"
}
expect_ce()
@ -43,42 +43,42 @@ expect_ce()
expect_ce_do -e'Cou99(shy)' -f -D "$1"
expect_ce_do -eCVWY90 "$1"
expect_ce_do -eCVWY90 -f "$1"
run 0 ./ltl2tgba -e'CVWY90(bsh=10M)' "$1"
run 0 ./ltl2tgba -e'CVWY90(bsh=10M)' -f "$1"
run 0 ./ltl2tgba -eSE05 "$1"
run 0 ./ltl2tgba -eSE05 -f "$1"
run 0 ./ltl2tgba -e'SE05(bsh=10M)' "$1"
run 0 ./ltl2tgba -e'SE05(bsh=10M)' -f "$1"
run 0 ./ltl2tgba -eTau03_opt -f "$1"
run 0 ./ltl2tgba -eGV04 -f "$1"
run 0 ../ltl2tgba -e'CVWY90(bsh=10M)' "$1"
run 0 ../ltl2tgba -e'CVWY90(bsh=10M)' -f "$1"
run 0 ../ltl2tgba -eSE05 "$1"
run 0 ../ltl2tgba -eSE05 -f "$1"
run 0 ../ltl2tgba -e'SE05(bsh=10M)' "$1"
run 0 ../ltl2tgba -e'SE05(bsh=10M)' -f "$1"
run 0 ../ltl2tgba -eTau03_opt -f "$1"
run 0 ../ltl2tgba -eGV04 -f "$1"
# Expect multiple accepting runs
test `./ltl2tgba -e'CVWY90(repeated)' "$1" | grep Prefix: | wc -l` -ge $2
test `./ltl2tgba -e'SE05(repeated)' "$1" | grep Prefix: | wc -l` -ge $2
test `../ltl2tgba -e'CVWY90(repeated)' "$1" | grep Prefix: | wc -l` -ge $2
test `../ltl2tgba -e'SE05(repeated)' "$1" | grep Prefix: | wc -l` -ge $2
}
expect_no()
{
run 0 ./ltl2tgba -E "$1"
run 0 ./ltl2tgba -E -D "$1"
run 0 ./ltl2tgba -E -f "$1"
run 0 ./ltl2tgba -E -f -D "$1"
run 0 ./ltl2tgba -E'Cou99(shy)' "$1"
run 0 ./ltl2tgba -E'Cou99(shy)' -D "$1"
run 0 ./ltl2tgba -E'Cou99(shy)' -f "$1"
run 0 ./ltl2tgba -E'Cou99(shy)' -f -D "$1"
run 0 ./ltl2tgba -ECVWY90 "$1"
run 0 ./ltl2tgba -ECVWY90 -f "$1"
run 0 ./ltl2tgba -E'CVWY90(bsh=10M)' "$1"
run 0 ./ltl2tgba -E'CVWY90(bsh=10M)' -f "$1"
run 0 ./ltl2tgba -ESE05 "$1"
run 0 ./ltl2tgba -ESE05 -f "$1"
run 0 ./ltl2tgba -E'SE05(bsh=10M)' "$1"
run 0 ./ltl2tgba -E'SE05(bsh=10M)' -f "$1"
run 0 ./ltl2tgba -ETau03_opt -f "$1"
run 0 ./ltl2tgba -EGV04 -f "$1"
test `./ltl2tgba -e'CVWY90(repeated)' "!($1)" |
run 0 ../ltl2tgba -E "$1"
run 0 ../ltl2tgba -E -D "$1"
run 0 ../ltl2tgba -E -f "$1"
run 0 ../ltl2tgba -E -f -D "$1"
run 0 ../ltl2tgba -E'Cou99(shy)' "$1"
run 0 ../ltl2tgba -E'Cou99(shy)' -D "$1"
run 0 ../ltl2tgba -E'Cou99(shy)' -f "$1"
run 0 ../ltl2tgba -E'Cou99(shy)' -f -D "$1"
run 0 ../ltl2tgba -ECVWY90 "$1"
run 0 ../ltl2tgba -ECVWY90 -f "$1"
run 0 ../ltl2tgba -E'CVWY90(bsh=10M)' "$1"
run 0 ../ltl2tgba -E'CVWY90(bsh=10M)' -f "$1"
run 0 ../ltl2tgba -ESE05 "$1"
run 0 ../ltl2tgba -ESE05 -f "$1"
run 0 ../ltl2tgba -E'SE05(bsh=10M)' "$1"
run 0 ../ltl2tgba -E'SE05(bsh=10M)' -f "$1"
run 0 ../ltl2tgba -ETau03_opt -f "$1"
run 0 ../ltl2tgba -EGV04 -f "$1"
test `../ltl2tgba -e'CVWY90(repeated)' "!($1)" |
grep Prefix: | wc -l` -ge $2
test `./ltl2tgba -e'SE05(repeated)' "!($1)" |
test `../ltl2tgba -e'SE05(repeated)' "!($1)" |
grep Prefix: | wc -l` -ge $2
}

View file

@ -1,7 +1,7 @@
#!/bin/sh
# Copyright (C) 2003, 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
# Copyright (C) 2003, 2004, 2005, 2009 Laboratoire d'Informatique de
# Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
# Université Pierre et Marie Curie.
#
# This file is part of Spot, a model checking library.
#
@ -27,11 +27,11 @@ set -e
expect_ce()
{
run 0 ./ltl2tgba -e -X "$1"
run 0 ./ltl2tgba -e -D -X "$1"
run 0 ./ltl2tgba -e'Cou99(shy)' -X "$1"
run 0 ./ltl2tgba -e'Cou99(shy)' -D -X "$1"
run 0 ./ltl2tgba -eCVWY90 -X "$1"
run 0 ../ltl2tgba -e -X "$1"
run 0 ../ltl2tgba -e -D -X "$1"
run 0 ../ltl2tgba -e'Cou99(shy)' -X "$1"
run 0 ../ltl2tgba -e'Cou99(shy)' -D -X "$1"
run 0 ../ltl2tgba -eCVWY90 -X "$1"
}
cat >input <<'EOF'

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -28,24 +28,24 @@ set -e
# With no acceptance condition, everyone should agree and find a run.
# Do not spend to much time checking this.
run 0 ./randtgba -e 10 -s 0 -r -m
run 0 ../randtgba -e 10 -s 0 -r -m
# One acceptance condition
run 0 ./randtgba -e 100 -s 0 -r -m -a 1 0.1 -d 0.01
run 0 ./randtgba -e 100 -s 50 -r -m -a 1 0.1 -d 0.02
run 0 ./randtgba -e 100 -s 100 -r -m -a 1 0.1 -d 0.04
run 0 ./randtgba -e 100 -s 150 -r -m -a 1 0.1 -d 0.08
run 0 ../randtgba -e 100 -s 0 -r -m -a 1 0.1 -d 0.01
run 0 ../randtgba -e 100 -s 50 -r -m -a 1 0.1 -d 0.02
run 0 ../randtgba -e 100 -s 100 -r -m -a 1 0.1 -d 0.04
run 0 ../randtgba -e 100 -s 150 -r -m -a 1 0.1 -d 0.08
# Four acceptance conditions
run 0 ./randtgba -e 100 -s 200 -r -m -a 4 0.1 -d 0.01
run 0 ./randtgba -e 100 -s 250 -r -m -a 4 0.1 -d 0.02
run 0 ./randtgba -e 100 -s 300 -r -m -a 4 0.1 -d 0.04
run 0 ./randtgba -e 100 -s 350 -r -m -a 4 0.1 -d 0.08
run 0 ./randtgba -e 100 -s 400 -r -m -a 4 0.2 -d 0.01
run 0 ./randtgba -e 100 -s 450 -r -m -a 4 0.2 -d 0.02
run 0 ./randtgba -e 100 -s 500 -r -m -a 4 0.2 -d 0.04
run 0 ./randtgba -e 100 -s 550 -r -m -a 4 0.2 -d 0.08
run 0 ../randtgba -e 100 -s 200 -r -m -a 4 0.1 -d 0.01
run 0 ../randtgba -e 100 -s 250 -r -m -a 4 0.1 -d 0.02
run 0 ../randtgba -e 100 -s 300 -r -m -a 4 0.1 -d 0.04
run 0 ../randtgba -e 100 -s 350 -r -m -a 4 0.1 -d 0.08
run 0 ../randtgba -e 100 -s 400 -r -m -a 4 0.2 -d 0.01
run 0 ../randtgba -e 100 -s 450 -r -m -a 4 0.2 -d 0.02
run 0 ../randtgba -e 100 -s 500 -r -m -a 4 0.2 -d 0.04
run 0 ../randtgba -e 100 -s 550 -r -m -a 4 0.2 -d 0.08
# Bigger automata. With valgrind this is slow, so we do less.
run 0 ./randtgba -e 10 -s 0 -n 500 -r -m -a 1 0.0003 -d 0.01
run 0 ./randtgba -e 10 -s 0 -n 500 -r -m -a 4 0.0011 -D -d 0.01
run 0 ../randtgba -e 10 -s 0 -n 500 -r -m -a 1 0.0003 -d 0.01
run 0 ../randtgba -e 10 -s 0 -n 500 -r -m -a 4 0.0011 -D -d 0.01

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004, 2005, 2008 Laboratoire d'Informatique de
# Copyright (C) 2003, 2004, 2005, 2008, 2009 Laboratoire d'Informatique de
# Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
# Université Pierre et Marie Curie.
#
@ -25,7 +25,7 @@
set -e
run 0 ./explicit | sed 's/c & b/b \& c/' > stdout
run 0 ../explicit | sed 's/c & b/b \& c/' > stdout
cat >expected <<EOF
digraph G {

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004, 2005, 2006, 2008 Laboratoire
# Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009 Laboratoire
# d'Informatique de Paris 6 (LIP6), département Systèmes Répartis
# Coopératifs (SRC), Université Pierre et Marie Curie.
#
@ -43,7 +43,7 @@ acc = "p2$1" "p3" "p2" "p1";
"s1 * s1", "s3 * s3", "a & !b", "p3" "p2";
EOF
run 0 ./explprod input1 input2 |
run 0 ../explprod input1 input2 |
sed 's/!a & b/b \& !a/;s/!b & a/a \& !b/'> stdout
cat stdout

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -43,7 +43,7 @@ acc = "p2" "p3";
"s1 * s1", "s3 * s3", "a & !b", "p3";
EOF
run 0 ./explprod input1 input2 > stdout
run 0 ../explprod input1 input2 > stdout
# Sort out some possible inversions in the output.
# (The order is not guaranteed by SPOT.)

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2006 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2006, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -43,7 +43,7 @@ acc = "p1$1" "p1";
"s1 * s1", "s1 * s1", "!a", "p1$1";
EOF
run 0 ./explprod input1 input2 > stdout
run 0 ../explprod input1 input2 > stdout
cat stdout
diff stdout expected
rm input1 input2 stdout expected

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004, 2005, 2008 Laboratoire d'Informatique de
# Copyright (C) 2003, 2004, 2005, 2008, 2009 Laboratoire d'Informatique de
# Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
# Université Pierre et Marie Curie.
#
@ -46,7 +46,7 @@ acc = "p3" "p2" "p1";
"s2 * s2", "s3 * s1", "a & c", "p3" "p1";
EOF
run 0 ./explprod input1 input2 |
run 0 ../explprod input1 input2 |
sed 's/b & a/a \& b/;s/c & a/a \& c/' > stdout
cat stdout

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -28,14 +28,14 @@ set -e
# We don't check the output, but just running these might be enough to
# trigger assertions.
run 0 ./ltl2tgba -N -x a
run 0 ./ltl2tgba -N -x 'a U b'
run 0 ./ltl2tgba -N -x 'X a'
run 0 ./ltl2tgba -N -x 'a & b & c'
run 0 ./ltl2tgba -N -x 'a | b | (c U (d & (g U (h ^ i))))'
run 0 ./ltl2tgba -N -x 'Xa & (b U !a) & (b U !a)'
run 0 ./ltl2tgba -N -x 'Fa & Xb & GFc & Gd'
run 0 ./ltl2tgba -N -x 'Fa & Xa & GFc & Gc'
run 0 ./ltl2tgba -N -x 'Fc & X(a | Xb) & GF(a | Xb) & Gc'
run 0 ./ltl2tgba -N -x 'a R (b R c)'
run 0 ./ltl2tgba -N -x '(a U b) U (c U d)'
run 0 ../ltl2tgba -N -x a
run 0 ../ltl2tgba -N -x 'a U b'
run 0 ../ltl2tgba -N -x 'X a'
run 0 ../ltl2tgba -N -x 'a & b & c'
run 0 ../ltl2tgba -N -x 'a | b | (c U (d & (g U (h ^ i))))'
run 0 ../ltl2tgba -N -x 'Xa & (b U !a) & (b U !a)'
run 0 ../ltl2tgba -N -x 'Fa & Xb & GFc & Gd'
run 0 ../ltl2tgba -N -x 'Fa & Xa & GFc & Gc'
run 0 ../ltl2tgba -N -x 'Fc & X(a | Xb) & GF(a | Xb) & Gc'
run 0 ../ltl2tgba -N -x 'a R (b R c)'
run 0 ../ltl2tgba -N -x '(a U b) U (c U d)'

View file

@ -27,9 +27,9 @@ set -e
check ()
{
run 0 ./ltl2tgba "$1"
run 0 ./ltl2tgba -f "$1"
run 0 ./ltl2tgba -f -FC "$1"
run 0 ../ltl2tgba "$1"
run 0 ../ltl2tgba -f "$1"
run 0 ../ltl2tgba -f -FC "$1"
}
# We don't check the output, but just running these might be enough to

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -28,11 +28,11 @@ set -e
# We don't check the output, but just running these might be enough to
# trigger assertions.
run 0 ./ltlprod a b
run 0 ./ltlprod a a
run 0 ./ltlprod 'a U b' 'X f'
run 0 ./ltlprod 'X a' 'X a'
run 0 ./ltlprod 'X a' 'a U b'
run 0 ./ltlprod 'a & b & c' 'b & d & c'
run 0 ./ltlprod 'a | b | (c U (d & (g U (h ^ i))))' 'h ^ i'
run 0 ./ltlprod 'Xa & (b U !a) & (b U !a)' '(b U !a) & f'
run 0 ../ltlprod a b
run 0 ../ltlprod a a
run 0 ../ltlprod 'a U b' 'X f'
run 0 ../ltlprod 'X a' 'X a'
run 0 ../ltlprod 'X a' 'a U b'
run 0 ../ltlprod 'a & b & c' 'b & d & c'
run 0 ../ltlprod 'a | b | (c U (d & (g U (h ^ i))))' 'h ^ i'
run 0 ../ltlprod 'Xa & (b U !a) & (b U !a)' '(b U !a) & f'

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -36,11 +36,11 @@ s2, s1, "!a",;
s2, s3, "c",;
EOF
run 0 ./mixprod 'F(a U b) & Xa' input1 >stdout
run 0 ../mixprod 'F(a U b) & Xa' input1 >stdout
cat stdout
# Make sure we can read the produced output
run 0 ./mixprod 'G!a' stdout
run 0 ../mixprod 'G!a' stdout
rm input1 stdout

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -32,7 +32,7 @@ s1, "s2", "a&!b", c d;
"state 3", s1,,;
EOF
./readsave input > stdout
../readsave input > stdout
cat >expected <<\EOF
acc = "c" "d";
@ -48,7 +48,7 @@ sed 's/"d" "c"/"c" "d"/g;s/!b & a/a \& !b/g' stdout > tmp_ && mv tmp_ stdout
diff stdout expected
mv stdout input
run 0 ./readsave input > stdout
run 0 ../readsave input > stdout
# Sort out some possible inversions in the output.
# (The order is not guaranteed by SPOT.)
@ -60,11 +60,11 @@ rm -f input stdout expected
# Likewise, with a randomly generated TGBA.
run 0 ./randtgba -t 1 -n 20 -d 0.2 a b -a 2 0.1 >input
run 0 ../randtgba -t 1 -n 20 -d 0.2 a b -a 2 0.1 >input
sed 's/"b & a"/"a \& b"/g;s/"a1" "a0"/"a0" "a1"/g' input > tmp_ &&
mv tmp_ input
cat input
run 0 ./readsave input > stdout
run 0 ../readsave input > stdout
sed 's/"b & a"/"a \& b"/g;s/"a1" "a0"/"a0" "a1"/g' stdout > tmp_ &&
mv tmp_ stdout

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -35,8 +35,8 @@ s1, "s2", "a", c;
"3", s2, "a",;
EOF
run 0 ./reduccmp 0 input
run 0 ./reduccmp 0 input > stdout
run 0 ../reduccmp 0 input
run 0 ../reduccmp 0 input > stdout
cat >expected <<EOF
digraph G {
@ -54,4 +54,4 @@ sed 's/!b & a/a \& !b/g' stdout > tmp_ && mv tmp_ stdout
diff stdout expected
# FIXME
exit 0
exit 0

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -27,8 +27,8 @@ set -e
check()
{
#run 0 ./reductgba "$1" "$2"
./reductgba "$1" "$2"
#run 0 ../reductgba "$1" "$2"
../reductgba "$1" "$2"
}
# We don't check the output, but just running these might be enough to

View file

@ -24,7 +24,7 @@
set -e
run 0 ./ltl2tgba -f -k '(a U c) U b & (b U c)' >stdout
run 0 ../ltl2tgba -f -k '(a U c) U b & (b U c)' >stdout
cat >expected <<EOF
transitions: 15
states: 6
@ -37,7 +37,7 @@ EOF
diff stdout expected
run 0 ./ltl2tgba -f -k '(b U a) | (GFa & XG!a)' >stdout
run 0 ../ltl2tgba -f -k '(b U a) | (GFa & XG!a)' >stdout
cat >expected <<EOF
transitions: 7
states: 4

View file

@ -1,7 +1,7 @@
#!/bin/sh
# Copyright (C) 2003, 2004, 2005, 2006, 2007 Laboratoire d'Informatique de
# Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
# Université Pierre et Marie Curie.
# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Laboratoire
# d'Informatique de Paris 6 (LIP6), département Systèmes Répartis
# Coopératifs (SRC), Université Pierre et Marie Curie.
#
# This file is part of Spot, a model checking library.
#
@ -32,7 +32,7 @@ Algorithm
{
Name = "Spot (Couvreur -- LaCIM)"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -t'"
Parameters = "--spot '../ltl2tgba -F -t'"
Enabled = yes
}
@ -40,7 +40,7 @@ Algorithm
{
Name = "Spot (Couvreur -- LaCIM), reduction of formula"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -r4 -F -t'"
Parameters = "--spot '../ltl2tgba -r4 -F -t'"
Enabled = yes
}
@ -48,7 +48,7 @@ Algorithm
{
Name = "Spot (Couvreur -- LaCIM), degeneralized"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -t -D'"
Parameters = "--spot '../ltl2tgba -F -t -D'"
Enabled = yes
}
@ -56,7 +56,7 @@ Algorithm
{
Name = "Spot (Couvreur -- LaCIM), fake"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -T'"
Parameters = "--spot '../ltl2tgba -F -T'"
Enabled = no
}
@ -64,7 +64,7 @@ Algorithm
{
Name = "Spot (Couvreur -- LaCIM), eltl"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './eltl2tgba -L'"
Parameters = "--spot '../eltl2tgba -L'"
Enabled = yes
}
@ -72,7 +72,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM)"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -f -t'"
Parameters = "--spot '../ltl2tgba -F -f -t'"
Enabled = yes
}
@ -80,7 +80,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), basic reduction of formula"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -r1 -F -f -t'"
Parameters = "--spot '../ltl2tgba -r1 -F -f -t'"
Enabled = no
}
@ -88,7 +88,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), reduction of formula using class of formula"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -r2 -F -f -t'"
Parameters = "--spot '../ltl2tgba -r2 -F -f -t'"
Enabled = no
}
@ -96,7 +96,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), reduction of formula using implies relation"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -r3 -F -f -t'"
Parameters = "--spot '../ltl2tgba -r3 -F -f -t'"
Enabled = no
}
@ -104,7 +104,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), reduction of formula (pre reduction)"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -r4 -F -f -t'"
Parameters = "--spot '../ltl2tgba -r4 -F -f -t'"
Enabled = yes
}
@ -112,7 +112,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), reduction7 of formula (pre reduction)"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -r7 -F -f -t'"
Parameters = "--spot '../ltl2tgba -r7 -F -f -t'"
Enabled = yes
}
@ -120,7 +120,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), reduction of formula in FM"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -fr4 -F -f -t'"
Parameters = "--spot '../ltl2tgba -fr4 -F -f -t'"
Enabled = no
}
@ -128,7 +128,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM) reduction7 of formula in FM"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -fr7 -F -f -t'"
Parameters = "--spot '../ltl2tgba -fr7 -F -f -t'"
Enabled = no
}
@ -138,7 +138,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), post reduction with direct simulation"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -R1q -R1t -F -f -t'"
Parameters = "--spot '../ltl2tgba -R1q -R1t -F -f -t'"
Enabled = yes
}
@ -146,7 +146,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), post reduction with delayed simulation"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -R2q -R2t -F -f -t'"
Parameters = "--spot '../ltl2tgba -R2q -R2t -F -f -t'"
Enabled = yes
}
@ -154,7 +154,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), post reduction with scc"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -R3 -F -f -t'"
Parameters = "--spot '../ltl2tgba -R3 -F -f -t'"
Enabled = yes
}
@ -162,7 +162,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), pre + post reduction"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -r4 -R1q -R1t -R3 -F -f -t'"
Parameters = "--spot '../ltl2tgba -r4 -R1q -R1t -R3 -F -f -t'"
Enabled = yes
}
@ -170,7 +170,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), pre + allpost reduction"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -r4 -R1q -R1t -R2q -R2t -R3 -F -f -t'"
Parameters = "--spot '../ltl2tgba -r4 -R1q -R1t -R2q -R2t -R3 -F -f -t'"
Enabled = no
}
@ -178,7 +178,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), without symb_merge"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -f -y -t'"
Parameters = "--spot '../ltl2tgba -F -f -y -t'"
Enabled = yes
}
@ -186,7 +186,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), degeneralized"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -f -t -D'"
Parameters = "--spot '../ltl2tgba -F -f -t -D'"
Enabled = yes
}
@ -194,7 +194,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM), degeneralized, via never claim"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spin './ltl2tgba -F -f -N'"
Parameters = "--spin '../ltl2tgba -F -f -N'"
Enabled = yes
}
@ -202,7 +202,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM exprop)"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -f -x -t'"
Parameters = "--spot '../ltl2tgba -F -f -x -t'"
Enabled = yes
}
@ -210,7 +210,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM exprop), without symb_merge"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -f -x -y -t'"
Parameters = "--spot '../ltl2tgba -F -f -x -y -t'"
Enabled = yes
}
@ -218,7 +218,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM exprop), degeneralized"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -f -x -t -D'"
Parameters = "--spot '../ltl2tgba -F -f -x -t -D'"
Enabled = yes
}
@ -226,7 +226,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM post_branch + exprop)"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -f -x -p -t'"
Parameters = "--spot '../ltl2tgba -F -f -x -p -t'"
Enabled = yes
}
@ -234,7 +234,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM post_branch + exprop + flapprox)"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -f -x -p -L -t'"
Parameters = "--spot '../ltl2tgba -F -f -x -p -L -t'"
Enabled = yes
}
@ -242,7 +242,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM post_branch + exprop), degeneralized"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -f -p -x -t -D'"
Parameters = "--spot '../ltl2tgba -F -f -p -x -t -D'"
Enabled = yes
}
@ -250,7 +250,7 @@ Algorithm
{
Name = "Spot (Couvreur -- FM post_branch + exprop + flapprox), degeneralized"
Path = "${LBTT_TRANSLATE}"
Parameters = "--spot './ltl2tgba -F -f -p -x -t -L -D'"
Parameters = "--spot '../ltl2tgba -F -f -p -x -t -L -D'"
Enabled = yes
}

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# Copyright (C) 2003, 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
@ -32,7 +32,7 @@ s1, "s2", "a & !b", c d;
"state 3", s1,,;
EOF
run 0 ./tgbaread input > stdout
run 0 ../tgbaread input > stdout
cat >expected <<EOF
digraph G {

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2003, 2004, 2005, 2008 Laboratoire d'Informatique de
# Copyright (C) 2003, 2004, 2005, 2008, 2009 Laboratoire d'Informatique de
# Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
# Université Pierre et Marie Curie.
#
@ -57,7 +57,7 @@ acc = "p4" "p3" "p2" "p1";
"s2 * s2 * s3", "s3 * s1 * s2", "a & c", "p4" "p3";
EOF
run 0 ./tripprod input1 input2 input3 |
run 0 ../tripprod input1 input2 input3 |
sed 's/b & a/a \& b/;s/c & a/a \& c/'> stdout
cat stdout