diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-04-21 17:03:29 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-04-21 17:03:29 -0400 |
commit | cdb96f1a6ab4b8bbcca35c48cd8c232e50c04390 (patch) | |
tree | 08814c07171ce9f643d321ef03974845c9219f44 /tests.sh | |
parent | ec0cffd71a257cef03475ff5d189b2057db4426b (diff) | |
download | bfs-cdb96f1a6ab4b8bbcca35c48cd8c232e50c04390.tar.xz |
parse: Allow things like -uid ++10
GNU find does too.
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -428,7 +428,9 @@ gnu_tests=( test_gid test_gid_plus + test_gid_plus_plus test_gid_minus + test_gid_minus_plus test_ignore_readdir_race test_ignore_readdir_race_root @@ -525,7 +527,9 @@ gnu_tests=( test_uid test_uid_plus + test_uid_plus_plus test_uid_minus + test_uid_minus_plus test_writable @@ -1018,10 +1022,18 @@ function test_gid_plus() { bfs_diff basic -gid +0 } +function test_gid_plus_plus() { + bfs_diff basic -gid +0 +} + function test_gid_minus() { bfs_diff basic -gid "-$(($(id -g) + 1))" } +function test_gid_minus_plus() { + bfs_diff basic -gid "-+$(($(id -g) + 1))" +} + function test_uid() { bfs_diff basic -uid "$(id -u)" } @@ -1030,10 +1042,18 @@ function test_uid_plus() { bfs_diff basic -uid +0 } +function test_uid_plus_plus() { + bfs_diff basic -uid ++0 +} + function test_uid_minus() { bfs_diff basic -uid "-$(($(id -u) + 1))" } +function test_uid_minus_plus() { + bfs_diff basic -uid "-+$(($(id -u) + 1))" +} + function test_newer() { bfs_diff times -newer times/a } |