Initial checkin of grep-not script
[oota-llvm.git] / test / Scripts / grep-not
1 #!/bin/sh
2 #
3 # Program: grep-not
4 #
5 # Synopsis: Search the input to the program for a regular expression, working
6 #           just like grep.  The only difference is that we return success if
7 #           the pattern was not found, and failure if it was.  This is useful
8 #           for TestRunner tests which want to make sure something DOES NOT
9 #           occur in the output of a command.
10 #
11 # Syntax:   The same as grep
12
13 if grep $@
14 then exit 1
15 else exit 0
16 fi
17     
18
19