diff options
Diffstat (limited to 'tests/tests.sh')
-rwxr-xr-x | tests/tests.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 } |