From 59cd560200942a063c217e327fc7941ffb70abe9 Mon Sep 17 00:00:00 2001 From: "Daniel K. Levy" Date: Mon, 14 Sep 2015 16:16:36 -0500 Subject: Add find tests. --- tests/find.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/find.test') 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 -- cgit v1.2.3