Last change
on this file 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:
1.1 KB
|
Line | |
---|
1 | # Copyright (C) 2001, 2006, 2009-2021 Free Software Foundation, Inc.
|
---|
2 | #
|
---|
3 | # Copying and distribution of this file, with or without modification,
|
---|
4 | # are permitted in any medium without royalty provided the copyright
|
---|
5 | # notice and this notice are preserved.
|
---|
6 |
|
---|
7 | BEGIN {
|
---|
8 | FS="@";
|
---|
9 | n = 0;
|
---|
10 | printf ("# Generated Spencer ERE Test\n");
|
---|
11 | printf ("failures=0\n");
|
---|
12 | }
|
---|
13 |
|
---|
14 | $0 ~ /^#/ { next; }
|
---|
15 |
|
---|
16 | NF == 3 {
|
---|
17 | # printf ("status=$(echo '%s' | { grep -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; })\n",$3, $2);
|
---|
18 | printf ("status=$(echo '%s' | { grep -E -e '%s' > /dev/null 2>&1; echo $?; })\n",$3, $2);
|
---|
19 | printf ("if test $status -ne %s ; then\n", $1);
|
---|
20 | printf ("\techo Spencer ere test \\#%d failed\n", ++n);
|
---|
21 | printf ("\tfailures=1\n");
|
---|
22 | printf ("fi\n");
|
---|
23 | }
|
---|
24 |
|
---|
25 | NF == 4 {
|
---|
26 | # don't alarm the user for now
|
---|
27 | # printf ("echo '%s'|grep -E -e '%s' > /dev/null 2>&1\n",$3, $2);
|
---|
28 | # printf ("if test $? -ne %s ; then\n", $1);
|
---|
29 | # printf ("\techo Expected non conformance \\#%d ... continuing\n", ++n);
|
---|
30 | # printf ("fi\n");
|
---|
31 | }
|
---|
32 |
|
---|
33 | NF == 5 {
|
---|
34 | # don't alarm the user for now
|
---|
35 | next;
|
---|
36 | }
|
---|
37 |
|
---|
38 | END { printf ("exit $failures\n"); }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.