Initial checkin of grep-not script
authorChris Lattner <sabre@nondot.org>
Sat, 28 Jun 2003 22:28:31 +0000 (22:28 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 28 Jun 2003 22:28:31 +0000 (22:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6951 91177308-0d34-0410-b5e6-96231b3b80d8

test/Scripts/grep-not [new file with mode: 0755]

diff --git a/test/Scripts/grep-not b/test/Scripts/grep-not
new file mode 100755 (executable)
index 0000000..7fe6702
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# Program: grep-not
+#
+# Synopsis: Search the input to the program for a regular expression, working
+#           just like grep.  The only difference is that we return success if
+#           the pattern was not found, and failure if it was.  This is useful
+#           for TestRunner tests which want to make sure something DOES NOT
+#           occur in the output of a command.
+#
+# Syntax:   The same as grep
+
+if grep $@
+then exit 1
+else exit 0
+fi
+    
+
+