aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGilad Arnold <garnold@google.com>2015-11-13 13:16:14 -0800
committerRob Landley <rob@landley.net>2015-12-06 13:43:09 -0600
commitf49f291939afae44bda438bf2509c7ba20a2a78f (patch)
tree77b5f213df50d6b78c84a97fe5ee114583153443 /tests
parent9e563e1c6c053ad848a15c30efbbe8a079154fb4 (diff)
downloadtoybox-f49f291939afae44bda438bf2509c7ba20a2a78f.tar.gz
Enable matching any perm bits.
Includes tests for the new feature, and a failure case for the minimal perms test as well. Also some typo fixing / massaging the help text so it fits in 80 columns.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/find.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/find.test b/tests/find.test
index 2f17bf76..71a35067 100755
--- a/tests/find.test
+++ b/tests/find.test
@@ -58,8 +58,14 @@ testing "find -perm (exact success)" \
"find perm -type f -perm 0444" "perm/all-read-only\n" "" ""
testing "find -perm (exact failure)" \
"find perm -type f -perm 0400" "" "" ""
-testing "find -perm (at least)" \
+testing "find -perm (min success)" \
"find perm -type f -perm -0400" "perm/all-read-only\n" "" ""
+testing "find -perm (min failure)" \
+ "find perm -type f -perm -0600" "" "" ""
+testing "find -perm (any success)" \
+ "find perm -type f -perm -0444" "perm/all-read-only\n" "" ""
+testing "find -perm (any failure)" \
+ "find perm -type f -perm -0222" "" "" ""
# Still fails