Commit ce3eeb44 authored by Maximilien Colange's avatar Maximilien Colange
Browse files

Fix ltlsynt tests

* tests/core/ltlsynt.test: Escape newlines and test PGsolver printer
parent d071c7e1
......@@ -22,6 +22,29 @@
set -e
cat >exp <<EOF
parity 15;
0 4294967295 0 1,2 "INIT";
2 4 1 3;
3 2 0 4,5;
5 4294967295 1 3,6;
6 3 0 4,5;
4 4294967295 1 7,8;
8 2 0 9,10;
10 3 1 3,11;
11 0 0 4,5;
9 0 1 8,12;
12 1 0 10,13;
13 4294967295 1 8,12;
7 1 0 4,14;
14 2 1 3,6;
4 4294967295 1 7,8;
1 3 1 3,15;
15 3 0 1,2;
EOF
ltlsynt --ins='a' --outs='b' -f 'GFa <-> GFb' --print-pg > out
diff out exp
F0='(G ((((req) -> (X ((grant) && (X ((grant) && (X (grant))))))) && ((grant)
-> (X (! (grant))))) && ((cancel) -> (X ((! (grant)) U (go))))))'
IN0='cancel, go, req'
......@@ -91,10 +114,10 @@ for i in 0 1 7 8 9; do
IN=$(eval echo \$IN$i)
OUT=$(eval echo \$OUT$i)
EXP=$(eval echo \$EXP$i)
test $EXP = `ltlsynt -f "$F" --ins="$IN" --outs="$OUT" --realizability
--algo=rec`
test $EXP = `ltlsynt -f "$F" --ins="$IN" --outs="$OUT" --realizability
--algo=qp`
test $EXP = $(ltlsynt -f "$F" --ins="$IN" --outs="$OUT" --realizability \
--algo=rec)
test $EXP = $(ltlsynt -f "$F" --ins="$IN" --outs="$OUT" --realizability \
--algo=qp)
done
for i in 2 3 4 5 6 10; do
......
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