gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, master, updated. 221cec9b6b8e17a4ca2bb00


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. 221cec9b6b8e17a4ca2bb000afa6e989195d761b
Date: Sun, 16 Dec 2012 15:45:37 +0000

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, master has been updated
       via  221cec9b6b8e17a4ca2bb000afa6e989195d761b (commit)
      from  52c4d6df2661e9ebdde8fcc0ea2e9308f37efd2e (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=221cec9b6b8e17a4ca2bb000afa6e989195d761b

commit 221cec9b6b8e17a4ca2bb000afa6e989195d761b
Author: Arnold D. Robbins <address@hidden>
Date:   Sun Dec 16 17:45:10 2012 +0200

    Two new SYMTAB tests.

diff --git a/test/ChangeLog b/test/ChangeLog
index 2b66951..af93a7e 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,11 @@
+2012-12-16         Arnold D. Robbins     <address@hidden>
+
+       * symtab7.awk, symtab7.in, symtab7.ok, symtab8.awk, symtab8.in,
+       symtab8.ok: New files.
+       * Makefile.am (EXTRA_DIST): Add new files.
+       (symtab7, symtab8): New tests.
+       Thanks to Assaf Gordon <address@hidden>.
+
 2012-11-19         Arnold D. Robbins     <address@hidden>
 
        * Makefile.am (readdir): Add a 'this could fail message'.
diff --git a/test/Makefile.am b/test/Makefile.am
index fc1a107..793df59 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -807,6 +807,12 @@ EXTRA_DIST = \
        symtab5.ok \
        symtab6.awk \
        symtab6.ok \
+       symtab7.awk \
+       symtab7.in \
+       symtab7.ok \
+       symtab8.awk \
+       symtab8.in \
+       symtab8.ok \
        synerr1.awk \
        synerr1.ok \
        synerr2.awk \
@@ -929,7 +935,7 @@ GAWK_EXT_TESTS = \
        rebuf regx8bit reint reint2 rsstart1 \
        rsstart2 rsstart3 rstest6 shadow sortfor sortu splitarg4 strftime \
        strtonum switch2 \
-       symtab1 symtab2 symtab3 symtab4 symtab5 symtab6
+       symtab1 symtab2 symtab3 symtab4 symtab5 symtab6 symtab7 symtab8
 
 EXTRA_TESTS = inftest regtest
 
@@ -1704,6 +1710,12 @@ symtab6:
        @grep -v '^ENVIRON' __$@ | grep -v '^PROCINFO' > _$@ ; rm __$@
        @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
 
+symtab8:
+       @echo $@
+       @$(AWK) -d__$@ -f $(srcdir)/address@hidden $(srcdir)/address@hidden >_$@
+       @grep -v '^ENVIRON' __$@ | grep -v '^PROCINFO' >> _$@ ; rm __$@
+       @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
+
 # Targets generated for other tests:
 include Maketests
 
diff --git a/test/Makefile.in b/test/Makefile.in
index b46f01f..b97d438 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1019,6 +1019,12 @@ EXTRA_DIST = \
        symtab5.ok \
        symtab6.awk \
        symtab6.ok \
+       symtab7.awk \
+       symtab7.in \
+       symtab7.ok \
+       symtab8.awk \
+       symtab8.in \
+       symtab8.ok \
        synerr1.awk \
        synerr1.ok \
        synerr2.awk \
@@ -1140,7 +1146,7 @@ GAWK_EXT_TESTS = \
        rebuf regx8bit reint reint2 rsstart1 \
        rsstart2 rsstart3 rstest6 shadow sortfor sortu splitarg4 strftime \
        strtonum switch2 \
-       symtab1 symtab2 symtab3 symtab4 symtab5 symtab6
+       symtab1 symtab2 symtab3 symtab4 symtab5 symtab6 symtab7 symtab8
 
 EXTRA_TESTS = inftest regtest
 INET_TESTS = inetdayu inetdayt inetechu inetecht
@@ -2084,6 +2090,12 @@ symtab6:
        @$(AWK) -d__$@ -f $(srcdir)/address@hidden
        @grep -v '^ENVIRON' __$@ | grep -v '^PROCINFO' > _$@ ; rm __$@
        @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
+
+symtab8:
+       @echo $@
+       @$(AWK) -d__$@ -f $(srcdir)/address@hidden $(srcdir)/address@hidden >_$@
+       @grep -v '^ENVIRON' __$@ | grep -v '^PROCINFO' >> _$@ ; rm __$@
+       @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
 Gt-dummy:
 # file Maketests, generated from Makefile.am by the Gentests program
 addcomma:
@@ -3291,6 +3303,11 @@ symtab5:
        @AWKPATH=$(srcdir) $(AWK) -f address@hidden  < $(srcdir)/address@hidden 
>_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
 
+symtab7:
+       @echo $@
+       @AWKPATH=$(srcdir) $(AWK) -f address@hidden  < $(srcdir)/address@hidden 
>_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+       @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
+
 double1:
        @echo $@
        @AWKPATH=$(srcdir) $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
diff --git a/test/Maketests b/test/Maketests
index 6e9a1a7..e7ab3c7 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -1205,6 +1205,11 @@ symtab5:
        @AWKPATH=$(srcdir) $(AWK) -f address@hidden  < $(srcdir)/address@hidden 
>_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
 
+symtab7:
+       @echo $@
+       @AWKPATH=$(srcdir) $(AWK) -f address@hidden  < $(srcdir)/address@hidden 
>_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+       @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
+
 double1:
        @echo $@
        @AWKPATH=$(srcdir) $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
diff --git a/test/symtab7.awk b/test/symtab7.awk
new file mode 100644
index 0000000..eb05114
--- /dev/null
+++ b/test/symtab7.awk
@@ -0,0 +1,7 @@
+BEGIN {
+       getline
+       for (i = 1; i <= NF;++i)
+               SYMTAB[$i] = i
+}
+
+{ print $Age }
diff --git a/test/symtab7.in b/test/symtab7.in
new file mode 100644
index 0000000..d2b5645
--- /dev/null
+++ b/test/symtab7.in
@@ -0,0 +1,3 @@
+Name Age
+John 30
+Jane 40
diff --git a/test/symtab7.ok b/test/symtab7.ok
new file mode 100644
index 0000000..2832883
--- /dev/null
+++ b/test/symtab7.ok
@@ -0,0 +1,2 @@
+30
+40
diff --git a/test/symtab8.awk b/test/symtab8.awk
new file mode 100644
index 0000000..2c80831
--- /dev/null
+++ b/test/symtab8.awk
@@ -0,0 +1,5 @@
+{
+       SYMTAB[$1] = 1
+}
+
+END { print $test }
diff --git a/test/symtab8.in b/test/symtab8.in
new file mode 100644
index 0000000..9daeafb
--- /dev/null
+++ b/test/symtab8.in
@@ -0,0 +1 @@
+test
diff --git a/test/symtab8.ok b/test/symtab8.ok
new file mode 100644
index 0000000..8560c75
--- /dev/null
+++ b/test/symtab8.ok
@@ -0,0 +1,28 @@
+test
+ARGC: 2
+ARGIND: 1
+ARGV: array, 2 elements
+BINMODE: 0
+CONVFMT: "%.6g"
+ERRNO: ""
+FIELDWIDTHS: ""
+FILENAME: "./symtab8.in"
+FNR: 1
+FPAT: "[^[:space:]]+"
+FS: " "
+IGNORECASE: 0
+LINT: 0
+NF: 1
+NR: 1
+OFMT: "%.6g"
+OFS: " "
+ORS: "\n"
+PREC: 53
+RLENGTH: 0
+ROUNDMODE: "N"
+RS: "\n"
+RSTART: 0
+RT: "\n"
+SUBSEP: "\034"
+TEXTDOMAIN: "messages"
+test: 1

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

Summary of changes:
 test/ChangeLog                   |    8 ++++++++
 test/Makefile.am                 |   14 +++++++++++++-
 test/Makefile.in                 |   19 ++++++++++++++++++-
 test/Maketests                   |    5 +++++
 test/symtab7.awk                 |    7 +++++++
 test/symtab7.in                  |    3 +++
 test/symtab7.ok                  |    2 ++
 test/symtab8.awk                 |    5 +++++
 test/symtab8.in                  |    1 +
 test/{dumpvars.ok => symtab8.ok} |   14 ++++++++------
 10 files changed, 70 insertions(+), 8 deletions(-)
 create mode 100644 test/symtab7.awk
 create mode 100644 test/symtab7.in
 create mode 100644 test/symtab7.ok
 create mode 100644 test/symtab8.awk
 create mode 100644 test/symtab8.in
 copy test/{dumpvars.ok => symtab8.ok} (72%)


hooks/post-receive
-- 
gawk



reply via email to

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