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

fix python/dca.test for VPATH builds

* tests/python/dca.test: Do not assume the run script is in the source
parent 61602a3b
......@@ -23,7 +23,10 @@ set -e
# Skip this test if ltl2dstar is not installed.
(ltl2dstar --version) || exit 77
cat >ba_formulas << 'EOF'
mkdir -p $DIR
cat >$DIR/ba_formulas << 'EOF'
FG((Xc & XXa) <-> !(b xor (c M b)))
XF(b & Ga)
......@@ -40,7 +43,7 @@ XF((!c R a) W !Fb)
(!a <-> !(c <-> Gb)) M 1
((0 R a) M c) M ((b xor Fb) M F(b -> a))
cat >dsa_formulas <<'EOF'
cat >$DIR/dsa_formulas <<'EOF'
(!b U b) U X(!a -> Fb)
1 U (a xor b)
X(!(!b | (a M b)) -> XXa)
......@@ -48,11 +51,11 @@ X(!(!b | (a M b)) -> XXa)
F(XF!a & (Fb U !a))
while read ba_f; do
$srcdir/../run "$srcdir/" "$ba_f" > ba
../run "$srcdir/" "$ba_f" > ba
while read dsa_f; do
ltldo -f "$dsa_f" "ltl2dstar --automata=streett\
--ltl2nba=spin:ltl2tgba@-Ds" -H | autfilt --product=ba > input.hoa
autfilt --dca input.hoa > res.hoa
autfilt input.hoa --equivalent-to res.hoa
done <dsa_formulas
done <ba_formulas
--ltl2nba=spin:ltl2tgba@-Ds" -H | autfilt --product=ba > $DIR/input.hoa
autfilt --dca $DIR/input.hoa > $DIR/res.hoa
autfilt $DIR/input.hoa --equivalent-to $DIR/res.hoa
done <$DIR/dsa_formulas
done <$DIR/ba_formulas
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