bin: teach conversion options to report about the options
* bin/common_conv.cc, bin/common_conv.hh: Here. * bin/autfilt.cc, bin/common_trans.cc, bin/ltlcross.cc, bin/ltldo.cc, bin/ltlfilt.cc, bin/ltlgrind.cc, bin/randaut.cc, bin/randltl.cc: Pass the name of the argumennt to the conversion function. * tests/core/ltlcross3.test, tests/core/ltldo.test, tests/core/randaut.test: Add test cases.
This commit is contained in:
parent
1f9f3c77ea
commit
c369f899a3
13 changed files with 67 additions and 54 deletions
|
|
@ -296,9 +296,12 @@ test `grep '"aborted",-1' out.csv | wc -l` -eq 4
|
|||
test 5 = `wc -l < out.csv`
|
||||
check_csv out.csv
|
||||
|
||||
# Diagnose empty automata, and make sure %% is correctly replaced by %
|
||||
ltlcross --density 2.01 ltl2tgba 2>stderr && exit 1
|
||||
grep 'not between 0 and 1' stderr
|
||||
|
||||
# Diagnose empty automata, and make sure %% is correctly replaced by %
|
||||
run 1 ltlcross ': %f >%O; echo %%>foo' -f a 2>stderr
|
||||
run 1 ltlcross --density 0.01 ': %f >%O; echo %%>foo' -f a 2>stderr
|
||||
test 2 = `grep -c ':.*empty input' stderr`
|
||||
cat foo
|
||||
cat >expected<<EOF
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2015-2017 Laboratoire de Recherche et Développement de
|
||||
# Copyright (C) 2015-2018 Laboratoire de Recherche et Développement de
|
||||
# l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -161,6 +161,8 @@ grep 'error:.*foo/bar/ltl2baextended -f .*>.*' stderr
|
|||
test 2 = `genltl --and-gf=1..4 | ltldo ltl2tgba -n2 | autfilt -c`
|
||||
test 3 = `genltl --and-gf=1..2 | ltldo ltl2tgba 'ltl2tgba -s' -n3 | autfilt -c`
|
||||
|
||||
ltldo ltl2tgba -n2a 2>err && exit 1
|
||||
grep "ltldo: failed to parse '2a'.*-n" err
|
||||
|
||||
genltl --rv-counter=9 | ltldo ltl2tgba --stats='
|
||||
print("%[up]R + %[uc]R + %[sp]R + %[sc]R - %R\n");
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2014, 2015, 2016, 2017 Laboratoire de Recherche et
|
||||
# Copyright (C) 2014, 2015, 2016, 2017, 2018 Laboratoire de Recherche et
|
||||
# Développement de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -22,6 +22,13 @@
|
|||
|
||||
set -e
|
||||
|
||||
randaut -e foo 2>err && exit 1
|
||||
grep "randaut: failed to parse 'foo' as a float (in argument of -e" err
|
||||
randaut -e 3.14 2>err && exit 1
|
||||
grep "randaut: 3.1.*is not between 0 and 1 (in argument of -e" err
|
||||
randaut -n1a 3 2>err && exit 1
|
||||
grep "randaut: failed to parse '1a' as an integer.* -n/--automata)" err
|
||||
|
||||
randaut --spin -Q4 a b | ../ikwiad -H -XN - >out
|
||||
grep 'States: 4' out
|
||||
grep 'AP: 2' out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue