[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [patch] testsuite/date/date-works:
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2008-04-27 20:57:51
Message-ID: 200804272257.51755.vda.linux () googlemail ! com
[Download RAW message or body]

On Sunday 27 April 2008 16:17, Cristian Ionescu-Idbohrn wrote:
> Please consider this test enhancement.

I added it as a separate test: "date-works-1"

host_date=/bin/date

There's no telling that this is "standard" date.

On my system, for example, /bin/* are busybox applets,
/usr/bin/* are "standard" ones.

I don't see how to do it cleanly.
Maybe runtest shall have a -s PATH_TO_STD_UTILS option?

Until then, I generally prefer to have testsuite
to not test bbox output with "standard" output,
but to test against fixed strings/patterns.

I am adding it to svn. FYI: runtest -v says:

FAIL: date-works-1
++ busybox date -d 1:2 +%T
+ dt=01:02:00
+ test x01:02:00 = x01:02:00
++ busybox date -d 1:2:3 +%T
+ dt=01:02:03
+ test x01:02:03 = x01:02:03
+ host_date=/bin/date
++ /bin/date -d '1/2 3:4'
date: invalid date '1/2 3:4'
+ hdt=
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic