From 6793a25de88d79fb1c13fae5db2ccbb73892d25a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 28 Jun 2003 22:28:31 +0000 Subject: Initial checkin of grep-not script llvm-svn: 6951 --- llvm/test/Scripts/grep-not | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 llvm/test/Scripts/grep-not (limited to 'llvm/test') 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 + + + -- cgit v1.2.3