[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, stable/printf-rework, updated. gawk-4.1.0-5501-g61a86
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, stable/printf-rework, updated. gawk-4.1.0-5501-g61a8624f |
Date: |
Thu, 11 Jul 2024 10:47:54 -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 61a8624fdf8827582b00d962f6d6a8ad5a5f5264 (commit)
via 60699f3c1a830a8ba4d5c41a69b7e25639ed27e3 (commit)
from a7f5d4361defc621dc32242f4135e5573bcb360d (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=61a8624fdf8827582b00d962f6d6a8ad5a5f5264
commit 61a8624fdf8827582b00d962f6d6a8ad5a5f5264
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Thu Jul 11 17:47:38 2024 +0300
Update pc/Makefile.tst.
diff --git a/pc/ChangeLog b/pc/ChangeLog
index 3d819829..d8c5b983 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,7 @@
+2024-07-11 Arnold D. Robbins <arnold@skeeve.com>
+
+ * Makefile.tst: Regenerated.
+
2024-06-13 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.tst: Regenerated.
diff --git a/pc/Makefile.tst b/pc/Makefile.tst
index 2a15eaa9..3bb4ab3b 100644
--- a/pc/Makefile.tst
+++ b/pc/Makefile.tst
@@ -180,7 +180,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 = \
@@ -2613,6 +2613,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=ENU_USA.1252; export GAWKLOCALE; \
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=60699f3c1a830a8ba4d5c41a69b7e25639ed27e3
commit 60699f3c1a830a8ba4d5c41a69b7e25639ed27e3
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Thu Jul 11 16:43:19 2024 +0300
More test cases in printf-corners test.
diff --git a/test/ChangeLog b/test/ChangeLog
index bcd11fec..2daec81a 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2024-07-05 Maciej W. Rozycki <macro@redhat.com>
+
+ * printf-corners.awk, printf-corners.ok, printf-corners-mpfr: Remove
+ cases with "inf" input. Add further cases.
+
2024-07-11 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (EXTRA_DIST): New test, printf-corners.
diff --git a/test/printf-corners-mpfr.ok b/test/printf-corners-mpfr.ok
index 6d485db1..7ea6b4c6 100644
--- a/test/printf-corners-mpfr.ok
+++ b/test/printf-corners-mpfr.ok
@@ -1,9 +1,78 @@
+<0>
+<0>
+<00>
+<000>
<01>
+<01>
+<01>
+<001>
<0x01>
<>
<+>
+<+>
+<>
+<>
+<>
+<>
+<>
+< >
+< >
+<>
+<>
+<>
+<>
+<>
+<+>
+<+>
+< >
+< >
< >
+< >
+< >
+< >
+< >
+< >
+< >
+< >
+< >
+< >
+<0.00000>
+<0.00000>
+<0.e+00>
+<0.E+00>
+<0.>
+<0.>
+<0.>
+<0.>
+<-nan>
+<-NAN>
<-nan>
-<0.000000e+00>
-< 0.000000e+00>
+<-NAN>
+<-nan>
+<-NAN>
+<-nan>
+<-NAN>
+<-inf >
+<-INF >
+<-inf >
+<-INF >
+<-inf >
+<-INF >
+<-inf >
+<-INF >
+< -inf>
+< -INF>
+< -inf>
+< -INF>
+< -inf>
+< -INF>
+< -inf>
+< -INF>
+< -inf>
+< -INF>
+< -inf>
+< -INF>
+< -inf>
+< -INF>
< -inf>
+< -INF>
diff --git a/test/printf-corners.awk b/test/printf-corners.awk
index 0a23d870..ca949c68 100644
--- a/test/printf-corners.awk
+++ b/test/printf-corners.awk
@@ -1,11 +1,80 @@
BEGIN {
+ printf "<%#.o>\n", 0 # 0
+ printf "<%#.1o>\n", 0 # 0
+ printf "<%#.2o>\n", 0 # 00
+ printf "<%#.3o>\n", 0 # 000
+ printf "<%#.o>\n", 1 # 01
+ printf "<%#.1o>\n", 1 # 01
printf "<%#.2o>\n", 1 # 01
+ printf "<%#.3o>\n", 1 # 001
printf "<%#.2x>\n", 1 # 0x01
printf "<%#.x>\n", 0 # ""
+ printf "<%+.d>\n", 0 # "+"
printf "<%+.i>\n", 0 # "+"
+ printf "<%+.u>\n", 0 # ""
+ printf "<%+.o>\n", 0 # ""
+ printf "<%+.x>\n", 0 # ""
+ printf "<%+.X>\n", 0 # ""
+ printf "<%+.s>\n", 0 # ""
+ printf "<% .d>\n", 0 # " "
printf "<% .i>\n", 0 # " "
+ printf "<% .u>\n", 0 # ""
+ printf "<% .o>\n", 0 # ""
+ printf "<% .x>\n", 0 # ""
+ printf "<% .X>\n", 0 # ""
+ printf "<% .s>\n", 0 # ""
+ printf "<%+1.d>\n", 0 # "+"
+ printf "<%+1.i>\n", 0 # "+"
+ printf "<%+1.u>\n", 0 # " "
+ printf "<%+1.o>\n", 0 # " "
+ printf "<%+1.x>\n", 0 # " "
+ printf "<%+1.X>\n", 0 # " "
+ printf "<%+1.s>\n", 0 # " "
+ printf "<% 1.d>\n", 0 # " "
+ printf "<% 1.i>\n", 0 # " "
+ printf "<% 1.u>\n", 0 # " "
+ printf "<% 1.o>\n", 0 # " "
+ printf "<% 1.x>\n", 0 # " "
+ printf "<% 1.X>\n", 0 # " "
+ printf "<% 1.s>\n", 0 # " "
+ printf "<%#g>\n", "0" # "0.00000"
+ printf "<%#G>\n", "0" # "0.00000"
+ printf "<%#.e>\n", "0" # "0.e+00"
+ printf "<%#.E>\n", "0" # "0.E+00"
+ printf "<%#.f>\n", "0" # "0."
+ printf "<%#.F>\n", "0" # "0."
+ printf "<%#.g>\n", "0" # "0."
+ printf "<%#.G>\n", "0" # "0."
printf "<%e>\n", "-nan" # "-nan"
- printf "<%e>\n", "inf" # "inf"
- printf "<% e>\n", "inf" # " inf"
+ printf "<%E>\n", "-nan" # "-NAN"
+ printf "<%f>\n", "-nan" # "-nan"
+ printf "<%F>\n", "-nan" # "-NAN"
+ printf "<%g>\n", "-nan" # "-nan"
+ printf "<%G>\n", "-nan" # "-NAN"
+ printf "<%a>\n", "-nan" # "-nan"
+ printf "<%A>\n", "-nan" # "-NAN"
+ printf "<%-20e>\n", "-inf" # "-inf "
+ printf "<%-20E>\n", "-inf" # "-INF "
+ printf "<%-20f>\n", "-inf" # "-inf "
+ printf "<%-20F>\n", "-inf" # "-INF "
+ printf "<%-20g>\n", "-inf" # "-inf "
+ printf "<%-20G>\n", "-inf" # "-INF "
+ printf "<%-20a>\n", "-inf" # "-inf "
+ printf "<%-20A>\n", "-inf" # "-INF "
printf "<%20e>\n", "-inf" # " -inf"
+ printf "<%20E>\n", "-inf" # " -INF"
+ printf "<%20f>\n", "-inf" # " -inf"
+ printf "<%20F>\n", "-inf" # " -INF"
+ printf "<%20g>\n", "-inf" # " -inf"
+ printf "<%20G>\n", "-inf" # " -INF"
+ printf "<%20a>\n", "-inf" # " -inf"
+ printf "<%20A>\n", "-inf" # " -INF"
+ printf "<%20.20e>\n", "-inf" # " -inf"
+ printf "<%20.20E>\n", "-inf" # " -INF"
+ printf "<%20.20f>\n", "-inf" # " -inf"
+ printf "<%20.20F>\n", "-inf" # " -INF"
+ printf "<%20.20g>\n", "-inf" # " -inf"
+ printf "<%20.20G>\n", "-inf" # " -INF"
+ printf "<%20.20a>\n", "-inf" # " -inf"
+ printf "<%20.20A>\n", "-inf" # " -INF"
}
diff --git a/test/printf-corners.ok b/test/printf-corners.ok
index 6d485db1..7ea6b4c6 100644
--- a/test/printf-corners.ok
+++ b/test/printf-corners.ok
@@ -1,9 +1,78 @@
+<0>
+<0>
+<00>
+<000>
<01>
+<01>
+<01>
+<001>
<0x01>
<>
<+>
+<+>
+<>
+<>
+<>
+<>
+<>
+< >
+< >
+<>
+<>
+<>
+<>
+<>
+<+>
+<+>
+< >
+< >
< >
+< >
+< >
+< >
+< >
+< >
+< >
+< >
+< >
+< >
+<0.00000>
+<0.00000>
+<0.e+00>
+<0.E+00>
+<0.>
+<0.>
+<0.>
+<0.>
+<-nan>
+<-NAN>
<-nan>
-<0.000000e+00>
-< 0.000000e+00>
+<-NAN>
+<-nan>
+<-NAN>
+<-nan>
+<-NAN>
+<-inf >
+<-INF >
+<-inf >
+<-INF >
+<-inf >
+<-INF >
+<-inf >
+<-INF >
+< -inf>
+< -INF>
+< -inf>
+< -INF>
+< -inf>
+< -INF>
+< -inf>
+< -INF>
+< -inf>
+< -INF>
+< -inf>
+< -INF>
+< -inf>
+< -INF>
< -inf>
+< -INF>
-----------------------------------------------------------------------
Summary of changes:
pc/ChangeLog | 4 +++
pc/Makefile.tst | 9 +++++-
test/ChangeLog | 5 ++++
test/printf-corners-mpfr.ok | 73 +++++++++++++++++++++++++++++++++++++++++++--
test/printf-corners.awk | 73 +++++++++++++++++++++++++++++++++++++++++++--
test/printf-corners.ok | 73 +++++++++++++++++++++++++++++++++++++++++++--
6 files changed, 230 insertions(+), 7 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, stable/printf-rework, updated. gawk-4.1.0-5501-g61a8624f,
Arnold Robbins <=