gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-307


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-3079-g2e12810
Date: Sat, 24 Nov 2018 12:45:29 -0500 (EST)

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, gawk-4.2-stable has been updated
       via  2e1281063c92115a8da96906aab6e2be0e9dd78d (commit)
      from  a3ad4921f31020b0f2bedc936fcd050ef5c2e698 (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=2e1281063c92115a8da96906aab6e2be0e9dd78d

commit 2e1281063c92115a8da96906aab6e2be0e9dd78d
Author: Arnold D. Robbins <address@hidden>
Date:   Sat Nov 24 19:45:09 2018 +0200

    Add test for command line typed regexp assignment.

diff --git a/test/ChangeLog b/test/ChangeLog
index 522934a..36599fd 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -4,6 +4,11 @@
        * Makefile.am (spacere): ... here. Added test.
        Per request from Eli Zaretskii to help porting to MinGW.
 
+       Unrelated:
+
+       * Makefile.am (EXTRA_DIST): New test: typedregex4.
+       * typedregex4.awk, typedregex4.ok: New files.
+
 2018-10-10         Arnold D. Robbins     <address@hidden>
 
        * Makefile.am (profile1): Add minus to ignore errors on final
diff --git a/test/Makefile.am b/test/Makefile.am
index 5ca312c..aa7e6fc 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1176,6 +1176,8 @@ EXTRA_DIST = \
        typedregex2.ok \
        typedregex3.awk \
        typedregex3.ok \
+       typedregex4.awk \
+       typedregex4.ok \
        typeof1.awk \
        typeof1.ok \
        typeof2.awk \
@@ -1311,7 +1313,8 @@ GAWK_EXT_TESTS = \
        shadow shadowbuiltin sortfor sortfor2 sortu sourcesplit 
split_after_fpat \
        splitarg4 strftime strftfld strtonum strtonum1 switch2 symtab1 symtab2 \
        symtab3 symtab4 symtab5 symtab6 symtab7 symtab8 symtab9 symtab10 \
-       typedregex1 typedregex2 typedregex3 typeof1 typeof2 typeof3 typeof4 \
+       typedregex1 typedregex2 typedregex3 typedregex4 \
+       typeof1 typeof2 typeof3 typeof4 \
        typeof5 timeout \
        watchpoint1
 
@@ -2220,6 +2223,11 @@ spacere:
        @LC_ALL=C AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || 
echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+typedregex4:
+       @echo $@
+       @$(AWK) -v x=@/foo/ -f "$(srcdir)"/address@hidden y=@/bar/ /dev/null 
>_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
 # Targets generated for other tests:
 include Maketests
 
diff --git a/test/Makefile.in b/test/Makefile.in
index 8a66e7b..ccab814 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1569,7 +1569,8 @@ GAWK_EXT_TESTS = \
        shadow shadowbuiltin sortfor sortfor2 sortu sourcesplit 
split_after_fpat \
        splitarg4 strftime strftfld strtonum strtonum1 switch2 symtab1 symtab2 \
        symtab3 symtab4 symtab5 symtab6 symtab7 symtab8 symtab9 symtab10 \
-       typedregex1 typedregex2 typedregex3 typeof1 typeof2 typeof3 typeof4 \
+       typedregex1 typedregex2 typedregex3 typedregex4 \
+       typeof1 typeof2 typeof3 typeof4 \
        typeof5 timeout \
        watchpoint1
 
@@ -2663,6 +2664,11 @@ spacere:
        @echo $@
        @LC_ALL=C AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || 
echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+typedregex4:
+       @echo $@
+       @$(AWK) -v x=@/foo/ -f "$(srcdir)"/address@hidden y=@/bar/ /dev/null 
>_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 Gt-dummy:
 # file Maketests, generated from Makefile.am by the Gentests program
 addcomma:
diff --git a/test/typedregex4.awk b/test/typedregex4.awk
new file mode 100644
index 0000000..8e866c3
--- /dev/null
+++ b/test/typedregex4.awk
@@ -0,0 +1,7 @@
+BEGIN {
+       print "typeof(x) =", typeof(x)
+}
+
+END {
+       print "typeof(y) =", typeof(y)
+}
diff --git a/test/typedregex4.ok b/test/typedregex4.ok
new file mode 100644
index 0000000..6656b61
--- /dev/null
+++ b/test/typedregex4.ok
@@ -0,0 +1,2 @@
+typeof(x) = regexp
+typeof(y) = regexp

-----------------------------------------------------------------------

Summary of changes:
 test/ChangeLog       |  5 +++++
 test/Makefile.am     | 10 +++++++++-
 test/Makefile.in     |  8 +++++++-
 test/typedregex4.awk |  7 +++++++
 test/typedregex4.ok  |  2 ++
 5 files changed, 30 insertions(+), 2 deletions(-)
 create mode 100644 test/typedregex4.awk
 create mode 100644 test/typedregex4.ok


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]