File: khadafy.sh

package info (click to toggle)
grep 2.2-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,376 kB
  • ctags: 1,634
  • sloc: ansic: 11,842; sh: 774; makefile: 233; sed: 148; awk: 9
file content (20 lines) | stat: -rwxr-xr-x 368 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
# Regression test for GNU grep.

: ${srcdir=.}
: ${GREP=../src/grep}

failures=0

# The Khadafy test is brought to you by Scott Anderson . . .

${GREP} -E -f $srcdir/khadafy.regexp $srcdir/khadafy.lines > khadafy.out
if cmp $srcdir/khadafy.lines khadafy.out
then
	:
else
	echo Khadafy test failed -- output left on khadafy.out
	failures=1
fi

exit $failure