aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel K. Levy <alliedenvy@gmail.com>2015-09-14 16:16:36 -0500
committerRob Landley <rob@landley.net>2015-09-14 16:16:36 -0500
commit59cd560200942a063c217e327fc7941ffb70abe9 (patch)
tree6b16e7b494eeb72c2bf01be0135f0787804d320b /tests
parentedae0b07db841e3bf8449d591971f04c9957ecbc (diff)
downloadtoybox-59cd560200942a063c217e327fc7941ffb70abe9.tar.gz
Add find tests.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/find.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/find.test b/tests/find.test
index 65bbb501..4e856f42 100755
--- a/tests/find.test
+++ b/tests/find.test
@@ -43,4 +43,18 @@ testing "find -print -o -print" \
# find -type f -user nobody -exec : \;
# find -type f -user nobody -exec : -exec : \;
+# Testing previous failures
+
+testing "find -type f -user -exec" \
+ "find dir -type f -user $USER -exec ls {} \\;" "dir/file\n" "" ""
+testing "find -type l -newer -exec" \
+ "find dir -type l -newer dir/file -exec ls {} \\;" "dir/link\n" "" ""
+testing "find unterminated -exec {}" \
+ "find dir -type f -exec ls {}" "" "" ""
+
+# Still fails
+
+testing "find -exec {} +" \
+ "find dir -type f -exec ls {} +" "dir/file\n" "" ""
+
rm -rf dir