summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-04-15 19:44:09 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-04-15 19:44:09 -0400
commit78d52a7c0e1eef84a61bdb847d6aa83b6dcdccb2 (patch)
treedd3060c6eed2c593160f87612b52a5ce19dd9a9c /tests.sh
parent5212c26ae12f01ec5fd66f8a3fcb41fb03c43e98 (diff)
downloadbfs-78d52a7c0e1eef84a61bdb847d6aa83b6dcdccb2.tar.xz
Implement -exec/-execdir ... +
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 ca27ff8..0c83beb 100755
--- a/tests.sh
+++ b/tests.sh
@@ -142,6 +142,7 @@ posix_tests=(
test_size_plus
test_size_bytes
test_exec
+ test_exec_plus
test_flag_comma
test_perm_222
test_perm_222_minus
@@ -303,6 +304,7 @@ bfs_tests=(
test_perm_symbolic_missing_action
test_perm_leading_plus_symbolic
test_perm_octal_plus
+ test_execdir_plus
test_hidden
test_nohidden
test_path_flag_expr
@@ -648,6 +650,10 @@ function test_exec() {
bfs_diff basic -exec echo '{}' ';'
}
+function test_exec_plus() {
+ bfs_diff basic -exec "$TESTS/sort-args.sh" '{}' +
+}
+
function test_exec_substring() {
bfs_diff basic -exec echo '-{}-' ';'
}
@@ -656,6 +662,10 @@ function test_execdir() {
bfs_diff basic -execdir echo '{}' ';'
}
+function test_execdir_plus() {
+ bfs_diff basic -execdir "$TESTS/sort-args.sh" '{}' +
+}
+
function test_execdir_substring() {
bfs_diff basic -execdir echo '-{}-' ';'
}