<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/test-lib.sh, branch v8.7</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.7</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2010-06-30T16:11:50Z</updated>
<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>
<entry>
<title>sort: use long doubles for general numeric mode</title>
<updated>2010-04-29T17:55:57Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-04-28T22:54:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8b5087d4e62439503e3cba774de225893b9ea81a'/>
<id>urn:sha1:8b5087d4e62439503e3cba774de225893b9ea81a</id>
<content type='text'>
* src/sort.c (general_numcompare): Use long doubles unconditionally,
and strtold when available, to convert numbers with greater range and
precision.  Performance was seen to be on par with standard doubles.
* doc/coreutils.texi (sort invocation): Amend the -g description to
mention long double rather than double, and strtold rather than strtod.
* src/getlimits.c (main): Output floating point limits for use in tests.
* tests/misc/sort-float: A new test to ensure sort is using long
doubles when possible, and that locale specific floats are handled.
* tests/Makefile.am: Reference the new test.
* tests/test-lib.sh (getlimits_): Normalize indenting.
* NEWS: Mention the new behaviour.
Reported by Nelson Beebe.
</content>
</entry>
<entry>
<title>tests: clean up also upon SIGQUIT</title>
<updated>2010-04-24T13:50:41Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-04-24T13:50:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=301c74865ef13a11e303a2320743b2997bb568e7'/>
<id>urn:sha1:301c74865ef13a11e303a2320743b2997bb568e7</id>
<content type='text'>
* tests/test-lib.sh: Also trap on SIGQUIT.
Spotted by Dmitry V. Levin.
</content>
</entry>
<entry>
<title>tests: fix exit status of signal handlers in shell scripts</title>
<updated>2010-04-23T13:44:19Z</updated>
<author>
<name>Dmitry V. Levin</name>
<email>ldv@altlinux.org</email>
</author>
<published>2010-01-30T16:02:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c0a121c9bccc6175dc3cdb705e2ec8cb2be9f71c'/>
<id>urn:sha1:c0a121c9bccc6175dc3cdb705e2ec8cb2be9f71c</id>
<content type='text'>
The value of `$?' on entrance to signal handlers in shell scripts
cannot be relied upon, so set the exit code explicitly.

* cfg.mk (sc_always_defined_macros, sc_system_h_headers): Set
the exit code in signal handler explicitly to 128 + SIG&lt;SIGNAL&gt;.
* src/Makefile.am (sc_tight_scope): Likewise.
* tests/test-lib.sh: Likewise.
</content>
</entry>
<entry>
<title>maint: update all FSF copyright year lists to include 2010</title>
<updated>2010-01-01T13:06:47Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-01-01T09:56:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1aa17dc89b3f313697661541adca0aa0defbdc09'/>
<id>urn:sha1:1aa17dc89b3f313697661541adca0aa0defbdc09</id>
<content type='text'>
Use this command:
git ls-files | grep -v COPYING \
  | xargs env UPDATE_COPYRIGHT_USE_INTERVALS=1 \
      build-aux/update-copyright
</content>
</entry>
<entry>
<title>tests: fix a bug in sanitize_path_ that inhibited verbose output</title>
<updated>2009-12-03T16:04:16Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-12-03T16:04:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5224fbd6f904633b72f4bfa9d64e903744b0beae'/>
<id>urn:sha1:5224fbd6f904633b72f4bfa9d64e903744b0beae</id>
<content type='text'>
* tests/test-lib.sh (sanitize_path_): Use "set -- ...", not "set - ...",
since the latter turns off the -x setting we rely on for VERBOSE=yes
output.
</content>
</entry>
<entry>
<title>tests: avoid test failures when PATH contains an unsearchable directory</title>
<updated>2009-11-23T16:49:39Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-11-23T16:35:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ab6b27eba720c04da91f5300121a6fe06d1fa9b4'/>
<id>urn:sha1:ab6b27eba720c04da91f5300121a6fe06d1fa9b4</id>
<content type='text'>
* tests/test-lib.sh (sanitize_path_): New function.
Always call it.
</content>
</entry>
<entry>
<title>tests: factor 350 fail=0 initializations into test-lib.sh</title>
<updated>2009-10-30T11:50:12Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-10-30T09:50:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3c88587b2eadee11413f4207abbbf13af07c438d'/>
<id>urn:sha1:3c88587b2eadee11413f4207abbbf13af07c438d</id>
<content type='text'>
Run this command to remove the factored-out "fail=0" lines.
perl -ni -e '/^fail=0$/ or print' $(g grep -l '^fail=0$')
* tests/test-lib.sh: Initialize fail=0 here, not in 300+ scripts.
* tests/...: nearly all bourne shell scripts
Suggested by Eric Blake.
</content>
</entry>
<entry>
<title>tests: mkdir/selinux: avoid spurious failure on some SELinux systems</title>
<updated>2009-08-26T08:06:53Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-26T08:06:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d6639ee63bc9321bc73ad453a266e45a89823a22'/>
<id>urn:sha1:d6639ee63bc9321bc73ad453a266e45a89823a22</id>
<content type='text'>
* tests/test-lib.sh (require_selinux_enforcing_): New function.
* tests/mkdir/selinux: Use it.
Otherwise, this test would fail on Rawhide with SELinux disabled.
</content>
</entry>
<entry>
<title>maint: remove Local Variables: indent-tabs-mode: nil from all sources</title>
<updated>2009-08-25T07:21:00Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-02-27T16:15:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e2808a3999233c7186ee349278dbff5a046250db'/>
<id>urn:sha1:e2808a3999233c7186ee349278dbff5a046250db</id>
<content type='text'>
* src/getlimits.c: Likewise.
* src/group-list.c: Likewise.
* src/groups.c: Likewise.
* src/mktemp.c: Likewise.
* src/setuidgid.c: Likewise.
* src/stdbuf.c: Likewise.
* src/timeout.c: Likewise.
* src/truncate.c: Likewise.
* gl/lib/mbsalign.c: Likewise.
* tests/test-lib.sh: Likewise.
* bootstrap: Likewise.
* README-hacking: Likewise.
</content>
</entry>
</feed>
