[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, feature/improve-tests, updated. gawk-4.1
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, feature/improve-tests, updated. gawk-4.1.0-3064-g030a57e |
Date: |
Wed, 11 Apr 2018 07:09:14 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, feature/improve-tests has been updated
via 030a57e8ca5d52cee466f6b8174851cffe12b88d (commit)
from 92e59d54ea0e9da4de1c55004ea147eb6ef5d2d9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=030a57e8ca5d52cee466f6b8174851cffe12b88d
commit 030a57e8ca5d52cee466f6b8174851cffe12b88d
Author: Arnold D. Robbins <address@hidden>
Date: Wed Apr 11 14:08:52 2018 +0300
Improve consistency of hard coded tests w.r.t. to saving exit status.
diff --git a/test/ChangeLog b/test/ChangeLog
index fd40c8f..c46b423 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -4,6 +4,12 @@
* Makefile.am (NEED_LOCALE_C, NEED_LOCALE_EN, NEED_LOCALE_JP,
NEED_LOCALE_RU): New lists of such tests.
+ Unrelated:
+
+ * Makefile.am: Add printing exit status to results for many
+ tests that lacked it. This makes the tests more consistent
+ with each other and with the auto-generated tests.
+
2018-04-09 Arnold D. Robbins <address@hidden>
* Makefile.am (RUN_SHELL): List of tests that run a .sh file.
diff --git a/test/Makefile.am b/test/Makefile.am
index bc03363..0075536 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1550,13 +1550,13 @@ poundbang::
messages::
@echo $@
- @$(AWK) -f "$(srcdir)"/messages.awk >_out2 2>_out3
+ @$(AWK) -f "$(srcdir)"/messages.awk >_out2 2>_out3 || echo EXIT CODE:
$$? >> _$@
@-$(CMP) "$(srcdir)"/out1.ok _out1 && $(CMP) "$(srcdir)"/out2.ok _out2
&& $(CMP) "$(srcdir)"/out3.ok _out3 && rm -f _out1 _out2 _out3
argarray::
@echo $@
@cp "$(srcdir)"/argarray.in ./argarray.input
- @TEST=test echo just a test | $(AWK) -f "$(srcdir)"/argarray.awk
./argarray.input - >_$@
+ @TEST=test echo just a test | $(AWK) -f "$(srcdir)"/argarray.awk
./argarray.input - >_$@ || echo EXIT CODE: $$? >> _$@
@rm -f ./argarray.input
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
@@ -1571,52 +1571,52 @@ manyfiles::
@rm -rf junk
@mkdir junk
@$(AWK) 'BEGIN { for (i = 1; i <= 1030; i++) print i, i}' >_$@
- @$(AWK) -f "$(srcdir)"/manyfiles.awk _$@ _$@
+ @$(AWK) -f "$(srcdir)"/manyfiles.awk _$@ _$@ || echo EXIT CODE: $$? >>
_$@
@wc -l junk/* | $(AWK) '$$1 != 2' | wc -l | sed "s/ *//g" > _$@
@rm -rf junk
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
compare::
@echo $@
- @$(AWK) -f "$(srcdir)"/compare.awk 0 1 "$(srcdir)"/compare.in >_$@
+ @$(AWK) -f "$(srcdir)"/compare.awk 0 1 "$(srcdir)"/compare.in >_$@ ||
echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
inftest::
@echo $@
@echo This test is very machine specific...
- @$(AWK) -f "$(srcdir)"/inftest.awk | sed "s/inf/Inf/g" >_$@
+ @$(AWK) -f "$(srcdir)"/inftest.awk | sed "s/inf/Inf/g" >_$@ || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
getline2::
@echo $@
- @$(AWK) -f "$(srcdir)"/getline2.awk "$(srcdir)"/getline2.awk
"$(srcdir)"/getline2.awk >_$@
+ @$(AWK) -f "$(srcdir)"/getline2.awk "$(srcdir)"/getline2.awk
"$(srcdir)"/getline2.awk >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
awkpath::
@echo $@
- @AWKPATH="$(srcdir)$(PATH_SEPARATOR)$(srcdir)/lib" $(AWK) -f
awkpath.awk >_$@
+ @AWKPATH="$(srcdir)$(PATH_SEPARATOR)$(srcdir)/lib" $(AWK) -f
awkpath.awk >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
argtest::
@echo $@
- @$(AWK) -f "$(srcdir)"/argtest.awk -x -y abc >_$@
+ @$(AWK) -f "$(srcdir)"/argtest.awk -x -y abc >_$@ || echo EXIT CODE:
$$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
badargs::
@echo $@
- @-$(AWK) -f 2>&1 | grep -v patchlevel >_$@
+ @-$(AWK) -f 2>&1 | grep -v patchlevel >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
strftime::
@echo $@
@[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=C ; export GAWKLOCALE; \
TZ=GMT0; export TZ; \
- $(AWK) -v OUTPUT=_$@ -f "$(srcdir)"/strftime.awk
+ $(AWK) -v OUTPUT=_$@ -f "$(srcdir)"/strftime.awk || echo EXIT CODE: $$?
>> _$@
@-$(CMP) strftime.ok _$@ && rm -f _$@ strftime.ok || exit 0
devfd::
@echo $@
- @$(AWK) 1 /dev/fd/4 /dev/fd/5 4<"$(srcdir)"/devfd.in4
5<"$(srcdir)"/devfd.in5 >_$@ 2>&1 || echo EXIT CODE: $$? >> _$@
+ @$(AWK) 1 /dev/fd/4 /dev/fd/5 4<"$(srcdir)"/devfd.in4
5<"$(srcdir)"/devfd.in5 >_$@ 2>&1 || echo EXIT CODE: $$? >> _$@ || echo EXIT
CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
# This cannot be autogenerated; we want it to read the input name
@@ -1628,7 +1628,7 @@ errno:
tweakfld::
@echo $@
- @$(AWK) -f "$(srcdir)"/tweakfld.awk "$(srcdir)"/tweakfld.in >_$@
+ @$(AWK) -f "$(srcdir)"/tweakfld.awk "$(srcdir)"/tweakfld.in >_$@ ||
echo EXIT CODE: $$? >> _$@
@rm -f errors.cleanup
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
@@ -1649,7 +1649,7 @@ strftlng::
nors::
@echo $@
- @echo A B C D E | tr -d '\12\15' | $(AWK) '{ print $$NF }' -
"$(srcdir)"/nors.in > _$@
+ @echo A B C D E | tr -d '\12\15' | $(AWK) '{ print $$NF }' -
"$(srcdir)"/nors.in > _$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
fmtspcl.ok: fmtspcl.tok Makefile
@@ -1674,35 +1674,35 @@ rsglstdin::
reint::
@echo $@
- @$(AWK) --re-interval -f "$(srcdir)"/reint.awk "$(srcdir)"/reint.in >_$@
+ @$(AWK) --re-interval -f "$(srcdir)"/reint.awk "$(srcdir)"/reint.in
>_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
pipeio1::
@echo $@
- @$(AWK) -f "$(srcdir)"/pipeio1.awk >_$@
+ @$(AWK) -f "$(srcdir)"/pipeio1.awk >_$@ || echo EXIT CODE: $$? >> _$@
@rm -f test1 test2
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
pipeio2::
@echo $@
- @$(AWK) -v SRCDIR="$(srcdir)" -f "$(srcdir)"/pipeio2.awk >_$@
+ @$(AWK) -v SRCDIR="$(srcdir)" -f "$(srcdir)"/pipeio2.awk >_$@ || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
clobber::
@echo $@
- @$(AWK) -f "$(srcdir)"/clobber.awk >_$@
+ @$(AWK) -f "$(srcdir)"/clobber.awk >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/clobber.ok seq && $(CMP) "$(srcdir)"/clobber.ok
_$@ && rm -f _$@
@rm -f seq
arynocls::
@echo $@
- @-AWKPATH="$(srcdir)" $(AWK) -v INPUT="$(srcdir)"/arynocls.in -f
arynocls.awk >_$@
+ @-AWKPATH="$(srcdir)" $(AWK) -v INPUT="$(srcdir)"/arynocls.in -f
arynocls.awk >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
getlnbuf::
@echo $@
- @-AWKPATH="$(srcdir)" $(AWK) -f getlnbuf.awk "$(srcdir)"/getlnbuf.in >
_$@
- @-AWKPATH="$(srcdir)" $(AWK) -f gtlnbufv.awk "$(srcdir)"/getlnbuf.in >
_2$@
+ @-AWKPATH="$(srcdir)" $(AWK) -f getlnbuf.awk "$(srcdir)"/getlnbuf.in >
_$@ || echo EXIT CODE: $$? >> _$@
+ @-AWKPATH="$(srcdir)" $(AWK) -f gtlnbufv.awk "$(srcdir)"/getlnbuf.in >
_2$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/getlnbuf.ok _$@ && $(CMP) "$(srcdir)"/getlnbuf.ok
_2$@ && rm -f _$@ _2$@
inetmesg::
@@ -1730,22 +1730,22 @@ inetdayt::
redfilnm::
@echo $@
- @$(AWK) -f "$(srcdir)"/redfilnm.awk srcdir="$(srcdir)"
"$(srcdir)"/redfilnm.in >_$@
+ @$(AWK) -f "$(srcdir)"/redfilnm.awk srcdir="$(srcdir)"
"$(srcdir)"/redfilnm.in >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
leaddig::
@echo $@
- @$(AWK) -v x=2E -f "$(srcdir)"/leaddig.awk >_$@
+ @$(AWK) -v x=2E -f "$(srcdir)"/leaddig.awk >_$@ || echo EXIT CODE: $$?
>> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
gsubtst3::
@echo $@
- @$(AWK) --re-interval -f "$(srcdir)"/address@hidden
"$(srcdir)"/address@hidden >_$@
+ @$(AWK) --re-interval -f "$(srcdir)"/address@hidden
"$(srcdir)"/address@hidden >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
space::
@echo $@
- @$(AWK) -f ' ' "$(srcdir)"/space.awk >_$@ 2>&1 || echo EXIT CODE: $$?
>>_$@
+ @$(AWK) -f ' ' "$(srcdir)"/space.awk >_$@ 2>&1 || echo EXIT CODE: $$?
>>_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
rsnulbig::
@@ -1773,12 +1773,12 @@ exitval1::
fsspcoln::
@echo $@
- @$(AWK) -f "$(srcdir)"/address@hidden 'FS=[ :]+'
"$(srcdir)"/address@hidden >_$@
+ @$(AWK) -f "$(srcdir)"/address@hidden 'FS=[ :]+'
"$(srcdir)"/address@hidden >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
rsstart3::
@echo $@
- @head "$(srcdir)"/rsstart1.in | $(AWK) -f "$(srcdir)"/rsstart2.awk >_$@
+ @head "$(srcdir)"/rsstart1.in | $(AWK) -f "$(srcdir)"/rsstart2.awk >_$@
|| echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
# FIXME: Gentests can't really deal with something that is both a shell script
@@ -1843,12 +1843,12 @@ beginfile1::
beginfile2:
@echo $@
- @-( cd "$(srcdir)" && LC_ALL=C AWK="$(abs_builddir)/$(AWKPROG)"
$(abs_srcdir)/address@hidden $(abs_srcdir)/address@hidden ) > _$@ 2>&1
+ @-( cd "$(srcdir)" && LC_ALL=C AWK="$(abs_builddir)/$(AWKPROG)"
$(abs_srcdir)/address@hidden $(abs_srcdir)/address@hidden ) > _$@ 2>&1 || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
dumpvars::
@echo $@
- @AWKPATH="$(srcdir)" $(AWK) --dump-variables 1 <
"$(srcdir)"/address@hidden >/dev/null 2>&1 || echo EXIT CODE: $$? >>_$@
+ @AWKPATH="$(srcdir)" $(AWK) --dump-variables 1 <
"$(srcdir)"/address@hidden >/dev/null 2>&1 || echo EXIT CODE: $$? >>_$@ || echo
EXIT CODE: $$? >> _$@
@grep -v ENVIRON < awkvars.out | grep -v PROCINFO > _$@; rm awkvars.out
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
@@ -1892,37 +1892,37 @@ profile7:
mpfrieee:
@echo $@
- @$(AWK) -M -vPREC=double -f "$(srcdir)"/address@hidden > _$@ 2>&1
+ @$(AWK) -M -vPREC=double -f "$(srcdir)"/address@hidden > _$@ 2>&1 ||
echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
mpfrexprange:
@echo $@
- @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1
+ @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1 || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
mpfrrnd:
@echo $@
- @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1
+ @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1 || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
mpfrsort:
@echo $@
- @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1
+ @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1 || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
mpfruplus:
@echo $@
- @$(AWK) -M -f "$(srcdir)"/uplus.awk > _$@ 2>&1
+ @$(AWK) -M -f "$(srcdir)"/uplus.awk > _$@ 2>&1 || echo EXIT CODE: $$?
>> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
mpfrmemok1:
@echo $@
- @$(AWK) -p- -M -f "$(srcdir)"/address@hidden 2>&1 | sed 1d > _$@
+ @$(AWK) -p- -M -f "$(srcdir)"/address@hidden 2>&1 | sed 1d > _$@ ||
echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
jarebug::
@echo $@
- @"$(srcdir)"/address@hidden "$(AWKPROG)" "$(srcdir)"/address@hidden
"$(srcdir)"/address@hidden "_$@"
+ @"$(srcdir)"/address@hidden "$(AWKPROG)" "$(srcdir)"/address@hidden
"$(srcdir)"/address@hidden "_$@" || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
ordchr2::
@@ -2030,7 +2030,7 @@ readdir:
echo If it does, try rerunning on an ext'[234]' filesystem. ; \
fi
@echo $@
- @$(AWK) -f "$(srcdir)"/readdir.awk "$(top_srcdir)" > _$@
+ @$(AWK) -f "$(srcdir)"/readdir.awk "$(top_srcdir)" > _$@ || echo EXIT
CODE: $$? >> _$@
@ls -afi "$(top_srcdir)" > _dirlist
@ls -lna "$(top_srcdir)" | sed 1d > _longlist
@$(AWK) -f "$(srcdir)"/readdir0.awk -v extout=_$@ \
@@ -2053,7 +2053,7 @@ fts:
echo If it does, try rerunning on an ntfs filesystem. ;; \
esac
@echo $@
- @$(AWK) -f "$(srcdir)"/fts.awk
+ @$(AWK) -f "$(srcdir)"/fts.awk || echo EXIT CODE: $$? >> _$@
@-$(CMP) address@hidden _$@ && rm -f address@hidden _$@
charasbytes:
@@ -2077,20 +2077,20 @@ symtab8:
symtab9:
@echo $@
- @$(AWK) -f "$(srcdir)"/address@hidden >_$@
+ @$(AWK) -f "$(srcdir)"/address@hidden >_$@ || echo EXIT CODE: $$? >> _$@
@rm -f testit.txt
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
reginttrad:
@echo $@
- @$(AWK) --traditional -r -f "$(srcdir)"/address@hidden > _$@
+ @$(AWK) --traditional -r -f "$(srcdir)"/address@hidden > _$@ || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
colonwarn:
@echo $@
@for i in 1 2 3 ; \
do $(AWK) -f "$(srcdir)"/address@hidden $$i <
"$(srcdir)"/address@hidden ; \
- done > _$@
+ done > _$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
dbugeval::
@@ -2148,7 +2148,7 @@ ignrcas3::
arrdbg:
@echo $@
- @$(AWK) -v "okfile=./address@hidden" -f "$(srcdir)"/address@hidden |
grep array_f >_$@
+ @$(AWK) -v "okfile=./address@hidden" -f "$(srcdir)"/address@hidden |
grep array_f >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) ./address@hidden _$@ && rm -f _$@ ./address@hidden
sourcesplit:
diff --git a/test/Makefile.in b/test/Makefile.in
index c2151ec..3ab18fd 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1992,13 +1992,13 @@ poundbang::
messages::
@echo $@
- @$(AWK) -f "$(srcdir)"/messages.awk >_out2 2>_out3
+ @$(AWK) -f "$(srcdir)"/messages.awk >_out2 2>_out3 || echo EXIT CODE:
$$? >> _$@
@-$(CMP) "$(srcdir)"/out1.ok _out1 && $(CMP) "$(srcdir)"/out2.ok _out2
&& $(CMP) "$(srcdir)"/out3.ok _out3 && rm -f _out1 _out2 _out3
argarray::
@echo $@
@cp "$(srcdir)"/argarray.in ./argarray.input
- @TEST=test echo just a test | $(AWK) -f "$(srcdir)"/argarray.awk
./argarray.input - >_$@
+ @TEST=test echo just a test | $(AWK) -f "$(srcdir)"/argarray.awk
./argarray.input - >_$@ || echo EXIT CODE: $$? >> _$@
@rm -f ./argarray.input
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
@@ -2013,52 +2013,52 @@ manyfiles::
@rm -rf junk
@mkdir junk
@$(AWK) 'BEGIN { for (i = 1; i <= 1030; i++) print i, i}' >_$@
- @$(AWK) -f "$(srcdir)"/manyfiles.awk _$@ _$@
+ @$(AWK) -f "$(srcdir)"/manyfiles.awk _$@ _$@ || echo EXIT CODE: $$? >>
_$@
@wc -l junk/* | $(AWK) '$$1 != 2' | wc -l | sed "s/ *//g" > _$@
@rm -rf junk
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
compare::
@echo $@
- @$(AWK) -f "$(srcdir)"/compare.awk 0 1 "$(srcdir)"/compare.in >_$@
+ @$(AWK) -f "$(srcdir)"/compare.awk 0 1 "$(srcdir)"/compare.in >_$@ ||
echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
inftest::
@echo $@
@echo This test is very machine specific...
- @$(AWK) -f "$(srcdir)"/inftest.awk | sed "s/inf/Inf/g" >_$@
+ @$(AWK) -f "$(srcdir)"/inftest.awk | sed "s/inf/Inf/g" >_$@ || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
getline2::
@echo $@
- @$(AWK) -f "$(srcdir)"/getline2.awk "$(srcdir)"/getline2.awk
"$(srcdir)"/getline2.awk >_$@
+ @$(AWK) -f "$(srcdir)"/getline2.awk "$(srcdir)"/getline2.awk
"$(srcdir)"/getline2.awk >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
awkpath::
@echo $@
- @AWKPATH="$(srcdir)$(PATH_SEPARATOR)$(srcdir)/lib" $(AWK) -f
awkpath.awk >_$@
+ @AWKPATH="$(srcdir)$(PATH_SEPARATOR)$(srcdir)/lib" $(AWK) -f
awkpath.awk >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
argtest::
@echo $@
- @$(AWK) -f "$(srcdir)"/argtest.awk -x -y abc >_$@
+ @$(AWK) -f "$(srcdir)"/argtest.awk -x -y abc >_$@ || echo EXIT CODE:
$$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
badargs::
@echo $@
- @-$(AWK) -f 2>&1 | grep -v patchlevel >_$@
+ @-$(AWK) -f 2>&1 | grep -v patchlevel >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
strftime::
@echo $@
@[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=C ; export GAWKLOCALE; \
TZ=GMT0; export TZ; \
- $(AWK) -v OUTPUT=_$@ -f "$(srcdir)"/strftime.awk
+ $(AWK) -v OUTPUT=_$@ -f "$(srcdir)"/strftime.awk || echo EXIT CODE: $$?
>> _$@
@-$(CMP) strftime.ok _$@ && rm -f _$@ strftime.ok || exit 0
devfd::
@echo $@
- @$(AWK) 1 /dev/fd/4 /dev/fd/5 4<"$(srcdir)"/devfd.in4
5<"$(srcdir)"/devfd.in5 >_$@ 2>&1 || echo EXIT CODE: $$? >> _$@
+ @$(AWK) 1 /dev/fd/4 /dev/fd/5 4<"$(srcdir)"/devfd.in4
5<"$(srcdir)"/devfd.in5 >_$@ 2>&1 || echo EXIT CODE: $$? >> _$@ || echo EXIT
CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
# This cannot be autogenerated; we want it to read the input name
@@ -2070,7 +2070,7 @@ errno:
tweakfld::
@echo $@
- @$(AWK) -f "$(srcdir)"/tweakfld.awk "$(srcdir)"/tweakfld.in >_$@
+ @$(AWK) -f "$(srcdir)"/tweakfld.awk "$(srcdir)"/tweakfld.in >_$@ ||
echo EXIT CODE: $$? >> _$@
@rm -f errors.cleanup
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
@@ -2091,7 +2091,7 @@ strftlng::
nors::
@echo $@
- @echo A B C D E | tr -d '\12\15' | $(AWK) '{ print $$NF }' -
"$(srcdir)"/nors.in > _$@
+ @echo A B C D E | tr -d '\12\15' | $(AWK) '{ print $$NF }' -
"$(srcdir)"/nors.in > _$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
fmtspcl.ok: fmtspcl.tok Makefile
@@ -2116,35 +2116,35 @@ rsglstdin::
reint::
@echo $@
- @$(AWK) --re-interval -f "$(srcdir)"/reint.awk "$(srcdir)"/reint.in >_$@
+ @$(AWK) --re-interval -f "$(srcdir)"/reint.awk "$(srcdir)"/reint.in
>_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
pipeio1::
@echo $@
- @$(AWK) -f "$(srcdir)"/pipeio1.awk >_$@
+ @$(AWK) -f "$(srcdir)"/pipeio1.awk >_$@ || echo EXIT CODE: $$? >> _$@
@rm -f test1 test2
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
pipeio2::
@echo $@
- @$(AWK) -v SRCDIR="$(srcdir)" -f "$(srcdir)"/pipeio2.awk >_$@
+ @$(AWK) -v SRCDIR="$(srcdir)" -f "$(srcdir)"/pipeio2.awk >_$@ || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
clobber::
@echo $@
- @$(AWK) -f "$(srcdir)"/clobber.awk >_$@
+ @$(AWK) -f "$(srcdir)"/clobber.awk >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/clobber.ok seq && $(CMP) "$(srcdir)"/clobber.ok
_$@ && rm -f _$@
@rm -f seq
arynocls::
@echo $@
- @-AWKPATH="$(srcdir)" $(AWK) -v INPUT="$(srcdir)"/arynocls.in -f
arynocls.awk >_$@
+ @-AWKPATH="$(srcdir)" $(AWK) -v INPUT="$(srcdir)"/arynocls.in -f
arynocls.awk >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
getlnbuf::
@echo $@
- @-AWKPATH="$(srcdir)" $(AWK) -f getlnbuf.awk "$(srcdir)"/getlnbuf.in >
_$@
- @-AWKPATH="$(srcdir)" $(AWK) -f gtlnbufv.awk "$(srcdir)"/getlnbuf.in >
_2$@
+ @-AWKPATH="$(srcdir)" $(AWK) -f getlnbuf.awk "$(srcdir)"/getlnbuf.in >
_$@ || echo EXIT CODE: $$? >> _$@
+ @-AWKPATH="$(srcdir)" $(AWK) -f gtlnbufv.awk "$(srcdir)"/getlnbuf.in >
_2$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/getlnbuf.ok _$@ && $(CMP) "$(srcdir)"/getlnbuf.ok
_2$@ && rm -f _$@ _2$@
inetmesg::
@@ -2172,22 +2172,22 @@ inetdayt::
redfilnm::
@echo $@
- @$(AWK) -f "$(srcdir)"/redfilnm.awk srcdir="$(srcdir)"
"$(srcdir)"/redfilnm.in >_$@
+ @$(AWK) -f "$(srcdir)"/redfilnm.awk srcdir="$(srcdir)"
"$(srcdir)"/redfilnm.in >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
leaddig::
@echo $@
- @$(AWK) -v x=2E -f "$(srcdir)"/leaddig.awk >_$@
+ @$(AWK) -v x=2E -f "$(srcdir)"/leaddig.awk >_$@ || echo EXIT CODE: $$?
>> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
gsubtst3::
@echo $@
- @$(AWK) --re-interval -f "$(srcdir)"/address@hidden
"$(srcdir)"/address@hidden >_$@
+ @$(AWK) --re-interval -f "$(srcdir)"/address@hidden
"$(srcdir)"/address@hidden >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
space::
@echo $@
- @$(AWK) -f ' ' "$(srcdir)"/space.awk >_$@ 2>&1 || echo EXIT CODE: $$?
>>_$@
+ @$(AWK) -f ' ' "$(srcdir)"/space.awk >_$@ 2>&1 || echo EXIT CODE: $$?
>>_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
rsnulbig::
@@ -2215,12 +2215,12 @@ exitval1::
fsspcoln::
@echo $@
- @$(AWK) -f "$(srcdir)"/address@hidden 'FS=[ :]+'
"$(srcdir)"/address@hidden >_$@
+ @$(AWK) -f "$(srcdir)"/address@hidden 'FS=[ :]+'
"$(srcdir)"/address@hidden >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
rsstart3::
@echo $@
- @head "$(srcdir)"/rsstart1.in | $(AWK) -f "$(srcdir)"/rsstart2.awk >_$@
+ @head "$(srcdir)"/rsstart1.in | $(AWK) -f "$(srcdir)"/rsstart2.awk >_$@
|| echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
# FIXME: Gentests can't really deal with something that is both a shell script
@@ -2285,12 +2285,12 @@ beginfile1::
beginfile2:
@echo $@
- @-( cd "$(srcdir)" && LC_ALL=C AWK="$(abs_builddir)/$(AWKPROG)"
$(abs_srcdir)/address@hidden $(abs_srcdir)/address@hidden ) > _$@ 2>&1
+ @-( cd "$(srcdir)" && LC_ALL=C AWK="$(abs_builddir)/$(AWKPROG)"
$(abs_srcdir)/address@hidden $(abs_srcdir)/address@hidden ) > _$@ 2>&1 || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
dumpvars::
@echo $@
- @AWKPATH="$(srcdir)" $(AWK) --dump-variables 1 <
"$(srcdir)"/address@hidden >/dev/null 2>&1 || echo EXIT CODE: $$? >>_$@
+ @AWKPATH="$(srcdir)" $(AWK) --dump-variables 1 <
"$(srcdir)"/address@hidden >/dev/null 2>&1 || echo EXIT CODE: $$? >>_$@ || echo
EXIT CODE: $$? >> _$@
@grep -v ENVIRON < awkvars.out | grep -v PROCINFO > _$@; rm awkvars.out
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
@@ -2334,37 +2334,37 @@ profile7:
mpfrieee:
@echo $@
- @$(AWK) -M -vPREC=double -f "$(srcdir)"/address@hidden > _$@ 2>&1
+ @$(AWK) -M -vPREC=double -f "$(srcdir)"/address@hidden > _$@ 2>&1 ||
echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
mpfrexprange:
@echo $@
- @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1
+ @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1 || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
mpfrrnd:
@echo $@
- @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1
+ @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1 || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
mpfrsort:
@echo $@
- @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1
+ @$(AWK) -M -vPREC=53 -f "$(srcdir)"/address@hidden > _$@ 2>&1 || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
mpfruplus:
@echo $@
- @$(AWK) -M -f "$(srcdir)"/uplus.awk > _$@ 2>&1
+ @$(AWK) -M -f "$(srcdir)"/uplus.awk > _$@ 2>&1 || echo EXIT CODE: $$?
>> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
mpfrmemok1:
@echo $@
- @$(AWK) -p- -M -f "$(srcdir)"/address@hidden 2>&1 | sed 1d > _$@
+ @$(AWK) -p- -M -f "$(srcdir)"/address@hidden 2>&1 | sed 1d > _$@ ||
echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
jarebug::
@echo $@
- @"$(srcdir)"/address@hidden "$(AWKPROG)" "$(srcdir)"/address@hidden
"$(srcdir)"/address@hidden "_$@"
+ @"$(srcdir)"/address@hidden "$(AWKPROG)" "$(srcdir)"/address@hidden
"$(srcdir)"/address@hidden "_$@" || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
ordchr2::
@@ -2472,7 +2472,7 @@ readdir:
echo If it does, try rerunning on an ext'[234]' filesystem. ; \
fi
@echo $@
- @$(AWK) -f "$(srcdir)"/readdir.awk "$(top_srcdir)" > _$@
+ @$(AWK) -f "$(srcdir)"/readdir.awk "$(top_srcdir)" > _$@ || echo EXIT
CODE: $$? >> _$@
@ls -afi "$(top_srcdir)" > _dirlist
@ls -lna "$(top_srcdir)" | sed 1d > _longlist
@$(AWK) -f "$(srcdir)"/readdir0.awk -v extout=_$@ \
@@ -2495,7 +2495,7 @@ fts:
echo If it does, try rerunning on an ntfs filesystem. ;; \
esac
@echo $@
- @$(AWK) -f "$(srcdir)"/fts.awk
+ @$(AWK) -f "$(srcdir)"/fts.awk || echo EXIT CODE: $$? >> _$@
@-$(CMP) address@hidden _$@ && rm -f address@hidden _$@
charasbytes:
@@ -2519,20 +2519,20 @@ symtab8:
symtab9:
@echo $@
- @$(AWK) -f "$(srcdir)"/address@hidden >_$@
+ @$(AWK) -f "$(srcdir)"/address@hidden >_$@ || echo EXIT CODE: $$? >> _$@
@rm -f testit.txt
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
reginttrad:
@echo $@
- @$(AWK) --traditional -r -f "$(srcdir)"/address@hidden > _$@
+ @$(AWK) --traditional -r -f "$(srcdir)"/address@hidden > _$@ || echo
EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
colonwarn:
@echo $@
@for i in 1 2 3 ; \
do $(AWK) -f "$(srcdir)"/address@hidden $$i <
"$(srcdir)"/address@hidden ; \
- done > _$@
+ done > _$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
dbugeval::
@@ -2588,7 +2588,7 @@ ignrcas3::
arrdbg:
@echo $@
- @$(AWK) -v "okfile=./address@hidden" -f "$(srcdir)"/address@hidden |
grep array_f >_$@
+ @$(AWK) -v "okfile=./address@hidden" -f "$(srcdir)"/address@hidden |
grep array_f >_$@ || echo EXIT CODE: $$? >> _$@
@-$(CMP) ./address@hidden _$@ && rm -f _$@ ./address@hidden
sourcesplit:
-----------------------------------------------------------------------
Summary of changes:
test/ChangeLog | 6 +++++
test/Makefile.am | 82 ++++++++++++++++++++++++++++----------------------------
test/Makefile.in | 82 ++++++++++++++++++++++++++++----------------------------
3 files changed, 88 insertions(+), 82 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, feature/improve-tests, updated. gawk-4.1.0-3064-g030a57e,
Arnold Robbins <=