diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-08-19 12:44:32 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-08-19 12:44:32 -0400 |
commit | 46c3a6d6cf5cbcee6add3350b0969578ef09a06b (patch) | |
tree | b75df2fa3f2de15202e6903578fb722981ddf89d /tests/bfs | |
parent | 9cf398b74f51b4d7eb6838385b889fa013b6af76 (diff) | |
download | bfs-46c3a6d6cf5cbcee6add3350b0969578ef09a06b.tar.xz |
tests/bfs: Add -noerror tests
Diffstat (limited to 'tests/bfs')
-rw-r--r-- | tests/bfs/L_noerror.out | 11 | ||||
-rw-r--r-- | tests/bfs/L_noerror.sh | 1 | ||||
-rw-r--r-- | tests/bfs/noerror.out | 4 | ||||
-rw-r--r-- | tests/bfs/noerror.sh | 1 | ||||
-rw-r--r-- | tests/bfs/noerror_nowarn.sh | 2 | ||||
-rw-r--r-- | tests/bfs/noerror_warn.sh | 2 |
6 files changed, 21 insertions, 0 deletions
diff --git a/tests/bfs/L_noerror.out b/tests/bfs/L_noerror.out new file mode 100644 index 0000000..a514555 --- /dev/null +++ b/tests/bfs/L_noerror.out @@ -0,0 +1,11 @@ +loops +loops/broken +loops/deeply +loops/deeply/nested +loops/deeply/nested/dir +loops/file +loops/notdir +loops/skip +loops/skip/dir +loops/skip/loop +loops/symlink diff --git a/tests/bfs/L_noerror.sh b/tests/bfs/L_noerror.sh new file mode 100644 index 0000000..7db2a4d --- /dev/null +++ b/tests/bfs/L_noerror.sh @@ -0,0 +1 @@ +bfs_diff -L loops -noerror diff --git a/tests/bfs/noerror.out b/tests/bfs/noerror.out new file mode 100644 index 0000000..c4f8ce4 --- /dev/null +++ b/tests/bfs/noerror.out @@ -0,0 +1,4 @@ +inaccessible +inaccessible/dir +inaccessible/file +inaccessible/link diff --git a/tests/bfs/noerror.sh b/tests/bfs/noerror.sh new file mode 100644 index 0000000..e334f8f --- /dev/null +++ b/tests/bfs/noerror.sh @@ -0,0 +1 @@ +bfs_diff inaccessible -noerror diff --git a/tests/bfs/noerror_nowarn.sh b/tests/bfs/noerror_nowarn.sh new file mode 100644 index 0000000..26e7e68 --- /dev/null +++ b/tests/bfs/noerror_nowarn.sh @@ -0,0 +1,2 @@ +stderr=$(invoke_bfs inaccessible -noerror -nowarn 2>&1 >/dev/null) +[ -z "$stderr" ] diff --git a/tests/bfs/noerror_warn.sh b/tests/bfs/noerror_warn.sh new file mode 100644 index 0000000..ec85f4c --- /dev/null +++ b/tests/bfs/noerror_warn.sh @@ -0,0 +1,2 @@ +stderr=$(invoke_bfs inaccessible -noerror -warn 2>&1 >/dev/null) +[ -n "$stderr" ] |