fdisk: comment out unused function
[oweals/busybox.git] / testsuite / grep.tests
index ef0de482b5e1f0165fc9ae39f961afc3dd62f033..bb682dba4cc001fb0fd3aa4c5136e286b020f8f7 100755 (executable)
@@ -1,6 +1,5 @@
 #!/bin/sh
 
-# grep tests.
 # Copyright 2005 by Rob Landley <rob@landley.net>
 # Licensed under GPL v2, see file LICENSE for details.
 
@@ -29,9 +28,10 @@ testing "grep input (specify file)" "grep two input" "two\n" \
 
 testing "grep (no newline at EOL)" "grep bug" "bug" "bug" ""
 
-# Note that this assumes actual is empty.
-testing "grep input actual (two files)" "grep two input actual 2> /dev/null" \
+>empty
+testing "grep two files" "grep two input empty 2>/dev/null" \
        "input:two\n" "one\ntwo\nthree\nthree\nthree\n" ""
+rm empty
 
 testing "grep - infile (specify stdin and file)" "grep two - input" \
        "(standard input):two\ninput:two\n" "one\ntwo\nthree\n" \
@@ -73,6 +73,8 @@ testing "grep matches NUL" "grep . input > /dev/null 2>&1 ; echo \$?" \
 # -e regex
 testing "grep handles multiple regexps" "grep -e one -e two input ; echo \$?" \
        "one\ntwo\n0\n" "one\ntwo\n" ""
+testing "grep -F handles multiple expessions" "grep -F -e one -e two input ; echo \$?" \
+       "one\ntwo\n0\n" "one\ntwo\n" ""
 
 optional FEATURE_GREP_EGREP_ALIAS
 testing "grep -E supports extended regexps" "grep -E fo+" "foo\n" "" \