|
Last change
on this file since 2595 was 2595, checked in by bird, 12 years ago |
|
gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)
|
|
File size:
783 bytes
|
| Line | |
|---|
| 1 | # Copyright (C) 1988 Henry Spencer.
|
|---|
| 2 | # Copyright (C) 2009-2012 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 |
|
|---|
| 8 | BEGIN {
|
|---|
| 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 |
|
|---|
| 22 | END { printf ("exit $failures\n"); }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.