VirtualBox

source: kBuild/vendor/grep/current/tests/spencer1.awk@ 3630

Last change on this file since 3630 was 3529, checked in by bird, 3 years ago

Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.

File size: 783 bytes
Line 
1# Copyright (C) 1988 Henry Spencer.
2# Copyright (C) 2009-2021 Free Software Foundation, Inc.
3#
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.
7
8BEGIN {
9 FS = "@";
10 printf ("failures=0\n");
11}
12
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");
20}
21
22END { printf ("exit $failures\n"); }
Note: See TracBrowser for help on using the repository browser.

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