<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/test-lib.sh, branch v7.2</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v7.2</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-03-27T08:28:08Z</updated>
<entry>
<title>tests: migrate setgid-check into test-lib.sh</title>
<updated>2009-03-27T08:28:08Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-03-27T08:23:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e65d0d0525159f963b3b859706dc920bcae0a636'/>
<id>urn:sha1:e65d0d0525159f963b3b859706dc920bcae0a636</id>
<content type='text'>
* tests/test-lib.sh (skip_if_setgid_): New function.
* tests/setgid-check: Remove file.
* tests/Makefile.am (EXTRA_DIST): Remove setgid-check.
* tests/chmod/c-option: Use the new function rather than sourcing
the separate file.
* tests/cp/cp-parents: Likewise.
* tests/install/install-C: Likewise.
* tests/mkdir/parents: Likewise.
* tests/mkdir/perm: Likewise.
</content>
</entry>
<entry>
<title>tests: reflect the s/+/./ SELinux indicator change</title>
<updated>2009-03-02T08:35:12Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-02-27T08:16:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0433f90e3d388734888dad17f5fc2f106c59faf4'/>
<id>urn:sha1:0433f90e3d388734888dad17f5fc2f106c59faf4</id>
<content type='text'>
* tests/mkdir/perm: Now that this test is no longer always skipped,
make it work independently of ls: use stat, not ls, to get perm string.
* test-lib.sh (rwx_to_mode_): Use stat, not ls to get perm string
This test was run only when RUN_VERY_EXPENSIVE_TESTS=yes was set.
</content>
</entry>
<entry>
<title>tests: when skipping a test, say why on screen, not just in the log</title>
<updated>2009-03-02T08:35:12Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-02-27T08:12:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1c7d5b58476d5bf5ab8db5d025b7d0820611aae7'/>
<id>urn:sha1:1c7d5b58476d5bf5ab8db5d025b7d0820611aae7</id>
<content type='text'>
* tests/test-lib.sh: Redirect also to descriptor 9.
Better one-line why-skip diagnostics.
* tests/check.mk (TESTS_ENVIRONMENT): Redirect 9 to stderr.
* tests/misc/pwd-unreadable-parent: Remove redundant "skipping..." diag.
</content>
</entry>
<entry>
<title>maint: add copyright notices</title>
<updated>2009-02-18T14:40:44Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-02-18T13:34:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=fa391362e1e607722b874313dec6cdd9db7c62f4'/>
<id>urn:sha1:fa391362e1e607722b874313dec6cdd9db7c62f4</id>
<content type='text'>
* HACKING: Add copyright notice.
* tests/test-lib.sh: Likewise.
</content>
</entry>
<entry>
<title>* tests/test-lib.sh: Use skip_test_... in place of echo...;exit 77.</title>
<updated>2009-02-10T13:39:10Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-02-10T13:30:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1f4fcd083d3c24349a4cc7b4a4d0ef4aad9d26e6'/>
<id>urn:sha1:1f4fcd083d3c24349a4cc7b4a4d0ef4aad9d26e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: avoid skipping stty-* tests</title>
<updated>2009-02-10T13:38:42Z</updated>
<author>
<name>Nix</name>
<email>nix@esperi.org.uk</email>
</author>
<published>2009-02-10T08:04:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9c8e4f69181b1fc8d55accf803761425ba2d8cbf'/>
<id>urn:sha1:9c8e4f69181b1fc8d55accf803761425ba2d8cbf</id>
<content type='text'>
* tests/test-lib.sh (require_controlling_input_terminal_):
Check stdout, not stdin.
</content>
</entry>
<entry>
<title>tests: refactor to use the new getlimits utility</title>
<updated>2009-01-03T15:10:42Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2008-12-12T10:25:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=99be9078383e7fc95bf84b42ea6a0e50afbe6ff4'/>
<id>urn:sha1:99be9078383e7fc95bf84b42ea6a0e50afbe6ff4</id>
<content type='text'>
* tests/Coreutils.pm: Add function to make limits available
* tests/test-lib.sh: ditto
* tests/misc/join: Check for both SIZE_OFLOW and UINTMAX_OFLOW
rather than using arbitrary 2^128
* tests/misc/sort: ditto
* tests/misc/uniq: ditto
* tests/misc/printf: Check for both INT_OFLOW and INT_UFLOW
rather than using arbitrary -2^31
* tests/misc/seq-long-double: Check for INTMAX_OFLOW
rather than using arbitrary 2^63
* tests/misc/split-fail: Check --lines --bytes and --line-bytes
options limits on all platforms. Note getlimits obviates the
need to use expr to check if 32 bit integers are supported,
which I think was invalid anyway as expr now supports bignum?
* tests/misc/test: Check for UINTMAX_OFLOW rather than
using arbitrary 2^64 and 2^128. Check for INTMAX_UFLOW
rather than using arbitrary -2^64
* tests/misc/timeout-parameters: Check for UINT_OFLOW
rather than using arbitrary 2^32
* tests/misc/truncate-overflow: Don't depend on truncate
to determine if we're on a 32 or 64 bit platform and
instead use the various OFF_T limits
* tests/misc/sort-merge: Check for UINTMAX_OFLOW
rather than using arbitrary 2^64+1
* tests/misc/unexpand: ditto
</content>
</entry>
<entry>
<title>tests: don't use "local" in bourne shell scripts</title>
<updated>2008-09-10T11:20:27Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-09-08T06:23:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1084bf78eafe4de0d8f0752a638be97e26157ea1'/>
<id>urn:sha1:1084bf78eafe4de0d8f0752a638be97e26157ea1</id>
<content type='text'>
* tests/test-lib.sh (remove_tmp_, skip_if_mcstransd_is_running_):
Avoid failure on Solaris 11, since their /bin/sh passes the tests
in posix-shell.m4, yet does not support "local" (which is not POSIX).
</content>
</entry>
<entry>
<title>tests: use "Exit $fail", not (exit $fail); exit $fail</title>
<updated>2008-09-10T11:20:10Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-09-07T08:31:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=68561594ca022703e255b3ef5686f176317e5fd4'/>
<id>urn:sha1:68561594ca022703e255b3ef5686f176317e5fd4</id>
<content type='text'>
* tests/test-lib.sh (Exit): New function by Ralf Wildenhues in automake
http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=20594c08f63
* tests/**: Convert all uses:

This restrictive change converted the vast majority:

  git grep -l '^(exit \$fail); exit \$fail$' \
    | xargs perl -pi -e 's/'^\(exit \$fail\); exit \$fail$/Exit \$fail/'

And this did the rest, plus a few undesirable ones, so I manually
backed out the changes to ChangeLog-* and build-aux/check.mk:

  git grep -l -E '\(exit [^)]+\); exit ' \
    | xargs perl -pi -e 's/\(exit (.+?)\); exit \1/Exit $1/'
</content>
</entry>
<entry>
<title>tests: move input-tty into a test-lib.sh function</title>
<updated>2008-09-08T06:20:03Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-09-07T09:54:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=22e5102f1961c5552d20c3791cbc99b6b001e83f'/>
<id>urn:sha1:22e5102f1961c5552d20c3791cbc99b6b001e83f</id>
<content type='text'>
* tests/test-lib.sh (require_controlling_input_terminal_): New function, from
* tests/input-tty: ...here.  Remove file.
* tests/Makefile.am (EXTRA_DIST): Remove input-tty.
* tests/mv/i-3: Use the function, not the file.
* tests/misc/stty: Likewise.
* tests/misc/stty-row-col: Likewise.
* tests/misc/stty-invalid: Likewise.
</content>
</entry>
</feed>
