[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5457-g7c1bc863
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5457-g7c1bc863 |
Date: |
Sat, 4 Nov 2023 14:53:47 -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/minrx has been updated
via 7c1bc86342276e5972b3e151725a4fcc6baac82e (commit)
from 1a4c1def63c143fcbea47678f0440abbde8f1722 (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=7c1bc86342276e5972b3e151725a4fcc6baac82e
commit 7c1bc86342276e5972b3e151725a4fcc6baac82e
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Sat Nov 4 20:53:14 2023 +0200
Update some tests.
diff --git a/pc/Makefile.tst b/pc/Makefile.tst
index 66873d3b..a5d0b439 100644
--- a/pc/Makefile.tst
+++ b/pc/Makefile.tst
@@ -171,6 +171,7 @@ BASIC_TESTS = \
printf0 printf1 printfchar prmarscl prmreuse prt1eval prtoeval \
rand randtest range1 range2 readbuf rebrackloc rebt8b1 rebuild \
redfilnm regeq regex3minus regexpbad regexpbrack regexpbrack2 \
+ regexpuparrow \
regexprange regrange reindops reparse resplit rri1 rs rscompat \
rsnul1nl rsnulbig rsnulbig2 rsnullre rsnulw rstest1 rstest2 \
rstest3 rstest4 rstest5 rswhite scalar sclforin sclifin setrec0 \
@@ -1503,12 +1504,12 @@ clsflnam:
cmdlinefsbacknl:
@echo $@
- @-$(LOCALES) AWK="$(AWKPROG)" "$(srcdir)"/$@.sh > _$@ 2>&1 || echo
EXIT CODE: $$? >>_$@
+ @-$(LOCALES) AWK="$(AWKPROG) $(GAWK_TEST_ARGS)" "$(srcdir)"/$@.sh >
_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
cmdlinefsbacknl2:
@echo $@
- @-$(LOCALES) AWK="$(AWKPROG)" "$(srcdir)"/$@.sh > _$@ 2>&1 || echo
EXIT CODE: $$? >>_$@
+ @-$(LOCALES) AWK="$(AWKPROG) $(GAWK_TEST_ARGS)" "$(srcdir)"/$@.sh >
_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
compare2:
@@ -2278,6 +2279,11 @@ regexpbrack2:
@-AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1
|| echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+regexpuparrow:
+ @echo $@
+ @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1
|| echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
regexprange:
@echo $@
@-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE:
$$? >>_$@
diff --git a/test/Makefile.am b/test/Makefile.am
index 89d0d8fd..e56523af 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1155,6 +1155,9 @@ EXTRA_DIST = \
regexpbrack2.ok \
regexprange.awk \
regexprange.ok \
+ regexpuparror.awk \
+ regexpuparror.in \
+ regexpuparror.ok \
regexsub.awk \
regexsub.ok \
reginttrad.awk \
@@ -1517,6 +1520,7 @@ BASIC_TESTS = \
printf0 printf1 printfchar prmarscl prmreuse prt1eval prtoeval \
rand randtest range1 range2 readbuf rebrackloc rebt8b1 rebuild \
redfilnm regeq regex3minus regexpbad regexpbrack regexpbrack2 \
+ regexpuparrow \
regexprange regrange reindops reparse resplit rri1 rs rscompat \
rsnul1nl rsnulbig rsnulbig2 rsnullre rsnulw rstest1 rstest2 \
rstest3 rstest4 rstest5 rswhite scalar sclforin sclifin setrec0 \
diff --git a/test/Makefile.in b/test/Makefile.in
index a267203c..b4996265 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1423,6 +1423,9 @@ EXTRA_DIST = \
regexpbrack2.ok \
regexprange.awk \
regexprange.ok \
+ regexpuparror.awk \
+ regexpuparror.in \
+ regexpuparror.ok \
regexsub.awk \
regexsub.ok \
reginttrad.awk \
@@ -1785,6 +1788,7 @@ BASIC_TESTS = \
printf0 printf1 printfchar prmarscl prmreuse prt1eval prtoeval \
rand randtest range1 range2 readbuf rebrackloc rebt8b1 rebuild \
redfilnm regeq regex3minus regexpbad regexpbrack regexpbrack2 \
+ regexpuparrow \
regexprange regrange reindops reparse resplit rri1 rs rscompat \
rsnul1nl rsnulbig rsnulbig2 rsnullre rsnulw rstest1 rstest2 \
rstest3 rstest4 rstest5 rswhite scalar sclforin sclifin setrec0 \
@@ -3306,12 +3310,12 @@ clsflnam:
cmdlinefsbacknl:
@echo $@
- @-$(LOCALES) AWK="$(AWKPROG)" "$(srcdir)"/$@.sh > _$@ 2>&1 || echo
EXIT CODE: $$? >>_$@
+ @-$(LOCALES) AWK="$(AWKPROG) $(GAWK_TEST_ARGS)" "$(srcdir)"/$@.sh >
_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
cmdlinefsbacknl2:
@echo $@
- @-$(LOCALES) AWK="$(AWKPROG)" "$(srcdir)"/$@.sh > _$@ 2>&1 || echo
EXIT CODE: $$? >>_$@
+ @-$(LOCALES) AWK="$(AWKPROG) $(GAWK_TEST_ARGS)" "$(srcdir)"/$@.sh >
_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
compare2:
@@ -4079,6 +4083,11 @@ regexpbrack2:
@-AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1
|| echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+regexpuparrow:
+ @echo $@
+ @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1
|| echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
regexprange:
@echo $@
@-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE:
$$? >>_$@
diff --git a/test/Maketests b/test/Maketests
index 1531b2b4..75810e91 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -197,12 +197,12 @@ clsflnam:
cmdlinefsbacknl:
@echo $@
- @-$(LOCALES) AWK="$(AWKPROG)" "$(srcdir)"/$@.sh > _$@ 2>&1 || echo
EXIT CODE: $$? >>_$@
+ @-$(LOCALES) AWK="$(AWKPROG) $(GAWK_TEST_ARGS)" "$(srcdir)"/$@.sh >
_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
cmdlinefsbacknl2:
@echo $@
- @-$(LOCALES) AWK="$(AWKPROG)" "$(srcdir)"/$@.sh > _$@ 2>&1 || echo
EXIT CODE: $$? >>_$@
+ @-$(LOCALES) AWK="$(AWKPROG) $(GAWK_TEST_ARGS)" "$(srcdir)"/$@.sh >
_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
compare2:
@@ -220,16 +220,6 @@ concat2:
@-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE:
$$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-cmdlinefsbacknl:
- @echo $@
- @-$(LOCALES) AWK="$(AWKPROG) $(GAWK_TEST_ARGS)" "$(srcdir)"/$@.sh >
_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
- @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-
-cmdlinefsbacknl2:
- @echo $@
- @-$(LOCALES) AWK="$(AWKPROG) $(GAWK_TEST_ARGS)" "$(srcdir)"/$@.sh >
_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
- @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-
concat3:
@echo $@
@-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE:
$$? >>_$@
@@ -980,6 +970,11 @@ regexpbrack2:
@-AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1
|| echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+regexpuparrow:
+ @echo $@
+ @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1
|| echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
regexprange:
@echo $@
@-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE:
$$? >>_$@
diff --git a/test/regexpuparrow.awk b/test/regexpuparrow.awk
new file mode 100644
index 00000000..5d979f8c
--- /dev/null
+++ b/test/regexpuparrow.awk
@@ -0,0 +1,7 @@
+BEGIN { RS = ".^" }
+
+{
+ gsub(/.^/, ">&<")
+ print NR, $0
+ print "RT=<" RT ">"
+}
diff --git a/test/regexpuparrow.in b/test/regexpuparrow.in
new file mode 100644
index 00000000..979ba510
--- /dev/null
+++ b/test/regexpuparrow.in
@@ -0,0 +1,2 @@
+a.^b
+a.^b
diff --git a/test/regexpuparrow.ok b/test/regexpuparrow.ok
new file mode 100644
index 00000000..8824dc9e
--- /dev/null
+++ b/test/regexpuparrow.ok
@@ -0,0 +1,4 @@
+1 a.^b
+a.^b
+
+RT=<>
diff --git a/test/reindops.awk b/test/reindops.awk
index 13ae6576..6a580e5f 100644
--- a/test/reindops.awk
+++ b/test/reindops.awk
@@ -1,6 +1,6 @@
{
if ($1 !~ /^+[2-9]/)
- print "gawk is broken"
+ print "gawk now follows posix"
else
- print "gawk is ok"
+ print "gawk is using gnu regex"
}
diff --git a/test/reindops.ok b/test/reindops.ok
index f9605fd3..16d12b7f 100644
--- a/test/reindops.ok
+++ b/test/reindops.ok
@@ -1 +1 @@
-gawk is ok
+gawk now follows posix
-----------------------------------------------------------------------
Summary of changes:
pc/Makefile.tst | 10 ++++++++--
test/Makefile.am | 4 ++++
test/Makefile.in | 13 +++++++++++--
test/Maketests | 19 +++++++------------
test/regexpuparrow.awk | 7 +++++++
test/regexpuparrow.in | 2 ++
test/regexpuparrow.ok | 4 ++++
test/reindops.awk | 4 ++--
test/reindops.ok | 2 +-
9 files changed, 46 insertions(+), 19 deletions(-)
create mode 100644 test/regexpuparrow.awk
create mode 100644 test/regexpuparrow.in
create mode 100644 test/regexpuparrow.ok
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5457-g7c1bc863,
Arnold Robbins <=