summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revamp test-related Makefiles.Jim Meyering2008-04-21342-1123/+1096
| | | | | | | | | | | | | | | | | | | | | | | | | | | One side-effect of this change is that "make check" now works even if you put "." early in your shell's search PATH (don't do that!). Remove all test-related Makefile.am files, except those generated by mk-script. Instead, tests/Makefile.am now lists not only the tests directly under tests/, but also those in tests/*/ that are not generated by mk-script, e.g., cp/abuse, cp/acl, mv/i-1, etc. A lot of these changes are like this: -. $srcdir/../lang-default +. $top_srcdir/tests/lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh * configure.ac (AC_CONFIG_FILES): Remove corresponding Makefiles. * tests/check.mk (vc_exe_in_TESTS): Relax syntax requirements. * tests/rwx-to-mode: Remove file. Rewritten as... * tests/test-lib.sh (rwx_to_mode_): ...this new function. * tests/Makefile.am (EXTRA_DIST): Remove rwx-to-mode. (SUBDIRS): Remove each dir with a removed Makefile.am. (EXTRA_DIST): Add $(TESTS). (TESTS): Add over 300 entries.
* * tests/misc/Makefile.am (built_programs): Remove. Unused.Jim Meyering2008-04-201-3/+0
|
* Use "env" to invoke potential built-ins.Jim Meyering2008-04-203-13/+8
| | | | | | | * tests/misc/pwd-unreadable-parent: Invoke pwd via "env -- pwd", rather than via an absolute name. * tests/touch/not-owner: Likewise for test. * tests/chmod/setgid: Likewise.
* * .prev-version: Record previous version: 6.11.Jim Meyering2008-04-191-1/+1
|
* Version 6.11.v6.11Jim Meyering2008-04-191-1/+1
| | | | | | * NEWS: Record release date. Signed-off-by: Jim Meyering <meyering@redhat.com>
* * maint.mk (writable-files): Fix syntax error.Jim Meyering2008-04-191-1/+1
|
* * doc/.gitignore: Add texinfo-related outputs.Jim Meyering2008-04-191-0/+15
|
* * THANKS: Update my address, correct encoding for a name.Sven Joachim2008-04-191-2/+2
|
* pr -e, with a mix of backspaces and TABs, could corrupt the heapJim Meyering2008-04-193-2/+25
| | | | | | | | | | | | | * tests/pr/Test.pm: New tests for the above. * src/pr.c (char_to_clump): Ensure that "input_position" never goes below 0. Also, elide any backspace encountered when input_position is 0, to be compatible at least with /bin/pr from Solaris 10. This bug is present in the original version: b25038ce9a234ea0906ddcbd8a0012e917e6c661 * NEWS [Bug fixes]: Mention this. Report and diagnosis by Cristian Cadar, Daniel Dunbar and Dawson Engler in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13272
* * src/dircolors.hin: Add .flv. Move .svgz to "image formats".Mike Frysinger2008-04-191-1/+2
|
* md5sum -c: ignore a line with a NUL byte among checksum hex digitsJim Meyering2008-04-193-2/+20
| | | | | | | | | | | * src/md5sum.c (hex_digits): Require that all "digest_hex_bytes" be hexadecimal digits, not just those before the first NUL byte. This bug dates back to the original version: 3763a4f24eb21be40674d13ff7b04e078f473e85 * tests/misc/md5sum (nul-in-cksum): Test for the above. * NEWS [Bug fixes]: Mention this. Prompted by a report from Flóki Pálsson in http://bugzilla.redhat.com/439531
* tests: accommodate built-in mknod more cleanly stillMatthew Woehlke2008-04-161-2/+2
| | | | * tests/mkdir/selinux: Use "env" rather than "nice".
* tests: accommodate built-in mknod more cleanlyJim Meyering2008-04-161-8/+4
| | | | | | | | * tests/mkdir/selinux: Undo most of previous change, bc22dbbf844f31ddaf2e68b167d0128a985d73ab, and instead invoke the command via "nice". Using "exec" should be enough, but isn't with OpenBSD's PD KSH v5.2.14 99/07/13.2. Eric Blake suggested using nice.
* mknod --help: note that this command may be a shell built-inJim Meyering2008-04-161-0/+1
| | | | | * src/mknod.c (usage): Print USAGE_BUILTIN_WARNING. Suggestion from Eric Blake.
* avoid "may be used uninitialized" warning from newer gccJim Meyering2008-04-161-1/+1
| | | | * src/md5sum.c (digest_check) [lint]: Initialize local, "filename".
* tests: add a comment explaining the potential failureJim Meyering2008-04-161-0/+4
|
* tests: avoid mkdir/selinux failure when mknod is a shell built-inJim Meyering2008-04-161-1/+7
| | | | * tests/mkdir/selinux: Skip the mknod test if it's a built-in.
* md5sum, sha1sum, etc: handle invalid input (i.e., don't segfault)Jim Meyering2008-04-154-9/+19
| | | | | | | | * src/md5sum.c (bsd_split_3): Return right away if s_len == 0. * tests/misc/md5sum (bsd-segv): New test for the above. * tests/misc/sha1sum (bsd-segv): Likewise. * NEWS: Mention the bug fix. Reported by Cristian Cadar, Daniel Dunbar and Dawson Engler.
* tests: don't fail on systems without a "stat" syscallJim Meyering2008-04-144-6/+9
| | | | | | | | | * tests/test-lib.sh (require_strace_): Add a syscall parameter. * tests/ls/stat-free-symlinks: Update caller. * tests/mv/atomic: Likewise. * tests/mv/atomic2: Likewise. Reported by Mike Frysinger in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13222
* tests: accommodate a different errno string on Irix 6.5Jim Meyering2008-04-141-0/+1
| | | | | * tests/mkdir/selinux: Also handle "Not supported". Reported by Peter Fales.
* seq: work around floating point inaccuracies on more systemsJim Meyering2008-04-142-9/+19
| | | | | | | | | | | * src/seq.c: Include <math.h> for fabs. Include <float.h> for DBL_EPSILON. (abs_rel_diff): New function. (print_numbers): Use abs_rel_diff rather than a strict equality test. Without this change, Solaris 8 and Irix 6.2 would fail the float-6 test. Reported by Peter Fales in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13183 * src/c99-to-c89.diff: Adjust seq.c offsets.
* doc: fix typoJim Meyering2008-04-141-1/+1
| | | | * coreutils.texi (sort invocation): s/Whitespace/White space/
* tests: Accommodate a different errno value on OSF/1 4.0F.Jim Meyering2008-04-121-1/+2
| | | | * tests/mkdir/selinux: Also handle "Function not implemented".
* Avoid link failure when using mkstemp replacement.Jim Meyering2008-04-121-1/+2
| | | | | * src/Makefile.am (tac_LDADD): Add $(LIB_CLOCK_GETTIME). This is necessary at least on a DEC Alpha OSF/1 4.0F.
* tests: always enable VERBOSE output, now that test framework works betterJim Meyering2008-04-122-0/+5
| | | | | * cfg.mk: Set VERBOSE=yes. * tests/check.mk: Likewise.
* doc: avoid "make pdf" failure (due to texi2dvi bug?)Jim Meyering2008-04-111-1/+3
| | | | | * doc/coreutils.texi (filesZeroFromOption): Comment out @cindex-in-@macro use.
* doc: use a valid texinfo macro nameJim Meyering2008-04-111-3/+4
| | | | * doc/coreutils.texi (filesZeroFromOption): s/0/Zero/
* tests: accommodate a different errno value on HPUX-10.20Jim Meyering2008-04-081-1/+3
| | | | | * tests/mkdir/selinux: Also handle "Unknown system error". Reported by Peter Fales.
* doc: factor out --files0-from duplicationJim Meyering2008-04-061-24/+14
| | | | | * coreutils.texi (wc invocation) [files0fromOption]: New macro. Use it. (du invocation): Use it here, too.
* * src/c99-to-c89.diff: Adjust remove.c diffs.Jim Meyering2008-04-061-6/+22
|
* remove.c: accommodate systems with negative errno valuesJim Meyering2008-04-062-13/+26
| | | | | | | | | | This is required at least on Haiku and BeOS. * src/remove.c (write_protected_non_symlink): Return 1 for a write- protected non-symlink, 0 if we determine it's not, and -1 upon error (setting errno accordingly only in this final case). (prompt): Deal with the changed semantics of the above function. Based on this patch from Axel Dörfler: http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13071
* Accommodate building on OS/2 (www.ecomstation.com Ecs v2 rc4)Jim Meyering2008-04-052-1/+2
| | | | | * configure.in: Also filter out carriage returns from the value of $no_install_progs_default. Reported by Elbert Pol.
* "touch E; mkfifo F; cp -fR F E" no longer fails due to existing EJim Meyering2008-04-024-1/+49
| | | | | | | | | | * src/copy.c (copy_internal): Revert change of 2005-03-01, 4303f0454592421eea48be87777d32a49e1d5e5b Prompted by Michael Stone, who pointed me to an old bug report from Ian Jackson: http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/7504 * tests/cp/special-f: New file. Test for the above. * tests/cp/Makefile.am (TESTS): Add special-f. * NEWS: mention this bug fix.
* copy.c: remove an in-function #ifdefJim Meyering2008-04-021-2/+10
| | | | | | | | * src/copy.c (rpl_mkfifo) [! HAVE_MKFIFO]: New function. (mkfifo) [! HAVE_MKFIFO]: Define to rpl_mkfifo. (copy_internal): Remove #ifdef. Signed-off-by: Jim Meyering <meyering@redhat.com>
* HACKING: rename README-contribution-guidelinesJim Meyering2008-04-021-0/+3
| | | | | README-contribution-guidelines: Rename to .. HACKING: ...this.
* bootstrap: remove dangling *.[ch] symlinks from libJim Meyering2008-04-011-3/+4
| | | | | * bootstrap [dangling symlink removal]: Match *.[ch] files, too. Suggestion from Eric Blake.
* bootstrap: make find's -depth option be the first.Jim Meyering2008-04-011-1/+1
| | | | | * bootstrap [dangling symlink removal]: Move find's -depth option to precede all others, to avoid a warning.
* * bootstrap: Remove dangling symlinks from lib (aka $source_base), too.Jim Meyering2008-04-011-1/+3
|
* Avoid root-only SELinux-related test failures w/o mcstransd.Jim Meyering2008-04-012-13/+18
| | | | | | | | | | When mcstransd is not running (i.e., after service mcstrans stop), "make check" as root would provoke two test failures. * tests/cp/cp-a-selinux: Use the context, root:object_r:tmp_t:s0, that works both with and without mcstransd. Thanks to Eric Paris for the tip and to Ondřej Vašík for alerting me to the problem. Reported by Robert Scheck in <http://bugzilla.redhat.com/436717>.
* root tests: Set NON_ROOT_USERNAME if not set already.Jim Meyering2008-04-011-1/+6
| | | | | * tests/test-lib.sh (require_root_): This avoids failure of a couple of root-only tests that require a value for that envvar.
* texinfo formatting tweaksJim Meyering2008-04-011-6/+7
| | | | | * coreutils.texi: Avoid some overfull hbox warnings. (Treating / specially): Use @file{/} rather than a bare /.
* printf doc: xref print(3) and libc's "Output Conversion Syntax" nodeJim Meyering2008-04-012-8/+13
| | | | | | | | * coreutils.texi (printf invocation): Add xref. Use "The GNU C Library Reference Manual" as the name of the 'libc' document consistently. * man/printf.x: Add See also: printf(3). Suggested by A. Costa in http://bugs.debian.org/465522
* Emit "#line 1" right after the two 'read-only/GENERATED' lines.Jim Meyering2008-03-311-0/+1
| | | | | | | * bootstrap (cp_mark_as_generated): This preserves line numbering e.g., in assertions, which is important when correlating between coreutils test failures and the original files in gnulib/tests. Suggested by Eric Blake.
* * README-contribution-guidelines: Mention how to amend a commit.Jim Meyering2008-03-311-0/+12
| | | | Suggestion from Pádraig Brady.
* Begin documenting contribution guidelines.Jim Meyering2008-03-311-0/+299
| | | | * README-contribution-guidelines: New file. For now, not distributed.
* "rm -r DIR" would mistakenly prompt about very long namesJim Meyering2008-03-314-3/+59
| | | | | | | | | * src/remove.c (write_protected_non_symlink): Return 0(-1) when euidaccess_stat pronounces a writable(not-writable) file, not -1(0). * tests/rm/deep-2: New file. Test for the above-fixed bug. * tests/rm/Makefile.am (TESTS): Add deep-2. Discovered while reviewing this change: http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13071
* * NEWS: Note the dd bug fix. The bug was introduced over 8 years ago:Jim Meyering2008-03-311-0/+3
| | | | 9fca49f67c16c8b42c32e185808fe187cedb0fa7
* dd bug fix: accept e.g., if=/dev/stdin and of=/dev/stdoutPaul Eggert2008-03-312-5/+10
| | | | | | * lib/fd-reopen.c: Work even if FILE is "/dev/stdin". Problem reported by Geoffrey Lee in <http://bugs.debian.org/290727>. * tests/dd/misc: Check for this bug.
* avoid failure of new test on kernel without SELinux supportJim Meyering2008-03-291-2/+5
| | | | | | | * tests/mkdir/selinux: Also accept ENOENT. Reported by Sven Joachim. Signed-off-by: Jim Meyering <meyering@redhat.com>
* tests: accept ENOTSUP message as well as the EINVAL oneJim Meyering2008-03-291-20/+13
| | | | | | | This test would fail on most non-Linux systems because the original expected an "Invalid argument" diagnostic, yet they all produced "Operation not supported". * tests/mkdir/selinux: Accept both strings. Factor out duplication.