summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-11-01 21:46:50 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-11-01 21:46:50 -0400
commit1358b69c22ac9f675f6a4d0c0d796e8dae7823fd (patch)
tree5f330123b28a9565e1ed1d01824f84542187ca6c /tests
parent3f05616d94eedc9429bafdd28075ba911bf4de69 (diff)
downloadbfs-1358b69c22ac9f675f6a4d0c0d796e8dae7823fd.tar.xz
tests: Add testcases for -prune
Diffstat (limited to 'tests')
-rw-r--r--tests/test_not_prune.out13
-rw-r--r--tests/test_prune.out3
-rw-r--r--tests/test_prune_or_print.out13
3 files changed, 29 insertions, 0 deletions
diff --git a/tests/test_not_prune.out b/tests/test_not_prune.out
new file mode 100644
index 0000000..40e2ea0
--- /dev/null
+++ b/tests/test_not_prune.out
@@ -0,0 +1,13 @@
+basic
+basic/a
+basic/b
+basic/c
+basic/e
+basic/g
+basic/i
+basic/j
+basic/k
+basic/l
+basic/c/d
+basic/e/f
+basic/g/h
diff --git a/tests/test_prune.out b/tests/test_prune.out
new file mode 100644
index 0000000..e9d47b1
--- /dev/null
+++ b/tests/test_prune.out
@@ -0,0 +1,3 @@
+basic/j/foo
+basic/k/foo
+basic/l/foo
diff --git a/tests/test_prune_or_print.out b/tests/test_prune_or_print.out
new file mode 100644
index 0000000..40e2ea0
--- /dev/null
+++ b/tests/test_prune_or_print.out
@@ -0,0 +1,13 @@
+basic
+basic/a
+basic/b
+basic/c
+basic/e
+basic/g
+basic/i
+basic/j
+basic/k
+basic/l
+basic/c/d
+basic/e/f
+basic/g/h