summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-04-16 11:00:49 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-04-16 11:00:49 -0400
commit455b724279c1cb4aefc0d2f81b65641990dd7689 (patch)
treeff98ea34926d73bb734592d78d717a093e403c8e /tests.sh
parent9ffb3ebdaa5ad4c5cdcbd7c8682521de995ea62c (diff)
downloadbfs-455b724279c1cb4aefc0d2f81b65641990dd7689.tar.xz
tests: Add tests for bfs extensions to -exec ... +
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index 0c83beb..db223ab 100755
--- a/tests.sh
+++ b/tests.sh
@@ -304,7 +304,9 @@ bfs_tests=(
test_perm_symbolic_missing_action
test_perm_leading_plus_symbolic
test_perm_octal_plus
+ test_exec_plus_substring
test_execdir_plus
+ test_execdir_plus_substring
test_hidden
test_nohidden
test_path_flag_expr
@@ -658,6 +660,10 @@ function test_exec_substring() {
bfs_diff basic -exec echo '-{}-' ';'
}
+function test_exec_plus_substring() {
+ bfs_diff basic -exec "$TESTS/sort-args.sh" a '-{}-' z +
+}
+
function test_execdir() {
bfs_diff basic -execdir echo '{}' ';'
}
@@ -670,6 +676,10 @@ function test_execdir_substring() {
bfs_diff basic -execdir echo '-{}-' ';'
}
+function test_execdir_plus_substring() {
+ bfs_diff basic -execdir "$TESTS/sort-args.sh" a '-{}-' z +
+}
+
function test_execdir_pwd() {
local TMP_REAL="$(cd "$TMP" && pwd)"
local OFFSET="$((${#TMP_REAL} + 2))"