* src/tgbatest/kv.test: Rewrite the sed command more portably.

This commit is contained in:
Alexandre Duret-Lutz 2012-10-12 10:13:29 +02:00
parent 08175025c9
commit 8cd6e1c6d2

View file

@ -50,5 +50,8 @@ check '"G1"U"GG" && "FF"'
../ltl2tgba -KV -R3 -RIS >out \
'G("P_1.p2" <-> (F"P_1.p3" & ("P_0.p3" | (X"P_1.CS" U "P_1.p2")))) U G"P_1.p2"'
x=`sed -n '/APre/{s/.*APrec=\[\([^]]*\)\].*/\1/p;q}' out | tr ' ' '\n' | wc -l`
x=`sed -n '/APrec/{
s/.*APrec=\[\([^]]*\)\].*/\1/p
q
}' out | tr ' ' '\n' | wc -l`
test "$x" = 4