summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-09-26 12:54:18 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-09-26 12:54:18 -0400
commitd0243a72d56326af2c5ff7b7b3823dbe57b3bd4c (patch)
tree10a9f4223ca594252392b8bf46b80e031f9dbb86 /tests.sh
parent4bedd5a6f7b12e0923dd6fa180dcaad7e1f75fc2 (diff)
downloadbfs-d0243a72d56326af2c5ff7b7b3823dbe57b3bd4c.tar.xz
Optimize -maxdepth in -depth mode.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index f7eb428..65e439b 100755
--- a/tests.sh
+++ b/tests.sh
@@ -54,10 +54,20 @@ function test_0006() {
function test_0007() {
basic_structure "$1"
+ find_diff "$1" -mindepth 2 -depth
+}
+
+function test_0008() {
+ basic_structure "$1"
find_diff "$1" -maxdepth 1 -depth
}
-for i in {1..7}; do
+function test_0009() {
+ basic_structure "$1"
+ find_diff "$1" -maxdepth 2 -depth
+}
+
+for i in {1..9}; do
dir="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)"
test="test_$(printf '%04d' $i)"
"$test" "$dir"