<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/init.cfg, branch v8.8</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.8</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.8'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2010-12-22T10:52:11Z</updated>
<entry>
<title>maint: correct test-related comments</title>
<updated>2010-12-22T10:52:11Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-12-22T10:49:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=887d530e62f7495de3a8289d07bf11a76390555b'/>
<id>urn:sha1:887d530e62f7495de3a8289d07bf11a76390555b</id>
<content type='text'>
* tests/mv/i-3: Adjust comment to match just-changed code.
Spotted by Pádraig Brady.
* tests/init.cfg (retry_delay_): Correct spelling of function name
in usage example.
</content>
</entry>
<entry>
<title>tests: factor out VERBOSE-only --version-printing code</title>
<updated>2010-11-17T20:34:54Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-11-16T07:05:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5c0275e95353742854da6b915fed4fd0434d8159'/>
<id>urn:sha1:5c0275e95353742854da6b915fed4fd0434d8159</id>
<content type='text'>
* tests/init.cfg (print_ver_): New function.
</content>
</entry>
<entry>
<title>tests: avoid portability problem with dash vs. local v=$splittable_val</title>
<updated>2010-11-08T10:26:08Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-11-08T10:26:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4a14a80bd1a88dde4e361aa259264a54c4ffa3ea'/>
<id>urn:sha1:4a14a80bd1a88dde4e361aa259264a54c4ffa3ea</id>
<content type='text'>
* tests/init.cfg (retry_delay_): Adjust awk script to print a single
floating point value, rather than many.
</content>
</entry>
<entry>
<title>tests: avoid failure due to bug in FreeBSD 8.1's /bin/sh</title>
<updated>2010-11-06T14:24:53Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-11-06T14:20:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6c058b2dabe2e577d56e8c2c82cec550ff82f085'/>
<id>urn:sha1:6c058b2dabe2e577d56e8c2c82cec550ff82f085</id>
<content type='text'>
* tests/init.sh: Arrange not to accept FreeBSD 8.1's /bin/sh, since
it fails this test: /bin/sh -c 'f(){ local s=$IFS; test -n "$s"; }; f'
* tests/init.cfg (sanitize_path_): Stop-gap measure to work around
a bug in FreeBSD 8.1's /bin/sh.  We'll un-do this change once all
300+ tests use init.sh.
</content>
</entry>
<entry>
<title>tests: make various timeouts more robust</title>
<updated>2010-09-07T13:02:56Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-09-07T13:02:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c52d220c300c63a93ffd39dd29e89201e6fd929c'/>
<id>urn:sha1:c52d220c300c63a93ffd39dd29e89201e6fd929c</id>
<content type='text'>
* tests/init.cfg (retry_delay_): Describe
the backoff method used.
* tests/ls/readdir-mountpoint-inode: Add a timeout
to the stat call to eliminate the chance of hangups.
* tests/mv/i-3: Change the timeout required to pass
from 1 second to a range of .1s - 3.1s.
* tests/rm/dangling-symlink: Likewise.
</content>
</entry>
<entry>
<title>tests: exclude some tests when running on NFS</title>
<updated>2010-09-07T09:49:55Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-09-02T12:22:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=437671accc0af8fa43a3f9bda6c150cb63fc42cb'/>
<id>urn:sha1:437671accc0af8fa43a3f9bda6c150cb63fc42cb</id>
<content type='text'>
All tests currently pass on NFS on Linux kernel 2.6.22 at least,
but some fail on 2.6.9, so we exclude those here.

* tests/init.cfg (is_local_dir_): A new function
returning if the specified directory is on a local file system.
(require_local_dir_): A new function to skip tests
if the current directory is not on a local file system.
* tests/cp/existing-perm-race: Skip if non local.
* tests/cp/file-perm-race: Likewise.
* tests/cp/parent-perm: Likewise.
* tests/cp/parent-perm-race: Likewise.
* tests/cp/preserve-2: Likewise.
* tests/mv/part-symlink: Likewise.
* tests/du/basic: Use refactored function.
* tests/install/basic-1: Likewise.
* tests/mkdir/p-3: Likewise.
* tests/dd/skip-seek-past-dev: Likewise.
* tests/du/slink: Likewise.  Remove redundant test
for NFS file system.
* tests/misc/join: s/local/locale/.
</content>
</entry>
<entry>
<title>tests: make tests requiring a delay to pass, more robust</title>
<updated>2010-07-05T14:06:07Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-07-05T07:53:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=09fcf494a10c4b1ad2b037d093f571e7462e08c4'/>
<id>urn:sha1:09fcf494a10c4b1ad2b037d093f571e7462e08c4</id>
<content type='text'>
* tests/init.cfg: Introduce a retry_delay_() function to
repeatedly call a test function that requires a delay.
This delay can now be shorter for the common case on fast
systems, but will double until a configurable limit it reached
before failing on slower systems.
* tests/dd/reblock: Use retry_delay_.
* tests/misc/cat-buf: Likewise.
* tests/misc/stdbuf: Likewise.
* tests/tail-2/F-vs-rename: Likewise.
* tests/tail-2/flush-initial: Likewise.
* tests/tail-2/tail-n0f: Likewise.
* tests/tail-2/wait: Likewise.
* test/dd/misc: Comment that delay is needed to trigger failure.
</content>
</entry>
<entry>
<title>tests: move most helper functions from test-lib.sh to new init.cfg</title>
<updated>2010-06-30T16:11:50Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-06-30T15:06:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b062bbd94712c9a761ee42b9ac267651b334f836'/>
<id>urn:sha1:b062bbd94712c9a761ee42b9ac267651b334f836</id>
<content type='text'>
From there, they will be used by both test-lib.sh (as we phase it out)
and the newer init.sh, to which all tests will migrate.
* tests/test-lib.sh: Move most functions from here, ...
* tests/init.cfg: ...to here.  New file.
* tests/Makefile.am (EXTRA_DIST): Add init.cfg.
</content>
</entry>
</feed>
