Jim Meyering
e556eaa59e
Say that the first process substitution example is contrived.
...
* doc/coreutils.texi (tee invocation): ... and show how to do
it properly. Pointed out by James Antill.
2007-11-01 21:25:28 +01:00
Jim Meyering
636f0e101a
Use mktemp, not mkdtemp, to create test directories.
...
* tests/test-lib.sh: Use the mktemp binary we've just built,
not the mkdtemp script.
* tests/mkdtemp: Remove file.
* tests/Makefile.am (EXTRA_DIST): Remove mkdtemp.
2007-11-01 20:13:11 +01:00
Jim Meyering
d1986f81d0
Adjust a seq subtest not to depend on the vagaries of floating point.
...
* tests/misc/seq (float-3): Use 10.94 as the endpoint, not 10.95,
since 10.95 was precisely in the middle of the interval, and with
a %.1f format could map to either 10.9 or 11.0.
Reported by Mike Frysinger
2007-11-01 12:10:06 +01:00
Jim Meyering
094e533fad
Make the new printf-surprise test more precise.
...
* tests/test-lib.sh (require_ulimit_): New function.
* tests/misc/printf-surprise: Use ulimit -v to trigger the fixed bug,
and rather than checking printf's exit status (which would go wrong
on FreeBSD 6.1, since their printf(3) function doesn't require
lots of memory in this case) simply test whether it outputs
the first 10 bytes.
2007-11-01 12:06:11 +01:00
Jim Meyering
accad81d2b
Accommodate FreeBSD 6.1 hard-link-to-symlink differences.
...
* tests/cp/same-file: Detect when linking to a symlink links to
the target of the symlink (FreeBSD 6.1 does this, Linux does not),
and skip the few tests that would otherwise fail.
Redirect output of final comparison to stderr, since all stdout
is already redirected.
2007-11-01 11:59:08 +01:00
Jim Meyering
75d6936a08
Fix a "make distcheck" failure.
...
* Makefile.maint (my-distcheck): Don't stub-out dirname,
since build-aux/check.mk now uses it.
2007-10-31 08:42:17 +01:00
Jim Meyering
8c8bf861de
* bootstrap.conf (gnulib_modules): Add xprintf-posix.
2007-10-31 08:40:51 +01:00
Jim Meyering
5654415595
Avoid seq floating-point test failure on FreeBSD 6.1.
...
* tests/misc/seq (float-4): Also accept -0.0.
2007-10-30 11:17:59 +01:00
Jim Meyering
b00f87cfa3
Change a "make dist" diagnostic.
...
* GNUmakefile: Don't imply that $(_curr-ver) is the new version string.
2007-10-29 12:24:39 +01:00
Bob Proulx
b8e8d02861
Improve color terminal escape usage.
...
* build-aux/check.mk (am__tty_colors): Use 'tput' to deduce
terminal color capabilities.
2007-10-29 05:10:23 -06:00
Jim Meyering
b63b1b4ce2
Don't try to colorize a dumb terminal.
...
* build-aux/check.mk (am__tty_colors): Skip colors if $TERM is "dumb".
Thanks to Bob Proulx.
2007-10-29 10:37:09 +01:00
Jim Meyering
0cc7aa3a29
Remove gnulib's printf-posix module, for now.
...
* bootstrap.conf (gnulib_modules): It caused too many test failures.
2007-10-29 10:14:58 +01:00
Jim Meyering
cb75780b50
Remove spurious semicolon after "else".
...
* build-aux/check.mk (am__tty_colors): Fix syntax error.
2007-10-29 10:01:25 +01:00
Jim Meyering
3e9a0b87d7
Attribute suggestion for last change.
2007-10-29 09:49:50 +01:00
Jim Meyering
89157ad207
If $TERM is empty, don't use colors. This helps the buildbot,
...
since it produces its result in an environment with a tty, but
we don't want color codes in that case.
* build-aux/check.mk (am__tty_colors): Test for nonempty $TERM.
2007-10-29 09:47:52 +01:00
Jim Meyering
973d42b90d
Always initialize terminal colorization string variables.
...
* build-aux/check.mk (am__tty_colors): Always initialize red, grn, etc.,
In case they're defined in the environment.
2007-10-29 08:41:08 +01:00
Jim Meyering
e1bb6139fb
Avoid test failure in non-srcdir build vs. the git tree.
...
* tests/check.mk (vc_exe_in_TESTS): Run this test only in a
srcdir build directory. Reported by Andreas Schwab.
2007-10-29 07:47:21 +01:00
Jim Meyering
709a27ba48
Define ENOTSUP, not ENOSYS. Needed on OpenBSD 3.9.
...
* gl/lib/se-context.in.h (ENOTSUP): Define if missing.
* gl/lib/se-selinux.in.h: Likewise.
2007-10-28 19:04:59 +01:00
Jim Meyering
39e668ce5b
Define ENODATA, for FreeBSD 5.0 and 6.1.
...
* src/system.h (ENODATA): Define, if missing.
2007-10-28 18:16:54 +01:00
Jim Meyering
68c33a103d
Run autoreconf, not just autoconf, to avoid warnings.
...
* GNUmakefile (dummy): Otherwise, we'd sometimes get a warning
about autoconf version mismatch between what was used to generate
aclocal.m4 and the currently-running autoconf.
2007-10-28 15:54:44 +01:00
Jim Meyering
6555874879
Require gnulib's printf-posix module, to support Interix.
...
* bootstrap.conf (gnulib_modules): Add printf-posix.
2007-10-28 15:38:17 +01:00
Jim Meyering
39639a8a6a
Help xgettext recognize more printf-style format strings.
...
* bootstrap.conf (XGETTEXT_OPTIONS): Add directives for
error, error_at_line, xasprintf, xfprintf and xprintf.
2007-10-28 15:37:56 +01:00
Jim Meyering
1f05c616d2
Adjust format string so msgfmt doesn't object.
...
* src/df.c (main): Use "%s%s" (not %smsg) to print "msg" with or
without a "Warning: " prefix. Reported by Clytie Siddall.
2007-10-27 09:42:27 +02:00
Jim Meyering
2e270515f7
Clean up tests/Makefile.am.
...
* tests/Makefile.am (EXTRA_DIST): Remove $(TESTS). No longer defined.
(TESTS_ENVIRONMENT): Remove definition.
2007-10-27 09:06:11 +02:00
Jim Meyering
5d9cb87197
* build-aux/check.mk: Merge with latest from Akim.
2007-10-27 09:04:47 +02:00
Jim Meyering
cdd44f674b
Add a test for the printf fix of 2007-10-21.
...
* tests/misc/printf-surprise: New file. Test for 2007-10-21's fix.
* tests/misc/Makefile.am (TESTS): Add printf-surprise.
2007-10-27 08:50:10 +02:00
Jim Meyering
e80f3acc36
Add attribution for the expr.c-vs-xgettext report.
2007-10-25 09:20:44 +02:00
Jim Meyering
3c6e338b0f
Remove vestiges of cvs-gnulib-checkout process. Now we use git.
...
* bootstrap: Remove support for now-unnecessary option, --cvs-user,
and envvars CVS_USER, CVS_RSH.
2007-10-24 Micah Cowan <micah@cowan.name >
2007-10-25 09:06:29 +02:00
Micah Cowan
35eca590ad
Tell xgettext that "ARG1 % ARG2" is not a C format string.
...
* src/expr.c (usage): Add a comment to override xgettext's default
behavior, which would classify "ARG1 % ARG2" as a fprintf-style
format string.
2007-10-25 08:59:30 +02:00
Jim Meyering
edb5faa297
Avoid diagnostics from sha1sum when there is no cached checksum.
...
* bootstrap (update_po_files): Skip the sha1sum check if the po.s1
file hasn't been created yet.
2007-10-24 22:31:35 +02:00
Jim Meyering
0edca4f61f
Get gnulib from the git repository, not from an obsolete cvs one.
...
* bootstrap: Suggestion from Micah Cowan.
2007-10-24 22:09:57 +02:00
Jim Meyering
ffc29e91c4
Doc improvements.
...
* README-hacking: Prefer the no-hyphen variant of git commands,
e.g., use "git pull" not "git-pull".
Don't presume that the only way to read this document is via a
prior git clone: provide instructions for cloning coreutils, too.
* README-hacking: Add "cd automake" in build instructions.
From Bob Proulx.
2007-10-24 09:13:59 +02:00
Jim Meyering
b924d0380e
Don't fail part 2 of tests/rm/unreadable when run as root.
...
* tests/rm/unreadable: With UID == 0, expect different results.
Reported by Mike Frysinger.
2007-10-24 08:50:09 +02:00
Jim Meyering
def157c927
* README-hacking: Refer to LZMA Utils < http://tukaani.org/lzma/ >.
2007-10-23 15:44:58 +02:00
Paul Eggert
758a615bb5
* README-hacking: Describe how to build with LZMA.
2007-10-22 23:29:40 +02:00
Jim Meyering
433a31d3dc
Remove git-version-gen's first parameter.
...
* build-aux/git-version-gen: Add comments.
Remove first command-line parameter.
* configure.ac: Remove corresponding first argument.
* GNUmakefile (_curr-ver): Likewise.
2007-10-22 21:43:12 +02:00
Jim Meyering
74695771cb
Attribute the printf bug report.
2007-10-21 18:19:54 +02:00
Jim Meyering
ffa639900b
* NEWS: Mention the printf fix.
2007-10-21 18:17:30 +02:00
Jim Meyering
a64e33f79b
Reorder tests to run more basic ones earlier.
...
* tests/misc/Makefile.am (TESTS): Reorder.
* tests/Makefile.am (SUBDIRS): Reorder.
Signed-off-by: Jim Meyering <meyering@redhat.com >
2007-10-21 14:01:28 +02:00
Jim Meyering
af5d0c363a
tr: do not reject an unmatched [:lower:] or [:upper:] in SET1.
...
* NEWS: Mention this.
* src/tr.c (get_next) [RE_CHAR_CLASS]: Don't skip the loop when
processing [:lower:] and [:upper:].
(main): Require [:lower:] or [:upper:] in SET1 only when
when one of those is specified in SET2.
* tests/tr/Test.pm: Add tests for this fix.
Reported by Per Starbäck.
Signed-off-by: Jim Meyering <meyering@redhat.com >
2007-10-21 14:01:28 +02:00
Jim Meyering
c365bafa81
* tests/misc/help-version: Add a comment.
...
Signed-off-by: Jim Meyering <meyering@redhat.com >
2007-10-21 14:01:28 +02:00
Jim Meyering
b1ab7101aa
Detect printf(3) failure due to ENOMEM.
...
* src/printf.c: Include "xprintf.h"
(print_direc): Use xprintf, rather than printf.
* bootstrap.conf (gnulib_modules): Add xprintf.
* po/POTFILES.in: Add lib/xprintf.c.
Signed-off-by: Jim Meyering <meyering@redhat.com >
2007-10-21 14:01:27 +02:00
Jim Meyering
60a5ad4b94
Put always-failing programs first in PATH, so tests cannot mistakenly run installed versions.
...
* Makefile.maint (my-distcheck): Set up a bogus bin/ dir, to be used
for "make check".
Signed-off-by: Jim Meyering <meyering@redhat.com >
2007-10-21 14:01:15 +02:00
Jim Meyering
a34bea4976
* doc/coreutils.texi: Add a cross-reference to bashref's Process Substitution node.
2007-10-20 13:53:45 +02:00
Jim Meyering
4319cbc0a1
* doc/coreutils.texi (tee invocation): Fix typo. Add a little.
2007-10-20 12:00:54 +02:00
Jim Meyering
5dabe472b0
Adjust tests to pass, now that Test.pm ones use check.mk.
...
* tests/check.mk (vc_exe_in_TESTS): Adjust regexp not to match the
"TESTS = $x-tests" line in each Test.pm-derived Makefile.am file.
* tests/sort/main: Remove this unused file.
2007-10-20 10:07:12 +02:00
Jim Meyering
736b78af4f
Ensure that Test.pm-derived tests use the right $PATH.
...
* tests/Makefile.am.in: Include $(top_srcdir)/tests/check.mk.
2007-10-20 09:06:39 +02:00
Bob Proulx
18e4c15198
Prevent "make check" from leaving mktemp /tmp/tmp.* files behind.
...
* tests/misc/help-version (mktemp_args): Tell mktemp to create
its temporary file in the current directory.
2007-10-20 08:26:57 +02:00
Jim Meyering
2a0e737cfd
Show how to make tee redirect to multiple processes.
2007-10-16 12:46:18 +02:00
Jim Meyering
84c3fb94ac
Pull all TESTS_ENVIRONMENT settings "up" into tests/check.mk.
...
* tests/Makefile.am.in (TESTS_ENVIRONMENT): Remove definition.
* tests/chgrp/Makefile.am: Likewise.
* tests/chmod/Makefile.am: Likewise.
* tests/chown/Makefile.am: Likewise.
* tests/cp/Makefile.am: Likewise.
* tests/dd/Makefile.am: Likewise.
* tests/du/Makefile.am: Likewise.
* tests/install/Makefile.am: Likewise.
* tests/ln/Makefile.am: Likewise.
* tests/ls/Makefile.am: Likewise.
* tests/misc/Makefile.am: Likewise.
* tests/mkdir/Makefile.am: Likewise.
* tests/mv/Makefile.am: Likewise.
* tests/readlink/Makefile.am: Likewise.
* tests/rm/Makefile.am: Likewise.
* tests/rmdir/Makefile.am: Likewise.
* tests/tail-2/Makefile.am: Likewise.
* tests/touch/Makefile.am: Likewise.
* tests/check.mk (TESTS_ENVIRONMENT) [EXEEXT, EGREP, MAKE, PERL]:
[CONFIG_HEADER, build_programs, host_os, host_triplet, PATH]:
[REPLACE_GETCWD, CU_TEST_NAME]: Add definitions here.
* tests/misc/pwd-long: Use $abs_top_builddir/src, not $BUILD_SRC_DIR.
* tests/dd/skip-seek: Don't use $ENV{PROG}.
* tests/rm/empty-name: Likewise.
* tests/rm/unreadable: Likewise.
* tests/mv/i-1: Likewise.
2007-10-14 21:47:08 +02:00