summaryrefslogtreecommitdiffstats
path: root/llvm/test/Scripts
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-28 22:28:31 +0000
committerChris Lattner <sabre@nondot.org>2003-06-28 22:28:31 +0000
commit6793a25de88d79fb1c13fae5db2ccbb73892d25a (patch)
treec1ebd3a8c3182c523c10b826e96943ae5789e04c /llvm/test/Scripts
parent63e2794408348518bb6d0b305dfabb62ae341040 (diff)
downloadbcm5719-llvm-6793a25de88d79fb1c13fae5db2ccbb73892d25a.tar.gz
bcm5719-llvm-6793a25de88d79fb1c13fae5db2ccbb73892d25a.zip
Initial checkin of grep-not script
llvm-svn: 6951
Diffstat (limited to 'llvm/test/Scripts')
-rwxr-xr-xllvm/test/Scripts/grep-not19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/Scripts/grep-not b/llvm/test/Scripts/grep-not
new file mode 100755
index 00000000000..7fe67028cc0
--- /dev/null
+++ b/llvm/test/Scripts/grep-not
@@ -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
+
+
+
OpenPOWER on IntegriCloud