summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-09-04 13:16:06 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-09-04 13:16:06 -0400
commite05826cc75949203ca2a9135cb52af8fa1481c83 (patch)
tree5ceb2955cf6d99b61d3c5a1284aa09c00e42f314 /tests.sh
parent84064a0bccf8cbabd54b76afee890df880c5d581 (diff)
downloadbfs-e05826cc75949203ca2a9135cb52af8fa1481c83.tar.xz
tests: Make test_deep pass with other find implementations
And move test_deep_strict to the bfs-specific tests, since it's not likely to ever pass for other implementations.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests.sh b/tests.sh
index 911bfcd..5729bb7 100755
--- a/tests.sh
+++ b/tests.sh
@@ -121,7 +121,7 @@ function make_deep() {
name="${name}${name}${name}${name}"
name="${name:0:255}"
- for i in {1..8}; do
+ for i in {0..9} A B C D E F; do
(
mkdir "$1/$i"
cd "$1/$i"
@@ -208,7 +208,6 @@ posix_tests=(
test_a
test_o
test_deep
- test_deep_strict
)
bsd_tests=(
@@ -387,6 +386,7 @@ bfs_tests=(
test_expr_flag_path
test_expr_path_flag
test_colors
+ test_deep_strict
)
BSD=yes
@@ -1311,17 +1311,16 @@ function test_colors() {
function test_deep() {
closefrom 4
- ulimit -n 8
- bfs_diff deep -mindepth 18
+ ulimit -n 16
+ bfs_diff deep -mindepth 18 -exec /bin/bash -c 'echo "${1:0:6}/.../${1##*/} (${#1})"' /bin/bash '{}' \;
}
function test_deep_strict() {
- # Low ulimit would interfere with the dup()'d stdout for verbose logging
closefrom 4
# Not even enough fds to keep the root open
ulimit -n 6
- bfs_diff deep -mindepth 18
+ bfs_diff deep -mindepth 18 -exec /bin/bash -c 'echo "${1:0:6}/.../${1##*/} (${#1})"' /bin/bash '{}' \;
}
function test_exit() {