]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - gnu/usr.bin/grep/tests/khadafy.sh
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / gnu / usr.bin / grep / tests / khadafy.sh
1 #!/bin/sh
2 # Regression test for GNU grep.
3
4 : ${srcdir=.}
5 : ${GREP=../src/grep}
6
7 failures=0
8
9 # The Khadafy test is brought to you by Scott Anderson . . .
10
11 ${GREP} -E -f $srcdir/khadafy.regexp $srcdir/khadafy.lines > khadafy.out
12 if cmp $srcdir/khadafy.lines khadafy.out
13 then
14         :
15 else
16         echo Khadafy test failed -- output left on khadafy.out
17         failures=1
18 fi
19
20 exit $failures