mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
Compare commits
3 Commits
FILEUTILS-
...
SH-UTILS-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b103723acc | ||
|
|
03ebea3ec6 | ||
|
|
5f011471a3 |
@@ -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
|
||||
|
||||
@@ -965,7 +965,7 @@ parse_obsolescent_option (int argc, const char *const *argv,
|
||||
n_string_tmp[len] = '\0';
|
||||
|
||||
error (0, 0,
|
||||
_("%s, `%s' is so large that it is not representable"),
|
||||
_("%s: `%s' is so large that it is not representable"),
|
||||
count_lines ? _("number of lines") : _("number of bytes"),
|
||||
n_string_tmp);
|
||||
free (n_string_tmp);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -25,6 +25,10 @@ sub test_vector
|
||||
['7', "-d '$d1' +'%U_%V_%w_%W'", {}, '03_03_0_02', 0],
|
||||
['8', "-d '$d1' +'%x_%X_%y_%Y'", {}, '01/19/97_08:17:48_97_1997', 0],
|
||||
['9', "-d '$d1' +'%z_%Z'", {}, '+0000_GMT', 0],
|
||||
|
||||
['leap-1', "--date '02/29/1996 - 1 year' +%Y-%m-%d", {}, '1997-03-01', 0],
|
||||
|
||||
# FIXME: add a lot more...
|
||||
);
|
||||
|
||||
my @tv;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user