diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-05-29 15:18:51 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-05-29 15:18:51 -0400 |
commit | 16c9105ffc1bb0adf33e5daede3fd0e67c63624a (patch) | |
tree | 1b1ad19e70314b5fd24de050d40e883aae568cd3 /tests/tests.sh | |
parent | 976945aa0451cbf24f9579900234df54af50c573 (diff) | |
download | bfs-16c9105ffc1bb0adf33e5daede3fd0e67c63624a.tar.xz |
tests: Add tests for -warn/-nowarn
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 } |