svn commit: trunk/busybox/testsuite/date

vda at busybox.net vda at busybox.net
Thu Apr 24 19:37:11 UTC 2008


Author: vda
Date: 2008-04-24 12:37:11 -0700 (Thu, 24 Apr 2008)
New Revision: 21852

Log:
partially fix date testsuite



Modified:
   trunk/busybox/testsuite/date/date-R-works
   trunk/busybox/testsuite/date/date-format-works
   trunk/busybox/testsuite/date/date-u-works
   trunk/busybox/testsuite/date/date-works


Changeset:
Modified: trunk/busybox/testsuite/date/date-R-works
===================================================================
--- trunk/busybox/testsuite/date/date-R-works	2008-04-24 18:44:30 UTC (rev 21851)
+++ trunk/busybox/testsuite/date/date-R-works	2008-04-24 19:37:11 UTC (rev 21852)
@@ -1,2 +1 @@
 test x"`date -R`" = x"`busybox date -R`"
-

Modified: trunk/busybox/testsuite/date/date-format-works
===================================================================
--- trunk/busybox/testsuite/date/date-format-works	2008-04-24 18:44:30 UTC (rev 21851)
+++ trunk/busybox/testsuite/date/date-format-works	2008-04-24 19:37:11 UTC (rev 21852)
@@ -1 +1,4 @@
-test x"`date +%d/%m/%y`" = x"`busybox date +%d/%m/%y`"
+# TODO: gnu date doesn't accept '2000.11.22-11:22:33' format,
+# but accepts '2000-11-22 11:22:33'. We must follow.
+test x"01/01/99" = x"`busybox date -d 1999.01.01-11:22:33 '+%d/%m/%y'`"
+test x"22/11/00" = x"`busybox date -d 2000.11.22-11:22:33 '+%d/%m/%y'`"

Modified: trunk/busybox/testsuite/date/date-u-works
===================================================================
--- trunk/busybox/testsuite/date/date-u-works	2008-04-24 18:44:30 UTC (rev 21851)
+++ trunk/busybox/testsuite/date/date-u-works	2008-04-24 19:37:11 UTC (rev 21852)
@@ -1,2 +1 @@
-test x"Wed Apr 23 11:22:33 UTC 2008" = x"`busybox date -u -d 11:22:33`"
-
+test x"Sat Jan  1 11:22:33 UTC 2000" = x"`TZ=CET-1CEST-2 busybox date -u -d 2000.01.01-11:22:33`"

Modified: trunk/busybox/testsuite/date/date-works
===================================================================
--- trunk/busybox/testsuite/date/date-works	2008-04-24 18:44:30 UTC (rev 21851)
+++ trunk/busybox/testsuite/date/date-works	2008-04-24 19:37:11 UTC (rev 21852)
@@ -1,2 +1 @@
 test x"`date`" = x"`busybox date`"
-




More information about the busybox-cvs mailing list