<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc/sort-float, 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-11-17T20:45:51Z</updated>
<entry>
<title>tests: substitute the single-program $VERBOSE/--version uses</title>
<updated>2010-11-17T20:45:51Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-11-17T20:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=293c37b9061c1afd0acd143bbded637a8f00b3a0'/>
<id>urn:sha1:293c37b9061c1afd0acd143bbded637a8f00b3a0</id>
<content type='text'>
Automatically make all of the changes like this:

  -test "$VERBOSE" = yes &amp;&amp; chgrp --version
  +print_ver_ chgrp

git grep -l 'VERBOSE.*--version'|xargs perl -pi -e \
  's/test "\$VERBOSE" = yes &amp;&amp; (\w+) --version/print_ver_ $1/'
</content>
</entry>
<entry>
<title>tests: convert first batch of tests from test-lib.sh to init.sh</title>
<updated>2010-11-17T19:48:57Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-11-14T10:05:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f38becab02472e6872048a1951b249b2a3c054df'/>
<id>urn:sha1:f38becab02472e6872048a1951b249b2a3c054df</id>
<content type='text'>
Initially, I did this,
git grep -l srcdir/test-lib.sh|xargs perl -p0i -e '~180-byte script'
but that line would have been much longer than the maximum permitted
by coreutils' commit hook, and wasn't readable besides, so here's a
more readable version:

lhs=$(printf '%s\\n' \
'if test "$VERBOSE" = yes; then' \
'  set -x' \
'  touch --version' \
'fi' \
'' \
'. $srcdir/test-lib.sh' \
  | sed 's/\$/\\\$/g;s/touch/(\\w+)/')

rhs=$(printf '%s\\n' \
'. "${srcdir=.}/init.sh"; path_prepend_ ../src' \
'test "$VERBOSE" = yes &amp;&amp; FIXME --version' \
  | sed 's/\$/\\\$/g;s/FIXME/\$1/')

git grep -l srcdir/test-lib.sh|xargs perl -p0i -e "s,$lhs,$rhs,"
</content>
</entry>
<entry>
<title>tests: sort-float: avoid spurious test failure on ppc/ppc64</title>
<updated>2010-10-17T07:18:57Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-10-16T18:18:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=766ec503f7916dd73486a658b4da5307eaf4cd60'/>
<id>urn:sha1:766ec503f7916dd73486a658b4da5307eaf4cd60</id>
<content type='text'>
* tests/misc/sort-float: On systems with DBL_MIN &lt; LDBL_MIN,
this test would fail because the expected output was not sorted.
Detect that case, and if needed, reverse those two values.
</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>
</feed>
