modelcheck: update tests

* tests/ltsmin/check.test,
tests/ltsmin/check2.test,
tests/ltsmin/check3.test,
tests/ltsmin/finite2.test,
tests/ltsmin/finite3.test: here.
This commit is contained in:
Etienne Renault 2017-11-20 16:19:33 +01:00
parent 0b917af762
commit 80746e4332
5 changed files with 58 additions and 43 deletions

View file

@ -23,6 +23,21 @@
divine compile > output 2>&1
set -e
if ! test -x "`command -v spins`"; then
echo "spins not installed."
else
# Promela
for opt in '' '--compress 1'; do
run 0 ../modelcheck --is-empty $opt --model $srcdir/elevator2.1.pm \
--formula '!G("req[1]==1" -> (F("p==1" && "cabin_0._pc==2")))'
run 1 ../modelcheck --is-empty $opt --model $srcdir/elevator2.1.pm \
--formula 'F("p==2")'
done
fi
if grep -i -- --ltsmin output; then
:
else
@ -30,16 +45,6 @@ else
exit 77
fi
set -e
# Promela
for opt in '' '--compress 1'; do
run 0 ../modelcheck --is-emtpy $opt --model $srcdir/elevator2.1.pm \
--formula '!G("req[1]==1" -> (F("p==1" && "cabin_0._pc==2")))'
run 1 ../modelcheck --is-empty $opt --model $srcdir/elevator2.1.pm \
--formula 'F("p==2")'
done
# dve2
for opt in '' '--compress 1'; do
@ -69,6 +74,6 @@ grep 'Cannot open' stderr
run 2 ../modelcheck --model beem-peterson.4.dve2C \
--formula 'Xfoo | P_0.f & X"P_0.k < 2xx" | G"pos[0]"' 2>stderr
cat stderr
grep 'Proposition "foo"' stderr
grep 'Proposition "P_0.f"' stderr
grep 'Proposition "P_0.k<2xx"' stderr
grep 'No variable' stderr
grep 'No state' stderr
grep 'Unexpected' stderr