blob: e7f2fc74f8fb0e110fb36bdc5783690068cc6833 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#! /bin/sh
# Regression test for GNU grep.
#
# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc.
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
: ${GREP=../src/grep}
# Test that grep was compiled with HAVE_LIBPCRE. Otherwise, pass.
echo . | ${GREP} -P . >/dev/null 2>&1 || exit 0
fs=0
ft=
# See CVS revision 1.32 of "src/search.c".
echo | { ${GREP} -P '\s*$'; } > /dev/null 2>&1 || { ft="$ft 1"; fs=1; }
test "x$ft" != x && echo "Failed PCRE tests:$ft"
exit $fs
|