diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2015-09-26 12:54:18 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2015-09-26 12:54:18 -0400 |
commit | d0243a72d56326af2c5ff7b7b3823dbe57b3bd4c (patch) | |
tree | 10a9f4223ca594252392b8bf46b80e031f9dbb86 /tests.sh | |
parent | 4bedd5a6f7b12e0923dd6fa180dcaad7e1f75fc2 (diff) | |
download | bfs-d0243a72d56326af2c5ff7b7b3823dbe57b3bd4c.tar.xz |
Optimize -maxdepth in -depth mode.
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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" |