summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-07 12:42:03 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-07 12:42:03 -0500
commit4010140cb748cc4f7f57b0a3d514485796c665ce (patch)
treec359dcadff53d3e74c9bb1fe9e241007a134924f
parent7e0467e79d9d4e561adc6c844e8ef481d8a6a7cc (diff)
downloadbfs-4010140cb748cc4f7f57b0a3d514485796c665ce.tar.xz
tests/bfs/D_opt: New test for more -D opt coverage
-rw-r--r--tests/bfs/D_opt.out18
-rw-r--r--tests/bfs/D_opt.sh1
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/bfs/D_opt.out b/tests/bfs/D_opt.out
new file mode 100644
index 0000000..3b461cf
--- /dev/null
+++ b/tests/bfs/D_opt.out
@@ -0,0 +1,18 @@
+basic/a
+basic/b
+basic/c
+basic/c/d
+basic/e
+basic/e/f
+basic/g
+basic/g/h
+basic/i
+basic/j
+basic/j/foo
+basic/k
+basic/k/foo
+basic/k/foo/bar
+basic/l
+basic/l/foo
+basic/l/foo/bar
+basic/l/foo/bar/baz
diff --git a/tests/bfs/D_opt.sh b/tests/bfs/D_opt.sh
new file mode 100644
index 0000000..d95cf86
--- /dev/null
+++ b/tests/bfs/D_opt.sh
@@ -0,0 +1 @@
+bfs_diff -D opt -nohidden -not \( -type b -o -type c \) -links -5 -links -10 -not -hidden basic