VirtualBox

source: kBuild/vendor/grep/2.12/tests/khadafy@ 2595

Last change on this file since 2595 was 2595, checked in by bird, 12 years ago

gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)

File size: 696 bytes
Line 
1#! /bin/sh
2# Regression test for GNU grep.
3#
4# Copyright (C) 2001, 2006, 2009-2012 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
12fail=0
13
14# The Khadafy test is brought to you by Scott Anderson . . .
15
16grep -E -f $abs_top_srcdir/tests/khadafy.regexp \
17 $abs_top_srcdir/tests/khadafy.lines > khadafy.out || fail=1
18if cmp $abs_top_srcdir/tests/khadafy.lines khadafy.out
19then
20 :
21else
22 echo Khadafy test failed -- output left on khadafy.out
23 fail=1
24fi
25
26Exit $fail
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette