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. gawk-4.1.0-1482-g248f1f


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-1482-g248f1f7
Date: Thu, 25 Jun 2015 19:59:31 +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  248f1f7ae2244e407218d3decd66423e89c21d05 (commit)
       via  dc578b50b37e6f025971375a3ce52f23830049b2 (commit)
      from  0302c2f241b0a4ab47a0e60213c132c4135fed93 (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=248f1f7ae2244e407218d3decd66423e89c21d05

commit 248f1f7ae2244e407218d3decd66423e89c21d05
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Jun 25 22:59:11 2015 +0300

    New test for debugger and typed regexps.

diff --git a/test/ChangeLog b/test/ChangeLog
index 8d74c4e..08661b3 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -3,6 +3,11 @@
        * Makefile.am (typeof3, typeof4): New tests.
        * typeof2.awk, typeof2.ok, typeof3.awk, typeof3.ok: New files.
 
+       Unrelated:
+
+       * Makefile.am (dbugtypedre): New tests.
+       * dbugtypedre.awk, dbugtypedre.in, dbugtypedre.ok: New files.
+
 2015-06-21         Arnold D. Robbins     <address@hidden>
 
        * Makefile.am (typeof2): New test.
diff --git a/test/Makefile.am b/test/Makefile.am
index 842f9bd..cbec8a9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -177,6 +177,9 @@ EXTRA_DIST = \
        datanonl.ok \
        dbugeval.in \
        dbugeval.ok \
+       dbugtypedre.awk \
+       dbugtypedre.in \
+       dbugtypedre.ok \
        defref.awk \
        defref.ok \
        delargv.awk \
@@ -1085,7 +1088,7 @@ UNIX_TESTS = \
 GAWK_EXT_TESTS = \
        aadelete1 aadelete2 aarray1 aasort aasorti argtest arraysort \
        backw badargs beginfile1 beginfile2 binmode1 charasbytes \
-       colonwarn clos1way crlf dbugeval delsub devfd devfd1 devfd2 dumpvars 
errno exit \
+       colonwarn clos1way crlf dbugeval dbugtypedre delsub devfd devfd1 devfd2 
dumpvars errno exit \
        fieldwdth fpat1 fpat2 fpat3 fpat4 fpatnull fsfwfs funlen \
        functab1 functab2 functab3 fwtest fwtest2 fwtest3 \
        genpot gensub gensub2 getlndir gnuops2 gnuops3 gnureops gsubind \
@@ -2132,6 +2135,11 @@ negtime::
        @TZ=GMT AWKPATH="$(srcdir)" $(AWK) -f address@hidden >_$@ 2>&1 || echo 
EXIT CODE: $$? >>_$@
        @AWKPATH="$(srcdir)" $(AWK) -f checknegtime.awk address@hidden _$@ && 
rm -f _$@
 
+dbugtypedre:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -D -f address@hidden < address@hidden >_$@ 
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 efb0bad..196590d 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -434,6 +434,9 @@ EXTRA_DIST = \
        datanonl.ok \
        dbugeval.in \
        dbugeval.ok \
+       dbugtypedre.awk \
+       dbugtypedre.in \
+       dbugtypedre.ok \
        defref.awk \
        defref.ok \
        delargv.awk \
@@ -1341,7 +1344,7 @@ UNIX_TESTS = \
 GAWK_EXT_TESTS = \
        aadelete1 aadelete2 aarray1 aasort aasorti argtest arraysort \
        backw badargs beginfile1 beginfile2 binmode1 charasbytes \
-       colonwarn clos1way crlf dbugeval delsub devfd devfd1 devfd2 dumpvars 
errno exit \
+       colonwarn clos1way crlf dbugeval dbugtypedre delsub devfd devfd1 devfd2 
dumpvars errno exit \
        fieldwdth fpat1 fpat2 fpat3 fpat4 fpatnull fsfwfs funlen \
        functab1 functab2 functab3 fwtest fwtest2 fwtest3 \
        genpot gensub gensub2 getlndir gnuops2 gnuops3 gnureops gsubind \
@@ -2567,6 +2570,11 @@ negtime::
        @echo $@
        @TZ=GMT AWKPATH="$(srcdir)" $(AWK) -f address@hidden >_$@ 2>&1 || echo 
EXIT CODE: $$? >>_$@
        @AWKPATH="$(srcdir)" $(AWK) -f checknegtime.awk address@hidden _$@ && 
rm -f _$@
+
+dbugtypedre:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -D -f address@hidden < address@hidden >_$@ 
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/dbugtypedre.awk b/test/dbugtypedre.awk
new file mode 100644
index 0000000..b8c0b6d
--- /dev/null
+++ b/test/dbugtypedre.awk
@@ -0,0 +1 @@
address@hidden "typeof1.awk"
diff --git a/test/dbugtypedre.in b/test/dbugtypedre.in
new file mode 100644
index 0000000..00158c6
--- /dev/null
+++ b/test/dbugtypedre.in
@@ -0,0 +1,4 @@
+watch e
+run
+next
+p e
diff --git a/test/dbugtypedre.ok b/test/dbugtypedre.ok
new file mode 100644
index 0000000..de3c8bc
--- /dev/null
+++ b/test/dbugtypedre.ok
@@ -0,0 +1,17 @@
+Watchpoint 1: e
+Starting program: 
+scalar_n
+untyped
+regexp
+scalar_s
+array scalar_n
+Stopping in BEGIN ...
+Watchpoint 1: e
+  Old value: untyped variable
+  New value: @/foo/
+main() at `typeof1.awk':7
+7              e = @/foo/ ; print typeof(e)
+regexp
+8              print typeof(@/bar/)
+e = @/foo/
+EXIT CODE: 2

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=dc578b50b37e6f025971375a3ce52f23830049b2

commit dc578b50b37e6f025971375a3ce52f23830049b2
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Jun 25 22:44:21 2015 +0300

    Make typeof3 and typeof4 tests actually work.

diff --git a/test/Makefile.am b/test/Makefile.am
index 0c32fa6..842f9bd 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1105,7 +1105,7 @@ GAWK_EXT_TESTS = \
        splitarg4 strftime \
        strtonum switch2 symtab1 symtab2 symtab3 symtab4 symtab5 symtab6 \
        symtab7 symtab8 symtab9 \
-       typedregex1 typeof1 typeof2
+       typedregex1 typeof1 typeof2 typeof3 typeof4
        timeout
 
 EXTRA_TESTS = inftest regtest
diff --git a/test/Makefile.in b/test/Makefile.in
index 8156277..efb0bad 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1361,7 +1361,7 @@ GAWK_EXT_TESTS = \
        splitarg4 strftime \
        strtonum switch2 symtab1 symtab2 symtab3 symtab4 symtab5 symtab6 \
        symtab7 symtab8 symtab9 \
-       typedregex1 typeof1 typeof2
+       typedregex1 typeof1 typeof2 typeof3 typeof4
 
 EXTRA_TESTS = inftest regtest
 INET_TESTS = inetdayu inetdayt inetechu inetecht
@@ -3916,6 +3916,16 @@ typeof2:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+typeof3:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+typeof4:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f 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 baf973e..e4cea0d 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -1347,6 +1347,16 @@ typeof2:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+typeof3:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+typeof4:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f 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/typeof3.ok b/test/typeof3.ok
index c8f458a..8186ad9 100644
--- a/test/typeof3.ok
+++ b/test/typeof3.ok
@@ -5,4 +5,5 @@ scalar_n
 4
 scalar_n
 untyped
-gawk: test/typeof3.awk:18: fatal: attempt to use scalar `a["1"]' as an array
+gawk: typeof3.awk:18: fatal: attempt to use scalar `a["1"]' as an array
+EXIT CODE: 2

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

Summary of changes:
 test/ChangeLog       |    5 +++++
 test/Makefile.am     |   12 ++++++++++--
 test/Makefile.in     |   22 ++++++++++++++++++++--
 test/Maketests       |   10 ++++++++++
 test/dbugtypedre.awk |    1 +
 test/dbugtypedre.in  |    4 ++++
 test/dbugtypedre.ok  |   17 +++++++++++++++++
 test/typeof3.ok      |    3 ++-
 8 files changed, 69 insertions(+), 5 deletions(-)
 create mode 100644 test/dbugtypedre.awk
 create mode 100644 test/dbugtypedre.in
 create mode 100644 test/dbugtypedre.ok


hooks/post-receive
-- 
gawk



reply via email to

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