summaryrefslogtreecommitdiff
path: root/tests/ere.awk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-09-03 10:05:20 +0200
committerJim Meyering <meyering@redhat.com>2010-09-03 10:13:33 +0200
commite17b055bbca256b1f84b3214f0cff23a27d1fe37 (patch)
treef6a04446f590e58498fc015d48a772b5afeb0951 /tests/ere.awk
parente0d06f41706b929bfe7f6866e379c122b6fbc997 (diff)
downloadgrep-e17b055bbca256b1f84b3214f0cff23a27d1fe37.tar.gz
tests: convert bre.sh to use init.sh
* tests/bre.sh: Use init.sh. Use Exit, not exit. Use "$abs_top_srcdir/tests/", not "$srcdir/" to specify inputs. Source generated bre.script, rather than invoking $SHELL. * tests/ere.sh: Likewise. * tests/bre.awk: Use grep, not ${GREP}. * tests/ere.awk: Likewise. * tests/Makefile.am (CLEANFILES): Remove bre.script and ere.script.
Diffstat (limited to 'tests/ere.awk')
-rw-r--r--tests/ere.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ere.awk b/tests/ere.awk
index 90898a0b..9bbd5883 100644
--- a/tests/ere.awk
+++ b/tests/ere.awk
@@ -14,8 +14,8 @@ BEGIN {
$0 ~ /^#/ { next; }
NF == 3 {
-# printf ("status=$(echo '%s' | { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; })\n",$3, $2);
- printf ("status=$(echo '%s' | { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; })\n",$3, $2);
+# printf ("status=$(echo '%s' | { grep -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; })\n",$3, $2);
+ printf ("status=$(echo '%s' | { grep -E -e '%s' > /dev/null 2>&1; echo $?; })\n",$3, $2);
printf ("if test $status -ne %s ; then\n", $1);
printf ("\techo Spencer ere test \\#%d failed\n", ++n);
printf ("\tfailures=1\n");
@@ -24,7 +24,7 @@ NF == 3 {
NF == 4 {
# don't alarm the user for now
-# printf ("echo '%s'|${GREP} -E -e '%s' > /dev/null 2>&1\n",$3, $2);
+# printf ("echo '%s'|grep -E -e '%s' > /dev/null 2>&1\n",$3, $2);
# printf ("if test $? -ne %s ; then\n", $1);
# printf ("\techo Expected non conformance \\#%d ... continuing\n", ++n);
# printf ("fi\n");