From 78d52a7c0e1eef84a61bdb847d6aa83b6dcdccb2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 15 Apr 2017 19:44:09 -0400 Subject: Implement -exec/-execdir ... + --- tests.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests.sh') 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 '-{}-' ';' } -- cgit v1.2.3