build: update gnulib to latest; and update bootstrap
[grep.git] / tests / spencer1.awk
blob35bebe28df820fcb1313d5cf16f1c9495dde86e1
1 # Copyright (C) 1988 Henry Spencer.
2 # Copyright (C) 2009-2025 Free Software Foundation, Inc.
4 # Copying and distribution of this file, with or without modification,
5 # are permitted in any medium without royalty provided the copyright
6 # notice and this notice are preserved.
8 BEGIN {
9 FS = "@";
10 printf ("failures=0\n");
13 $0 !~ /^#/ && NF == 3 {
14 # printf ("status=$(echo '%s'| { grep -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; })\n",$3, $2);
15 printf ("status=$(echo '%s'| { grep -E -e '%s' >/dev/null 2>&1 ; echo $?; })\n",$3, $2);
16 printf ("if test $status -ne %s ; then\n", $1);
17 printf ("\techo Spencer test \\#%d failed\n", ++n);
18 printf ("\tfailures=1\n");
19 printf ("fi\n");
22 END { printf ("exit $failures\n"); }