]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Thu, 12 Jun 2003 20:02:07 +0000 (20:02 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 12 Jun 2003 20:02:07 +0000 (20:02 +0000)
tests/date/Makefile.am
tests/date/Makefile.in
tests/date/date-tests

index fae74c7f88591ddb2c0586cac3730de544d27960..0c2ffa88a328b252b75dec546a9d925aa717cf3a 100644 (file)
@@ -10,7 +10,7 @@ rel-2e.X rel-2f.X rel-2g.X rel-3a.X next-s.X next-m.X next-h.X next-d.X \
 next-w.X next-mo.X next-y.X utc-0.X utc-0a.X utc-1.I utc-1.X utc-1a.I \
 utc-1a.X date2sec-0.X date2sec-0a.X date2sec-1.X sec2date-0.X this-m.X \
 this-h.X this-w.X this-mo.X this-y.X risks-1.X regress-1.X datevtime-1.X \
-rfc822-1.X relative-1.X relative-2.X wide-fmt.X
+rfc822-1.X relative-1.X relative-2.X wide-fmt.X moname-d-y.X
 run_gen = 1.O 1.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E \
 leap-1.O leap-1.E U95-1.O U95-1.E U95-2.O U95-2.E U95-3.O U95-3.E U92-1.O \
 U92-1.E U92-2.O U92-2.E U92-3.O U92-3.E V92-1.O V92-1.E V92-2.O V92-2.E \
@@ -25,7 +25,7 @@ date2sec-0a.O date2sec-0a.E date2sec-1.O date2sec-1.E sec2date-0.O \
 sec2date-0.E this-m.O this-m.E this-h.O this-h.E this-w.O this-w.E this-mo.O \
 this-mo.E this-y.O this-y.E risks-1.O risks-1.E regress-1.O regress-1.E \
 datevtime-1.O datevtime-1.E rfc822-1.O rfc822-1.E relative-1.O relative-1.E \
-relative-2.O relative-2.E wide-fmt.O wide-fmt.E
+relative-2.O relative-2.E wide-fmt.O wide-fmt.E moname-d-y.O moname-d-y.E
 ##test-files-end
 
 EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
index 8e952713364a0f6bc87e408ce73f27753cf39f63..9e1b1b9e85af60b1e8c0c7c3be33eb2b283d1b74 100644 (file)
@@ -161,7 +161,7 @@ rel-2e.X rel-2f.X rel-2g.X rel-3a.X next-s.X next-m.X next-h.X next-d.X \
 next-w.X next-mo.X next-y.X utc-0.X utc-0a.X utc-1.I utc-1.X utc-1a.I \
 utc-1a.X date2sec-0.X date2sec-0a.X date2sec-1.X sec2date-0.X this-m.X \
 this-h.X this-w.X this-mo.X this-y.X risks-1.X regress-1.X datevtime-1.X \
-rfc822-1.X relative-1.X relative-2.X wide-fmt.X
+rfc822-1.X relative-1.X relative-2.X wide-fmt.X moname-d-y.X
 
 run_gen = 1.O 1.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E \
 leap-1.O leap-1.E U95-1.O U95-1.E U95-2.O U95-2.E U95-3.O U95-3.E U92-1.O \
@@ -177,7 +177,7 @@ date2sec-0a.O date2sec-0a.E date2sec-1.O date2sec-1.E sec2date-0.O \
 sec2date-0.E this-m.O this-m.E this-h.O this-h.E this-w.O this-w.E this-mo.O \
 this-mo.E this-y.O this-y.E risks-1.O risks-1.E regress-1.O regress-1.E \
 datevtime-1.O datevtime-1.E rfc822-1.O rfc822-1.E relative-1.O relative-1.E \
-relative-2.O relative-2.E wide-fmt.O wide-fmt.E
+relative-2.O relative-2.E wide-fmt.O wide-fmt.E moname-d-y.O moname-d-y.E
 
 
 EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
index 5f98dc306b9a00723bf28cdc4a5944c14a11257e..2f8cfc041c456190c6eeef0a9a611c0990f472ca 100755 (executable)
@@ -1098,8 +1098,26 @@ else
   esac
 fi
 test -s wide-fmt.E || rm -f wide-fmt.E
+LANG=C TZ=UTC0 $xx --iso -d May-23-2003  > moname-d-y.O 2> moname-d-y.E
+code=$?
+if test $code != 0; then
+  $echo "Test moname-d-y(LANG=C TZ=UTC0) failed: ../../src/date return code $code differs from expected value 0" 1>&2
+  errors=`expr $errors + 1`
+else
+  cmp moname-d-y.O $srcdir/moname-d-y.X > /dev/null 2>&1
+  case $? in
+    0) if test "$VERBOSE"; then $echo "passed moname-d-y(LANG=C TZ=UTC0)"; fi;;
+    1) $echo "Test moname-d-y(LANG=C TZ=UTC0) failed: files moname-d-y.O and $srcdir/moname-d-y.X differ" 1>&2
+       (diff -c moname-d-y.O $srcdir/moname-d-y.X) 2> /dev/null
+       errors=`expr $errors + 1`;;
+    2) $echo "Test moname-d-y(LANG=C TZ=UTC0) may have failed." 1>&2
+       $echo The command "cmp moname-d-y.O $srcdir/moname-d-y.X" failed. 1>&2
+       errors=`expr $errors + 1`;;
+  esac
+fi
+test -s moname-d-y.E || rm -f moname-d-y.E
 if test $errors = 0; then
-  $echo Passed all 60 tests. 1>&2
+  $echo Passed all 61 tests. 1>&2
 else
   $echo Failed $errors tests. 1>&2
 fi