diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-11-01 21:46:50 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-11-01 21:46:50 -0400 |
commit | 1358b69c22ac9f675f6a4d0c0d796e8dae7823fd (patch) | |
tree | 5f330123b28a9565e1ed1d01824f84542187ca6c /tests.sh | |
parent | 3f05616d94eedc9429bafdd28075ba911bf4de69 (diff) | |
download | bfs-1358b69c22ac9f675f6a4d0c0d796e8dae7823fd.tar.xz |
tests: Add testcases for -prune
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -233,6 +233,10 @@ posix_tests=( test_perm_leading_plus_symbolic_minus test_permcopy + test_prune + test_prune_or_print + test_not_prune + test_size test_size_plus test_size_bytes @@ -1315,6 +1319,18 @@ function test_permcopy() { bfs_diff perms -perm u+rw,g+u-w,o=g } +function test_prune() { + bfs_diff basic -name foo -prune +} + +function test_prune_or_print() { + bfs_diff basic -name foo -prune -o -print +} + +function test_not_prune() { + bfs_diff basic \! \( -name foo -prune \) +} + function test_ok_stdin() { # -ok should *not* close stdin # See https://savannah.gnu.org/bugs/?24561 |