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.1-stable, updated. gawk-4.1.0-200


From: Eli Zaretskii
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-200-g6520f31
Date: Tue, 28 Jan 2014 17:00:42 +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, gawk-4.1-stable has been updated
       via  6520f31b24575ce7308a8b42c8b617568db6c4d8 (commit)
      from  c5530f370ba70004c2e0bbc712038eaacfd6b2ce (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=6520f31b24575ce7308a8b42c8b617568db6c4d8

commit 6520f31b24575ce7308a8b42c8b617568db6c4d8
Author: Eli Zaretskii <address@hidden>
Date:   Tue Jan 28 18:55:11 2014 +0200

    Fix the test suite for the pc ports.
    
    test/strftime.awk: If DATECMD variable is non-empty, use it instead
    of the literal "date" as the 'date'-like command.
    
    pc/Makefile.tst (strftime): Pass the value of 'date' command
    through the DATECMD variable.
    (readdir): Adapt to changes in test/readdir0.awk.

diff --git a/pc/ChangeLog b/pc/ChangeLog
index c18e087..5f75283 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,9 @@
+2014-01-28  Eli Zaretskii  <address@hidden>
+
+       * Makefile.tst (strftime): Pass the value of 'date' command
+       through the DATECMD variable.
+       (readdir): Adapt to changes in test/readdir0.awk.
+
 2014-01-20         Arnold D. Robbins     <address@hidden>
 
        * Makefile.tst (mbprintf4, backbigs1, backsmalls1): Add warning
diff --git a/pc/Makefile.tst b/pc/Makefile.tst
index c0ec07a..e843eaa 100644
--- a/pc/Makefile.tst
+++ b/pc/Makefile.tst
@@ -439,7 +439,7 @@ strftime::
 #      (LC_ALL=C date) | $(AWK) -v OUTPUT=_$@ -f "$(srcdir)"/strftime.awk
        @GAWKLOCALE=C; export GAWKLOCALE; \
        TZ=GMT0; export TZ; \
-       (LC_ALL=C $(DATE)) | $(AWK) -v OUTPUT=_$@ -f "$(srcdir)"/strftime.awk
+       $(AWK) -v OUTPUT=_$@ -v DATECMD="$(DATE)" -f "$(srcdir)"/strftime.awk
        @-$(CMP) strftime.ok _$@ && rm -f _$@ strftime.ok || exit 0
 
 litoct::
@@ -1039,8 +1039,10 @@ readdir:
        @echo $@
        @echo This test may fail on MinGW if $(LS) does not report full Windows 
file index as the inode
        @$(AWK) -f "$(srcdir)"/readdir.awk $(top_srcdir) > _$@
-#      @ls -afli $(top_srcdir) | sed 1d | $(AWK) -f "$(srcdir)"/readdir0.awk 
-v extout=_$@ $(top_srcdir) > address@hidden
-       @$(LS) -afli $(top_srcdir) | sed 1d | $(AWK) -f 
"$(srcdir)"/readdir0.awk -v extout=_$@ $(top_srcdir) > address@hidden
+       @$(LS) -afi "$(top_srcdir)" > _dirlist
+       @$(LS) -lna "$(top_srcdir)" | sed 1d > _longlist
+       @$(AWK) -f "$(srcdir)"/readdir0.awk -v extout=_$@  \
+               -v dirlist=_dirlist -v longlist=_longlist > address@hidden
        @-$(CMP) address@hidden _$@ && rm -f address@hidden _$@
 
 fts:
diff --git a/test/ChangeLog b/test/ChangeLog
index d9ecfe5..ff57e6d 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-28  Eli Zaretskii  <address@hidden>
+
+       * strftime.awk: If DATECMD variable is non-empty, use it instead
+       of the literal "date" as the 'date'-like command.
+
 2014-01-19         Arnold D. Robbins     <address@hidden>
 
        * Makefile.am (mpfrnegzero): New test.
diff --git a/test/strftime.awk b/test/strftime.awk
index a52957f..73cdc69 100644
--- a/test/strftime.awk
+++ b/test/strftime.awk
@@ -8,7 +8,11 @@
 
 BEGIN {
        maxtries = 10
-       datecmd = "date"
+       # On DOS/Windows, DATECMD is set by the Makefile to point to
+       # Unix-like 'date' command.
+       datecmd = DATECMD
+       if (datecmd == "")
+           datecmd = "date"
        fmt = "%a %b %d %H:%M:%S %Z %Y"
 
        # loop until before equals after, thereby protecting

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

Summary of changes:
 pc/ChangeLog      |    6 ++++++
 pc/Makefile.tst   |    8 +++++---
 test/ChangeLog    |    5 +++++
 test/strftime.awk |    6 +++++-
 4 files changed, 21 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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