From 16c9105ffc1bb0adf33e5daede3fd0e67c63624a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 29 May 2022 15:18:51 -0400 Subject: tests: Add tests for -warn/-nowarn --- tests/tests.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests') diff --git a/tests/tests.sh b/tests/tests.sh index e8eb82a..04a6e0e 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -858,6 +858,9 @@ bfs_tests=( test_version + test_warn + test_nowarn + test_xtype_multi # Optimizer tests @@ -3245,6 +3248,16 @@ function test_version() { invoke_bfs -version >/dev/null } +function test_warn() { + local stderr=$(invoke_bfs basic -warn -depth -prune 2>&1 >/dev/null) + [ -n "$stderr" ] +} + +function test_nowarn() { + local stderr=$(invoke_bfs basic -nowarn -depth -prune 2>&1 >/dev/null) + [ -z "$stderr" ] +} + function test_typo() { invoke_bfs -dikkiq 2>&1 | grep follow >/dev/null } -- cgit v1.2.3