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. 38769b3a29111cc309f6ef3


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. 38769b3a29111cc309f6ef3ac05f4e5ed4456007
Date: Sun, 28 Oct 2012 09:05:27 +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  38769b3a29111cc309f6ef3ac05f4e5ed4456007 (commit)
       via  f15a58325621a744dabc684f2c14e5e0d97b985d (commit)
      from  cea7b7eb1c73fd0680ccf637e9d762f0d26ff6bf (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=38769b3a29111cc309f6ef3ac05f4e5ed4456007

commit 38769b3a29111cc309f6ef3ac05f4e5ed4456007
Author: Arnold D. Robbins <address@hidden>
Date:   Sun Oct 28 11:05:08 2012 +0200

    Fix two tests to work with make diffout.

diff --git a/pc/ChangeLog b/pc/ChangeLog
index 2268234..1ecf078 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-28         Andrew J. Schorr     <address@hidden>
+
+       * Makefile.pc (messages): Adjust to use standard failure test for
+       make diffout.
+
 2012-08-08         Arnold D. Robbins     <address@hidden>
 
        * gawkmisc.pc (os_isreadable): Take IOBUF_PUBLIC instead of fd and
diff --git a/pc/Makefile.tst b/pc/Makefile.tst
index ab56653..6f8f54d 100644
--- a/pc/Makefile.tst
+++ b/pc/Makefile.tst
@@ -302,8 +302,8 @@ poundbang::
 
 messages::
        @echo $@
-       @$(AWK) -f $(srcdir)/messages.awk >out2 2>out3
-       @-$(CMP) $(srcdir)/out1.ok out1 && $(CMP) $(srcdir)/out2.ok out2 && 
$(CMP) $(srcdir)/out3.ok out3 && rm -f out1 out2 out3
+       @$(AWK) -f $(srcdir)/messages.awk >_out2 2>_out3
+       @-$(CMP) $(srcdir)/out1.ok _out1 && $(CMP) $(srcdir)/out2.ok _out2 && 
$(CMP) $(srcdir)/out3.ok _out3 && rm -f _out1 _out2 _out3
 
 argarray::
        @echo $@
@@ -2057,7 +2057,7 @@ $(srcdir)/Maketests: $(srcdir)/Makefile.am 
$(srcdir)/Gentests
        $(AWK) -f $(srcdir)/Gentests "$(srcdir)/Makefile.am" $$files > 
$(srcdir)/Maketests
 
 clean:
-       rm -fr _* core core.* fmtspcl.ok junk out1 out2 out3 strftime.ok test1 
test2 seq *~
+       rm -fr _* core core.* fmtspcl.ok junk strftime.ok test1 test2 seq *~
 
 # An attempt to print something that can be grepped for in build logs
 pass-fail:
diff --git a/test/ChangeLog b/test/ChangeLog
index 7a6a6de..feedd95 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-28         Andrew J. Schorr     <address@hidden>
+
+       * messages.awk, fts.awk: Adjusted so make diffout will work.
+       * Makefile.am (messages): Adjust to use standard failure test for
+       make diffout.
+
 2012-10-19         Arnold D. Robbins     <address@hidden>
 
        * symtab1.awk: Adjust to not print ENVIRON and PROCINFO which won't
diff --git a/test/Makefile.am b/test/Makefile.am
index d5b7bd7..d3c1b14 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1086,8 +1086,8 @@ poundbang::
 
 messages::
        @echo $@
-       @$(AWK) -f $(srcdir)/messages.awk >out2 2>out3
-       @-$(CMP) $(srcdir)/out1.ok out1 && $(CMP) $(srcdir)/out2.ok out2 && 
$(CMP) $(srcdir)/out3.ok out3 && rm -f out1 out2 out3
+       @$(AWK) -f $(srcdir)/messages.awk >_out2 2>_out3
+       @-$(CMP) $(srcdir)/out1.ok _out1 && $(CMP) $(srcdir)/out2.ok _out2 && 
$(CMP) $(srcdir)/out3.ok _out3 && rm -f _out1 _out2 _out3
 
 argarray::
        @echo $@
@@ -1680,7 +1680,7 @@ readdir:
 fts:
        @echo $@
        @$(AWK) -f $(srcdir)/fts.awk
-       @-$(CMP) address@hidden address@hidden && rm -f address@hidden
+       @-$(CMP) address@hidden _$@ && rm -f address@hidden _$@
 
 charasbytes:
        @echo $@
@@ -1697,7 +1697,7 @@ $(srcdir)/Maketests: $(srcdir)/Makefile.am 
$(srcdir)/Gentests
        $(AWK) -f $(srcdir)/Gentests "$(srcdir)/Makefile.am" $$files > 
$(srcdir)/Maketests
 
 clean:
-       rm -fr _* core core.* fmtspcl.ok junk out1 out2 out3 strftime.ok test1 
test2 seq *~ readfile.ok fork.tmp.* testext.awk fts.out1 fts.out2 readdir.ok
+       rm -fr _* core core.* fmtspcl.ok junk strftime.ok test1 test2 seq *~ 
readfile.ok fork.tmp.* testext.awk fts.ok readdir.ok
 
 # An attempt to print something that can be grepped for in build logs
 pass-fail:
diff --git a/test/Makefile.in b/test/Makefile.in
index b6e9d65..c148886 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1467,8 +1467,8 @@ poundbang::
 
 messages::
        @echo $@
-       @$(AWK) -f $(srcdir)/messages.awk >out2 2>out3
-       @-$(CMP) $(srcdir)/out1.ok out1 && $(CMP) $(srcdir)/out2.ok out2 && 
$(CMP) $(srcdir)/out3.ok out3 && rm -f out1 out2 out3
+       @$(AWK) -f $(srcdir)/messages.awk >_out2 2>_out3
+       @-$(CMP) $(srcdir)/out1.ok _out1 && $(CMP) $(srcdir)/out2.ok _out2 && 
$(CMP) $(srcdir)/out3.ok _out3 && rm -f _out1 _out2 _out3
 
 argarray::
        @echo $@
@@ -2061,7 +2061,7 @@ readdir:
 fts:
        @echo $@
        @$(AWK) -f $(srcdir)/fts.awk
-       @-$(CMP) address@hidden address@hidden && rm -f address@hidden
+       @-$(CMP) address@hidden _$@ && rm -f address@hidden _$@
 
 charasbytes:
        @echo $@
@@ -3379,7 +3379,7 @@ $(srcdir)/Maketests: $(srcdir)/Makefile.am 
$(srcdir)/Gentests
        $(AWK) -f $(srcdir)/Gentests "$(srcdir)/Makefile.am" $$files > 
$(srcdir)/Maketests
 
 clean:
-       rm -fr _* core core.* fmtspcl.ok junk out1 out2 out3 strftime.ok test1 
test2 seq *~ readfile.ok fork.tmp.* testext.awk fts.out1 fts.out2 readdir.ok
+       rm -fr _* core core.* fmtspcl.ok junk strftime.ok test1 test2 seq *~ 
readfile.ok fork.tmp.* testext.awk fts.ok readdir.ok
 
 # An attempt to print something that can be grepped for in build logs
 pass-fail:
diff --git a/test/fts.awk b/test/fts.awk
index b90adfb..a1b49cb 100644
--- a/test/fts.awk
+++ b/test/fts.awk
@@ -10,12 +10,12 @@ BEGIN {
        flags = FTS_PHYSICAL
        fts(pathlist, flags, data)
 
-       output = "fts.out1"
+       output = "fts.ok"
        traverse(data)
        close(output)
 
        ftswalk(pathlist, data2)
-       output = "fts.out2"
+       output = "_fts"
        traverse(data2)
        close(output)
 
diff --git a/test/messages.awk b/test/messages.awk
index 555f6e3..50f7d91 100644
--- a/test/messages.awk
+++ b/test/messages.awk
@@ -2,7 +2,7 @@
 # with and without -c (compatibility) flag, redirecting output
 # from gawk to a file or not.  Some results can be quite unexpected. 
 BEGIN {
-       print "Goes to a file out1" > "out1"
+       print "Goes to a file out1" > "_out1"
        print "Normal print statement"
        print "This printed on stdout" > "/dev/stdout"
        print "You blew it!" > "/dev/stderr"

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

commit f15a58325621a744dabc684f2c14e5e0d97b985d
Author: Arnold D. Robbins <address@hidden>
Date:   Sun Oct 28 11:04:45 2012 +0200

    Add stuff to TODO.

diff --git a/TODO b/TODO
index ff11de2..aaf2331 100644
--- a/TODO
+++ b/TODO
@@ -13,6 +13,12 @@ Really make failure to open a socket a non-fatal error (for 
4.1).
 
 DONE: Merge the chapter and the appendix on floating-point math (for 4.1).
 
+Look at code coverage tools, like S2E: https://s2e.epfl.ch/
+
+From Andy: Review the following test cases that they work with make diffout.
+These look suspicious: mmap8k, fmtspcl (the mpfr case), clobber, getlnbuf,
+rtlenmb, profile1, rand (mpfr case).
+
 ------
 
 Code Review:

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

Summary of changes:
 TODO              |    6 ++++++
 pc/ChangeLog      |    5 +++++
 pc/Makefile.tst   |    6 +++---
 test/ChangeLog    |    6 ++++++
 test/Makefile.am  |    8 ++++----
 test/Makefile.in  |    8 ++++----
 test/fts.awk      |    4 ++--
 test/messages.awk |    2 +-
 8 files changed, 31 insertions(+), 14 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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