diff options
author | Daniel K. Levy <alliedenvy@gmail.com> | 2015-09-14 16:16:36 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-09-14 16:16:36 -0500 |
commit | 59cd560200942a063c217e327fc7941ffb70abe9 (patch) | |
tree | 6b16e7b494eeb72c2bf01be0135f0787804d320b | |
parent | edae0b07db841e3bf8449d591971f04c9957ecbc (diff) | |
download | toybox-59cd560200942a063c217e327fc7941ffb70abe9.tar.gz |
Add find tests.
-rwxr-xr-x | tests/find.test | 14 |
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 |