ltlcross, autcross: add --quiet/-q option

* bin/autcross.cc, bin/ltlcross.cc: Implement it.
* doc/org/autcross.org, doc/org/ltlcross.org, NEWS: Document it.
* doc/org/spot.css: Add colors for Makefile snippets.
* tests/core/autcross4.test, tests/core/ltlcross3.test,
tests/core/ltlcrossce.test: Add test cases.
This commit is contained in:
Alexandre Duret-Lutz 2019-07-17 17:34:01 +02:00
parent 6a71438268
commit 6f37ff8ed0
9 changed files with 275 additions and 58 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2018 Laboratoire de Recherche et Développement de
# Copyright (C) 2018, 2019 Laboratoire de Recherche et Développement de
# l'Epita (LRDE).
#
# This file is part of Spot, a model checking library.
@ -26,6 +26,10 @@ ltl2tgba -f FGa '"a = b"U!c' |
test 2 = `grep -c '"FGa"' out.csv`
test 2 = `grep -c '"""a = b"" U !c"' out.csv`
ltl2tgba -f FGa '"a = b"U!c' |
autcross -q 'autfilt' 'ltl2tgba -B %M >%O' 2>out
test 0 -eq `wc -l <out`
cat >in <<EOF
HOA: v1
@ -75,6 +79,15 @@ grep 'some error was detected ' err
grep '1 non-zero exit status was ignored' err
test 1 = `wc -l < out.csv`
# Same with -q
autcross -T3 -q --language-preserved --ignore-execution-failures \
--csv=out.csv --omit-missing --low --medium --high --stop-on-error \
--fail-on-timeout \
'sleep 10; autfilt %H>%O' 'false %H %O' 2>err -Fin && exit 1
cat err
test 4 = `wc -l <err`
test 1 = `wc -l < out.csv`
autcross - 2> err && exit 1
cat err
grep 'autcross: No tool to run' err