|
Last change
on this file since 3603 was 3529, checked in by bird, 4 years ago |
|
Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.
|
|
File size:
1.0 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 BRE Test\n");
|
|---|
| 11 | printf ("failures=0\n");
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | $0 ~ /^#/ { next; }
|
|---|
| 15 |
|
|---|
| 16 | NF == 3 {
|
|---|
| 17 | # printf ("status=$(echo '%s' | { grep -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; })\n",$3, $2);
|
|---|
| 18 | printf ("status=$(echo '%s' | { grep -e '%s' > /dev/null 2>&1; echo $? ; })\n",$3, $2);
|
|---|
| 19 | printf ("if test $status -ne %s ; then\n", $1);
|
|---|
| 20 | printf ("\techo Spencer bre test \\#%d failed\n", ++n);
|
|---|
| 21 | printf ("\tfailures=1\n");
|
|---|
| 22 | printf ("fi\n");
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | NF == 4 {
|
|---|
| 26 | #don't alarm users
|
|---|
| 27 | # printf ("echo '%s' | grep -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 | END { printf ("exit $failures\n"); }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.