Debian Codegraph @

tests/version-pcre

raw
1 #! /bin/sh
2 # Test for presence of pcre version number in --version output.
3 #
4 # Copyright (C) 2023-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 grep -q '^#define HAVE_LIBPCRE 1' "$CONFIG_HEADER" \
13 || skip_ 'built without PCRE support'
14
15 grep --version | grep -qP '^grep -P uses PCRE2 [\d.]+'