[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-3051-g88d107d |
Date: |
Wed, 4 Apr 2018 08:57:52 -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 88d107d052085c6343b2c5c39807e743e02d3c36 (commit)
from d729cf6803abafe807a215fe44ffd542ba8182c8 (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=88d107d052085c6343b2c5c39807e743e02d3c36
commit 88d107d052085c6343b2c5c39807e743e02d3c36
Author: Arnold D. Robbins <address@hidden>
Date: Wed Apr 4 15:55:33 2018 +0300
Automate tests needing --pretty-print.
diff --git a/ChangeLog b/ChangeLog
index 15ec525..c1c08a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,13 +1,3 @@
-2018-04-03 Arnold D. Robbins <address@hidden>
-
- * Gentests: Add special support for MPFR tests, tests needing
- --posix and --traditional.
- * Makefile.am (NEED_MPFR): Renamed from MPFR_TESTS.
- (NEED_POSIX, NEED_TRADITIONAL): New groupings. Removed related
- individual recipes.
- (GENTESTS_UNUSED): Updated.
- * litoct.in, nonl.in: New files.
-
2018-04-02 Arnold D. Robbins <address@hidden>
* config.guess, config.sub, install-sh: Updated from GNULIB.
diff --git a/test/ChangeLog b/test/ChangeLog
index 5f806e1..2f0c377 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,19 @@
+2018-04-04 Arnold D. Robbins <address@hidden>
+
+ * Gentests: Add support for tests needing --pretty-print.
+ Improve checking in the END rule.
+ * Makefile.am (NEED_PRETTY): New macro.
+
+2018-04-03 Arnold D. Robbins <address@hidden>
+
+ * Gentests: Add special support for MPFR tests, tests needing
+ --posix and --traditional.
+ * Makefile.am (NEED_MPFR): Renamed from MPFR_TESTS.
+ (NEED_POSIX, NEED_TRADITIONAL): New groupings. Removed related
+ individual recipes.
+ (GENTESTS_UNUSED): Updated.
+ * litoct.in, nonl.in: New files.
+
2018-04-01 Arnold D. Robbins <address@hidden>
* Makefile.am (EXTRA_DIST): Add files for mpfrfield.
diff --git a/test/Gentests b/test/Gentests
index 10846e0..ec52dea 100755
--- a/test/Gentests
+++ b/test/Gentests
@@ -47,6 +47,13 @@ BEGIN {
next
}
+/^NEED_PRETTY *=/,/[^\\]$/ {
+ gsub(/(^NEED_PRETTY *=|\\$)/,"")
+ for (i = 1; i <= NF; i++)
+ pretty[$i]
+ next
+}
+
/^NEED_POSIX *=/,/[^\\]$/ {
gsub(/(^NEED_POSIX *=|\\$)/,"")
for (i = 1; i <= NF; i++)
@@ -130,6 +137,10 @@ function generate(x, s)
s = s " --traditional"
delete traditional[x]
}
+ if (x in pretty) {
+ s = s " --pretty-print=_$@"
+ delete pretty[x]
+ }
if (x".in" in files) {
s = s " < \"$(srcdir)\"/address@hidden"
delete files[x".in"]
@@ -156,6 +167,18 @@ END {
for (x in lint_old)
if (!(x in targets))
printf "WARNING: --lint-old target `%s' is missing.\n",
x > "/dev/stderr"
+ for (x in simple_mpfr)
+ if (!(x in targets))
+ printf "WARNING: -M target `%s' is missing.\n", x >
"/dev/stderr"
+ for (x in posix)
+ if (!(x in targets))
+ printf "WARNING: --posix target `%s' is missing.\n", x
> "/dev/stderr"
+ for (x in traditional)
+ if (!(x in targets))
+ printf "WARNING: --traditional target `%s' is
missing.\n", x > "/dev/stderr"
+ for (x in pretty)
+ if (!(x in targets))
+ printf "WARNING: --pretty-print target `%s' is
missing.\n", x > "/dev/stderr"
for (x in files)
if (!(x in unused) && \
!(gensub(/\.(awk|in)$/,"",1,x) in targets))
diff --git a/test/Makefile.am b/test/Makefile.am
index ea9f8b7..f0b2943 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1344,6 +1344,9 @@ NEED_MPFR = mpfrbigint mpfrexprange mpfrfield mpfrieee
mpfrmemok1 \
# List of tests that need --posix
NEED_POSIX = printf0 posix2008sub paramasfunc1 paramasfunc2 muldimposix
+# List of tests that need --pretty-print
+NEED_PRETTY = profile4 profile5 profile8 profile9 profile10
+
# List of tests that need --traditional
NEED_TRADITIONAL = litoct tradanch rscompat
@@ -2004,16 +2007,6 @@ profile3:
@sed 1,2d < address@hidden > _$@; rm address@hidden
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-profile4:
- @echo $@
- @$(AWK) --pretty-print=_$@ -f "$(srcdir)"/address@hidden > /dev/null
- @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-
-profile5:
- @echo $@
- @$(AWK) --pretty-print=_$@ -f "$(srcdir)"/address@hidden > /dev/null
- @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-
profile6:
@echo $@
@$(AWK) address@hidden -f "$(srcdir)"/address@hidden > /dev/null
@@ -2026,21 +2019,6 @@ profile7:
@sed 1,2d < address@hidden > _$@; rm address@hidden
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-profile8:
- @echo $@
- @$(AWK) --pretty-print=_$@ -f "$(srcdir)"/address@hidden > /dev/null
- @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-
-profile9:
- @echo $@
- @$(AWK) --pretty-print=_$@ -f "$(srcdir)"/address@hidden > /dev/null
- @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-
-profile10:
- @echo $@
- @$(AWK) --pretty-print=_$@ -f "$(srcdir)"/address@hidden > /dev/null
- @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-
next:
@echo $@
@-$(LOCALES) AWK="$(AWKPROG)" "$(srcdir)"/address@hidden > _$@ 2>&1
diff --git a/test/Makefile.in b/test/Makefile.in
index 1f0faf5..fdd9546 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1600,6 +1600,9 @@ NEED_MPFR = mpfrbigint mpfrexprange mpfrfield mpfrieee
mpfrmemok1 \
# List of tests that need --posix
NEED_POSIX = printf0 posix2008sub paramasfunc1 paramasfunc2 muldimposix
+# List of tests that need --pretty-print
+NEED_PRETTY = profile4 profile5 profile8 profile9 profile10
+
# List of tests that need --traditional
NEED_TRADITIONAL = litoct tradanch rscompat
@@ -2445,16 +2448,6 @@ profile3:
@sed 1,2d < address@hidden > _$@; rm address@hidden
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-profile4:
- @echo $@
- @$(AWK) --pretty-print=_$@ -f "$(srcdir)"/address@hidden > /dev/null
- @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-
-profile5:
- @echo $@
- @$(AWK) --pretty-print=_$@ -f "$(srcdir)"/address@hidden > /dev/null
- @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-
profile6:
@echo $@
@$(AWK) address@hidden -f "$(srcdir)"/address@hidden > /dev/null
@@ -2467,21 +2460,6 @@ profile7:
@sed 1,2d < address@hidden > _$@; rm address@hidden
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-profile8:
- @echo $@
- @$(AWK) --pretty-print=_$@ -f "$(srcdir)"/address@hidden > /dev/null
- @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-
-profile9:
- @echo $@
- @$(AWK) --pretty-print=_$@ -f "$(srcdir)"/address@hidden > /dev/null
- @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-
-profile10:
- @echo $@
- @$(AWK) --pretty-print=_$@ -f "$(srcdir)"/address@hidden > /dev/null
- @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
-
next:
@echo $@
@-$(LOCALES) AWK="$(AWKPROG)" "$(srcdir)"/address@hidden > _$@ 2>&1
@@ -4346,6 +4324,31 @@ procinfs:
@AWKPATH="$(srcdir)" $(AWK) -f address@hidden >_$@ 2>&1 || echo EXIT
CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+profile4:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f address@hidden --pretty-print=_$@ >_$@
2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+profile5:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f address@hidden --pretty-print=_$@ >_$@
2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+profile8:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f address@hidden --pretty-print=_$@ >_$@
2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+profile9:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f address@hidden --pretty-print=_$@ >_$@
2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+profile10:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f address@hidden --pretty-print=_$@ >_$@
2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
regnul1:
@echo $@
@AWKPATH="$(srcdir)" $(AWK) -f address@hidden >_$@ 2>&1 || echo EXIT
CODE: $$? >>_$@
diff --git a/test/Maketests b/test/Maketests
index 6c80e5c..fab160c 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -1507,6 +1507,31 @@ procinfs:
@AWKPATH="$(srcdir)" $(AWK) -f address@hidden >_$@ 2>&1 || echo EXIT
CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+profile4:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f address@hidden --pretty-print=_$@ >_$@
2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+profile5:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f address@hidden --pretty-print=_$@ >_$@
2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+profile8:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f address@hidden --pretty-print=_$@ >_$@
2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+profile9:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f address@hidden --pretty-print=_$@ >_$@
2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+profile10:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f address@hidden --pretty-print=_$@ >_$@
2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
regnul1:
@echo $@
@AWKPATH="$(srcdir)" $(AWK) -f address@hidden >_$@ 2>&1 || echo EXIT
CODE: $$? >>_$@
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ----------
test/ChangeLog | 16 ++++++++++++++++
test/Gentests | 23 +++++++++++++++++++++++
test/Makefile.am | 28 +++-------------------------
test/Makefile.in | 53 ++++++++++++++++++++++++++++-------------------------
test/Maketests | 25 +++++++++++++++++++++++++
6 files changed, 95 insertions(+), 60 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-3051-g88d107d,
Arnold Robbins <=