[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, stable/printf-rework, updated. gawk-4.1.0-5499-ga7f5d
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, stable/printf-rework, updated. gawk-4.1.0-5499-ga7f5d436 |
Date: |
Thu, 11 Jul 2024 06:32:31 -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, stable/printf-rework has been updated
via a7f5d4361defc621dc32242f4135e5573bcb360d (commit)
from 1cd00fb6721736922f01c19d2455ebe1d5b3950c (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=a7f5d4361defc621dc32242f4135e5573bcb360d
commit a7f5d4361defc621dc32242f4135e5573bcb360d
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Thu Jul 11 13:32:08 2024 +0300
Add new test case, printf-corners.
diff --git a/test/ChangeLog b/test/ChangeLog
index 55c01121..bcd11fec 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
+2024-07-11 Arnold D. Robbins <arnold@skeeve.com>
+
+ * Makefile.am (EXTRA_DIST): New test, printf-corners.
+ * printf-corners.awk, printf-corners.ok, printf-corners-mpfr.ok: New
+ files.
+
2024-06-27 Arnold D. Robbins <arnold@skeeve.com>
* hsprint.awk: Add headers to output, fix printing of
diff --git a/test/Makefile.am b/test/Makefile.am
index 0f1d5178..878404fc 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1051,6 +1051,9 @@ EXTRA_DIST = \
prdupval.ok \
prec.awk \
prec.ok \
+ printf-corners.awk \
+ printf-corners.ok \
+ printf-corners-mpfr.ok \
printf0.awk \
printf0.ok \
printf1.awk \
@@ -1549,7 +1552,7 @@ BASIC_TESTS = \
substr swaplns synerr1 synerr2 synerr3 tailrecurse tradanch \
trailbs tweakfld uninit2 uninit3 uninit4 uninit5 uninitialized \
unterm uparrfs uplus wideidx wideidx2 widesub widesub2 widesub3 \
- match4 strsubscript \
+ match4 strsubscript printf-corners \
widesub4 wjposer1 zero2 zeroe0 zeroflag
UNIX_TESTS = \
diff --git a/test/Makefile.in b/test/Makefile.in
index 69649f08..c4a054e4 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1315,6 +1315,9 @@ EXTRA_DIST = \
prdupval.ok \
prec.awk \
prec.ok \
+ printf-corners.awk \
+ printf-corners.ok \
+ printf-corners-mpfr.ok \
printf0.awk \
printf0.ok \
printf1.awk \
@@ -1813,7 +1816,7 @@ BASIC_TESTS = \
substr swaplns synerr1 synerr2 synerr3 tailrecurse tradanch \
trailbs tweakfld uninit2 uninit3 uninit4 uninit5 uninitialized \
unterm uparrfs uplus wideidx wideidx2 widesub widesub2 widesub3 \
- match4 strsubscript \
+ match4 strsubscript printf-corners \
widesub4 wjposer1 zero2 zeroe0 zeroflag
UNIX_TESTS = \
@@ -4430,6 +4433,13 @@ strsubscript:
@-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE:
$$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+printf-corners:
+ @echo $@
+ @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE:
$$? >>_$@
+ @-if echo "$$GAWK_TEST_ARGS" | egrep -s -e '-M|--bignum' > /dev/null ; \
+ then $(CMP) "$(srcdir)"/$@-mpfr.ok _$@ && rm -f _$@ ; \
+ else $(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ; fi
+
widesub4:
@echo $@ $(ZOS_FAIL)
@-[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; export GAWKLOCALE; \
diff --git a/test/Maketests b/test/Maketests
index 3538d141..cb6992a1 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -1298,6 +1298,13 @@ strsubscript:
@-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE:
$$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+printf-corners:
+ @echo $@
+ @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE:
$$? >>_$@
+ @-if echo "$$GAWK_TEST_ARGS" | egrep -s -e '-M|--bignum' > /dev/null ; \
+ then $(CMP) "$(srcdir)"/$@-mpfr.ok _$@ && rm -f _$@ ; \
+ else $(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ; fi
+
widesub4:
@echo $@ $(ZOS_FAIL)
@-[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; export GAWKLOCALE; \
diff --git a/test/printf-corners-mpfr.ok b/test/printf-corners-mpfr.ok
new file mode 100644
index 00000000..6d485db1
--- /dev/null
+++ b/test/printf-corners-mpfr.ok
@@ -0,0 +1,9 @@
+<01>
+<0x01>
+<>
+<+>
+< >
+<-nan>
+<0.000000e+00>
+< 0.000000e+00>
+< -inf>
diff --git a/test/printf-corners.awk b/test/printf-corners.awk
new file mode 100644
index 00000000..0a23d870
--- /dev/null
+++ b/test/printf-corners.awk
@@ -0,0 +1,11 @@
+BEGIN {
+ printf "<%#.2o>\n", 1 # 01
+ printf "<%#.2x>\n", 1 # 0x01
+ printf "<%#.x>\n", 0 # ""
+ printf "<%+.i>\n", 0 # "+"
+ printf "<% .i>\n", 0 # " "
+ printf "<%e>\n", "-nan" # "-nan"
+ printf "<%e>\n", "inf" # "inf"
+ printf "<% e>\n", "inf" # " inf"
+ printf "<%20e>\n", "-inf" # " -inf"
+}
diff --git a/test/printf-corners.ok b/test/printf-corners.ok
new file mode 100644
index 00000000..6d485db1
--- /dev/null
+++ b/test/printf-corners.ok
@@ -0,0 +1,9 @@
+<01>
+<0x01>
+<>
+<+>
+< >
+<-nan>
+<0.000000e+00>
+< 0.000000e+00>
+< -inf>
-----------------------------------------------------------------------
Summary of changes:
test/ChangeLog | 6 ++++++
test/Makefile.am | 5 ++++-
test/Makefile.in | 12 +++++++++++-
test/Maketests | 7 +++++++
test/printf-corners-mpfr.ok | 9 +++++++++
test/printf-corners.awk | 11 +++++++++++
test/printf-corners.ok | 9 +++++++++
7 files changed, 57 insertions(+), 2 deletions(-)
create mode 100644 test/printf-corners-mpfr.ok
create mode 100644 test/printf-corners.awk
create mode 100644 test/printf-corners.ok
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, stable/printf-rework, updated. gawk-4.1.0-5499-ga7f5d436,
Arnold Robbins <=