tests: please modelcheck interface

* tests/ltsmin/finite3.test: here.
This commit is contained in:
Etienne Renault 2018-02-20 15:53:18 +01:00
parent f777e96890
commit 34b9e89f5d

View file

@ -33,7 +33,8 @@ run 0 ../modelcheck --model $srcdir/finite.gal \
test `grep ' -> ' stdout | wc -l` = 25 test `grep ' -> ' stdout | wc -l` = 25
test `grep 'P.a=' stdout | wc -l` = 15 test `grep 'P.a=' stdout | wc -l` = 15
run 0 ../modelcheck --selfloopize true --model $srcdir/finite.gal \ run 0 ../modelcheck --selfloopize true --dot model \
--model $srcdir/finite.gal \
--formula '"P.a < 10"' > stdout2 --formula '"P.a < 10"' > stdout2
cmp stdout stdout2 cmp stdout stdout2
@ -49,12 +50,12 @@ run 0 ../modelcheck --compress 1 --selfloopize false \
test `grep ' -> ' stdout | wc -l` = 19 test `grep ' -> ' stdout | wc -l` = 19
test `grep 'P.a=' stdout | wc -l` = 15 test `grep 'P.a=' stdout | wc -l` = 15
run 0 ../modelcheck --selfloopize dead --is-empty $srcdir/finite.gal \ run 0 ../modelcheck --selfloopize dead --is-empty --model $srcdir/finite.gal \
--formula '!(G(dead -> ("P.a==3" | "P.b==3")))' --formula '!(G(dead -> ("P.a==3" | "P.b==3")))'
run 1 ../modelcheck --selfloopize dead --is-empty $srcdir/finite.gal \ run 1 ../modelcheck --selfloopize dead --is-empty --model $srcdir/finite.gal \
--formula '!(G(dead -> ("P.a==2" | "P.b==3")))' --formula '!(G(dead -> ("P.a==2" | "P.b==3")))'
# This used to segfault because of a bug in a # This used to segfault because of a bug in a
# function that do not exist anymore. # function that do not exist anymore.
run 0 ../modelcheck --dot product $srcdir/finite.gal --formula 'true' run 0 ../modelcheck --dot product --model $srcdir/finite.gal --formula 'true'