Debian Codegraph @

tests/khadafy

raw
1 #! /bin/sh
2 # Regression test for GNU grep.
3 #
4 # Copyright (C) 2001, 2006, 2009-2025 Free Software Foundation, Inc.
5 #
6 # Copying and distribution of this file, with or without modification,
7 # are permitted in any medium without royalty provided the copyright
8 # notice and this notice are preserved.
9
10 . "${srcdir=.}/init.sh"; path_prepend_ ../src
11
12 fail=0
13
14 # The Khadafy test is brought to you by Scott Anderson . . .
15
16 grep -E -f $abs_top_srcdir/tests/khadafy.regexp \
17 $abs_top_srcdir/tests/khadafy.lines > khadafy.out || fail=1
18 if cmp $abs_top_srcdir/tests/khadafy.lines khadafy.out
19 then
20 :
21 else
22 echo Khadafy test failed -- output left on khadafy.out
23 fail=1
24 fi
25
26 Exit $fail