ltlcross, autcross, ltldo: support --fail-on-timeout
Suggested by Tobias Meggendorfer. Fixes #294. * bin/autcross.cc, bin/ltlcross.cc, bin/ltldo.cc: Add the option. * tests/core/autcross3.test, tests/core/ltlcross3.test, tests/core/ltldo.test: Test it. * tests/Makefile.am: Add autcross3.test. * NEWS, doc/org/autcross.org, doc/org/ltlcross.org, doc/org/ltldo.org: Mention the option. * THANKS: Add Tobias.
This commit is contained in:
parent
0a2bca1377
commit
183ec1fb4e
12 changed files with 147 additions and 21 deletions
|
|
@ -42,13 +42,27 @@ EOF
|
|||
diff output expected
|
||||
|
||||
|
||||
# Test timeouts. This test should take 2*2 seconds.
|
||||
# Test timeouts. Each of these runs should take 2*2 seconds.
|
||||
$genltl --or-g=1..2 |
|
||||
run 0 $ltldo -t 'sleep 10; echo %f' -T1 -t 'sleep 10; echo %f' \
|
||||
>output 2>stderr
|
||||
test -z "`cat output`"
|
||||
test 4 = `grep -c warning: stderr`
|
||||
|
||||
genltl --or-g=1..2 |
|
||||
run 0 ltldo -t 'sleep 10; echo %f' -T1 -t 'sleep 10; echo %f' \
|
||||
--fail-on-timeout --error=warn >output 2>stderr
|
||||
test -z "`cat output`"
|
||||
test 4 = `grep -c error: stderr`
|
||||
grep -q 'aborting here' stderr && exit 1
|
||||
|
||||
genltl --or-g=1..2 |
|
||||
run 2 ltldo -t 'sleep 10; echo %f' -T1 -t 'sleep 10; echo %f' \
|
||||
--fail-on-timeout >output 2>stderr
|
||||
test -z "`cat output`"
|
||||
test 1 = `grep -c error: stderr`
|
||||
grep -q 'aborting here' stderr
|
||||
|
||||
test "`echo 1,a,3,4 | ltldo -F-/2 ltl2tgba --stats='%<,%s,%>'`" = '1,2,3,4'
|
||||
|
||||
$genltl --and-gf=1..3 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue