source: trunk/essentials/sys-apps/grep/tests/khadafy.sh

Last change on this file was 2557, checked in by bird, 19 years ago

grep 2.5.1a

File size: 368 bytes
Line 
1#!/bin/sh
2# Regression test for GNU grep.
3
4: ${srcdir=.}
5: ${GREP=../src/grep}
6
7failures=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
12if cmp $srcdir/khadafy.lines khadafy.out
13then
14 :
15else
16 echo Khadafy test failed -- output left on khadafy.out
17 failures=1
18fi
19
20exit $failures
Note: See TracBrowser for help on using the repository browser.