GNU bug report logs - #23379
[PATCH] tests/misc/date.pl: uppercase/lowercase test

Previous Next

Package: coreutils;

Reported by: Jakub Martisko <jamartis <at> redhat.com>

Date: Tue, 26 Apr 2016 15:33:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 23379 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#23379; Package coreutils. (Tue, 26 Apr 2016 15:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jakub Martisko <jamartis <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 26 Apr 2016 15:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jakub Martisko <jamartis <at> redhat.com>
To: bug-coreutils <at> gnu.org
Subject: [PATCH] tests/misc/date.pl: uppercase/lowercase test
Date: Tue, 26 Apr 2016 09:36:18 +0200
[Message part 1 (text/plain, inline)]
Added some basic test for date lowercase/uppercase output. Depends on 
https://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00015.html
[date.pl.patch (text/x-patch, inline)]
From e02e9de17cfa5999a3ef83f6a10c754bb425b274 Mon Sep 17 00:00:00 2001
From: Jakub Martisko <jamartis <at> unused-4-107.brq.redhat.com>
Date: Tue, 12 Apr 2016 14:54:42 +0200
Subject: [PATCH] test: Add lowercase/uppercase flag tests for date

*tests/misc/date.pl: Added tests for lowercase output and
uppercase output. depends on:
https://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00015.html
---
 tests/misc/date.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/misc/date.pl b/tests/misc/date.pl
index 3454dcc..faf16a1 100755
--- a/tests/misc/date.pl
+++ b/tests/misc/date.pl
@@ -47,6 +47,8 @@ my @Tests =
      # test-name, [option, option, ...] {OUT=>"expected-output"}
      #
      ['1', "-d '$d1' +'%% %a %A %b %B'", {OUT=>"% Sun Sunday Jan January"}],
+     ['1U', "-d '$d1' +'%% %\#a %\#A %\#b %\#B'", {OUT=>"% SUN SUNDAY JAN JANUARY"}],
+     ['1L', "-d '$d1' +'%% %\#^a %\#^A %\#^b %\#^B'", {OUT=>"% sun sunday jan january"}],
 
      # [Actually, skip it on *all* systems. -- this Perl code is run at
      # distribution-build-time, not at configure/test time.  ]
-- 
2.5.0


Information forwarded to bug-coreutils <at> gnu.org:
bug#23379; Package coreutils. (Tue, 26 Apr 2016 16:05:02 GMT) Full text and rfc822 format available.

Message #8 received at 23379 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Jakub Martisko <jamartis <at> redhat.com>, 23379 <at> debbugs.gnu.org
Subject: Re: bug#23379: [PATCH] tests/misc/date.pl: uppercase/lowercase test
Date: Tue, 26 Apr 2016 17:04:11 +0100
On 26/04/16 08:36, Jakub Martisko wrote:
> Added some basic test for date lowercase/uppercase output. Depends on
> https://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00015.html

Thanks I responded on that thread.
Re the patch here, we'd need doc updates for date.c and coreutils.texi
But all this would be gated on acceptance for glibc's strtime implementation,
as it would be best to avoid divergence on its interface.

thanks,
Pádraig





This bug report was last modified 9 years and 52 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.