]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
. SH-UTILS-1_16
authorJim Meyering <jim@meyering.net>
Mon, 27 Jan 1997 03:15:14 +0000 (03:15 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 27 Jan 1997 03:15:14 +0000 (03:15 +0000)
old/sh-utils/NEWS
tests/date/Makefile.am
tests/date/Makefile.in
tests/date/date-tests

index 1ca9708de108c6601269bbccae0180266d58a424..67c37ed640c2c806087052945dc0d20fd3b0ed51 100644 (file)
@@ -1,7 +1,7 @@
 Changes in release 1.16
-1.15a
 * stty -tabs works properly
 * add tests for date
+* date --date "02/29/1996 - 1 year" now works properly
 
 Changes in release 1.15
 * nice works with very recently-changed GNU libc getopt
index 21f1c0fe55b28f6abbcdbf2f4c914273b518d4de..b29961cb6c3bad327b85865c69604b4f1832cd78 100644 (file)
@@ -3,7 +3,11 @@
 ##test-files-begin
 x = date
 explicit =
-maint_gen =
+maint_gen = t1.exp t2.exp t3.exp t4.exp t5.exp t6.exp t7.exp t8.exp t9.exp \
+tleap-1.exp
+run_gen = t1.out t1.err t2.out t2.err t3.out t3.err t4.out t4.err t5.out \
+t5.err t6.out t6.err t7.out t7.err t8.out t8.err t9.out t9.err tleap-1.out \
+tleap-1.err
 ##test-files-end
 
 EXTRA_DIST = mk-script.pl Test.pm $x-tests $(explicit) $(maint_gen)
index ced74eb869a9f0477d6963a03e871a684133dc0a..2a62e54d5aad6c5bc99d6e168babd8d2190ced45 100644 (file)
@@ -45,7 +45,11 @@ CC = @CC@
 
 x = date
 explicit =
-maint_gen =
+maint_gen = t1.exp t2.exp t3.exp t4.exp t5.exp t6.exp t7.exp t8.exp t9.exp \
+tleap-1.exp
+run_gen = t1.out t1.err t2.out t2.err t3.out t3.err t4.out t4.err t5.out \
+t5.err t6.out t6.err t7.out t7.err t8.out t8.err t9.out t9.err tleap-1.out \
+tleap-1.err
 
 EXTRA_DIST = mk-script.pl Test.pm $x-tests $(explicit) $(maint_gen)
 noinst_SCRIPTS = $x-tests
index 83e19a6fa6d5a426190eaf5ff3286c6adfd41edb..c092371815b5efbc6167d70719d6dd377f4e8638 100755 (executable)
@@ -162,8 +162,25 @@ else
   esac
 fi
 test -s t9.err || rm -f t9.err
+LANG=C TZ=UTC $xx --date '02/29/1996 - 1 year' +%Y-%m-%d  > tleap-1.out 2> tleap-1.err
+code=$?
+if test $code != 0 ; then
+  $echo "Test leap-1(LANG=C TZ=UTC) failed: ../../src/date return code $code differs from expected value 0" 1>&2
+  errors=`expr $errors + 1`
+else
+  cmp tleap-1.out $srcdir/tleap-1.exp
+  case $? in
+    0) if test "$VERBOSE" ; then $echo "passed leap-1(LANG=C TZ=UTC)"; fi ;;
+    1) $echo "Test leap-1(LANG=C TZ=UTC) failed: files tleap-1.out and $srcdir/tleap-1.exp differ" 1>&2;
+       errors=`expr $errors + 1` ;;
+    2) $echo "Test leap-1(LANG=C TZ=UTC) may have failed." 1>&2;
+       $echo The command "cmp tleap-1.out $srcdir/tleap-1.exp" failed. 1>&2 ;
+       errors=`expr $errors + 1` ;;
+  esac
+fi
+test -s tleap-1.err || rm -f tleap-1.err
 if test $errors = 0 ; then
-  $echo Passed all 9 tests. 1>&2
+  $echo Passed all 10 tests. 1>&2
 else
   $echo Failed $errors tests. 1>&2
 fi