aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-02-13 09:02:24 -0800
committerRob Landley <rob@landley.net>2019-02-13 13:50:40 -0600
commitfbedc9dd74aeb0331202f9e503316960e32fa879 (patch)
tree4fdecbdbdc597ddb8278eec5cccf172133188790 /tests
parent318e7009e92ede1dfcc49ff1249396fd43757619 (diff)
downloadtoybox-fbedc9dd74aeb0331202f9e503316960e32fa879.tar.gz
find: fix -path/-ipath and add -wholename/-iwholename synonyms.
Plus new tests.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/find.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/find.test b/tests/find.test
index 25c24400..7f2e6921 100755
--- a/tests/find.test
+++ b/tests/find.test
@@ -94,4 +94,13 @@ testing "-iname (no arguments)" \
testing "" "find dir \( -iname file -o -iname missing \) -exec echo {} \;" \
"dir/file\n" "" ""
+testing "-path glob" \
+ "find dir -path 'dir*e'" "dir/file\n" "" ""
+testing "-wholename glob" \
+ "find dir -wholename 'dir*e'" "dir/file\n" "" ""
+testing "-ipath glob" \
+ "find dir -ipath 'dIr*E'" "dir/file\n" "" ""
+testing "-iwholename glob" \
+ "find dir -iwholename 'dIr*E'" "dir/file\n" "" ""
+
rm -rf dir