From 29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:21:29 +0200 Subject: Adding upstream version 1:0.1.9998svn3589+dfsg. Signed-off-by: Daniel Baumann --- src/grep/tests/fmbtest | 126 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100755 src/grep/tests/fmbtest (limited to 'src/grep/tests/fmbtest') diff --git a/src/grep/tests/fmbtest b/src/grep/tests/fmbtest new file mode 100755 index 0000000..5fada35 --- /dev/null +++ b/src/grep/tests/fmbtest @@ -0,0 +1,126 @@ +#! /bin/sh +# Copyright (C) 2001, 2006, 2009-2021 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. + +. "${srcdir=.}/init.sh"; path_prepend_ ../src + +cz=cs_CZ.UTF-8 + +# If cs_CZ.UTF-8 locale doesn't work, skip this test. +LC_ALL=$cz locale -k LC_CTYPE 2>/dev/null | grep -q charmap.*UTF-8 \ + || skip_ this system lacks the $cz locale + +# If matching is done in single-byte mode, skip this test too +printf 'é\n' | LC_ALL=$cz grep -Eq '^[é]{2}$' +case $? in + 0) skip_ "built without multi-byte support";; + 1) ;; + *) fail_ "unexpected exit status: $?";; +esac + +failures=0 + +cat > csinput < cspatfile <