<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc/numfmt.pl, branch v8.22</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.22</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.22'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2013-08-02T06:31:36Z</updated>
<entry>
<title>maint: update copyright year number ranges of numfmt sources</title>
<updated>2013-08-02T06:31:36Z</updated>
<author>
<name>Bernhard Voelker</name>
<email>mail@bernhard-voelker.de</email>
</author>
<published>2013-08-01T02:18:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=dffaa8db2d4990e61df7016b8cd8918c850e5b32'/>
<id>urn:sha1:dffaa8db2d4990e61df7016b8cd8918c850e5b32</id>
<content type='text'>
Run "make update-copyright".

* src/numfmt.c: Update copyright year number range.  This file has
obviously been added to coreutils after and without the annual update.
* tests/misc/numfmt.pl: Likewise.
</content>
</entry>
<entry>
<title>maint: make some shell and perl scripts executable in 'tests/'</title>
<updated>2013-07-21T23:07:52Z</updated>
<author>
<name>Bernhard Voelker</name>
<email>mail@bernhard-voelker.de</email>
</author>
<published>2013-07-21T23:07:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0c452fe97a395a1ecc2cacce3609ea6be366ac8e'/>
<id>urn:sha1:0c452fe97a395a1ecc2cacce3609ea6be366ac8e</id>
<content type='text'>
Some newer test scripts - partially ones from me - are not executable.
It does not seem to be a problem, but for consistency and to avoid
future problems on unusual platforms or shells change the permissions
by adding the executable bit.

* cfg.mk (sc_tests_executable): Add new syntax-check rule to ensure
that all test scripts are executable.
* tests/df/df-output.sh: Change file mode from 644 to 755.
* tests/du/threshold.sh: Likewise.
* tests/factor/run.sh: Likewise.
* tests/init.sh: Likewise.
* tests/misc/csplit-suppress-matched.pl: Likewise.
* tests/misc/numfmt.pl: Likewise.
* tests/tail-2/retry.sh: Likewise.
</content>
</entry>
<entry>
<title>tests: numfmt: use the printf program, not the shell builtin</title>
<updated>2013-05-26T23:24:00Z</updated>
<author>
<name>Stefano Lattarini</name>
<email>stefano.lattarini@gmail.com</email>
</author>
<published>2013-05-26T22:06:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ba60445f73c00b664b271ca13ad4cac1f9584cb2'/>
<id>urn:sha1:ba60445f73c00b664b271ca13ad4cac1f9584cb2</id>
<content type='text'>
* tests/misc/numfmt.pl: Avoid a spurious failure when
/bin/sh is dash (as can happen on Debian systems).
</content>
</entry>
<entry>
<title>maint: consolidate developer debug messages</title>
<updated>2013-02-10T20:30:53Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-02-10T12:47:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3309e880fb2b5d4316809c5ceef4f5b2b8d34a38'/>
<id>urn:sha1:3309e880fb2b5d4316809c5ceef4f5b2b8d34a38</id>
<content type='text'>
Both factor and numfmt recently introduced debug messages
for developers, enabled by --verbose and ---devdebug respectively.
There were a few issues though:
 1. They used different mechanisms to enable these messages.
 2. factor used --verbose which might be needed for something else
 3. They used different methods to output the messages,
    and numfmt used error() which added an unwanted newline
 4. numfmt marked all these messages for translation and factor
    marked a couple.  We really don't need these translated.
So we fix the above issues here while renaming the enabling
option for both commands to ---debug (still undocumented).

* src/factor.c (verbose): Rename to dev_debug and change from int to
bool as it's just a toggle flag.
(long_options): Rename --verbose to ---debug.
* src/system.h (devmsg): A new inline function to output a message
if enabled by a global dev_debug variable in the compilation unit.
* src/numfmt.c: Use devmsg() rather than error().
Also remove the translation tags from these messages.
Also change debug flag to bool from int.
* tests/misc/numfmt.pl: Adjust for the ---devdebug to ---debug change.
* cfg.mk (sc_marked_devdiagnostics): Add a syntax check to ensure
translations are not added to devmsg calls.

Reported by Göran Uddeborg in http://bugs.gnu.org/13665
</content>
</entry>
<entry>
<title>tests: skip numfmt grouping tests on some systems</title>
<updated>2013-02-10T05:04:09Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-02-08T16:05:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=54deb54db989dde759410af9918802961c43bc58'/>
<id>urn:sha1:54deb54db989dde759410af9918802961c43bc58</id>
<content type='text'>
* tests/misc/numfmt.pl: When the system locale grouping doesn't
match our expected format for grouping 1234 in the fr_FR locale,
reset the locale to 'C' so as to skip all locale tests.
</content>
</entry>
<entry>
<title>numfmt: a new command to format numbers</title>
<updated>2013-02-04T23:40:32Z</updated>
<author>
<name>Assaf Gordon</name>
<email>assafgordon@gmail.com</email>
</author>
<published>2012-12-06T22:30:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8a303a8963dd255566f1625243ff19b029e0ecec'/>
<id>urn:sha1:8a303a8963dd255566f1625243ff19b029e0ecec</id>
<content type='text'>
* AUTHORS: Add my name.
* NEWS: Mention the new program.
* README: Reference the new program.
* src/numfmt.c: New file.
* src/.gitignore: Ignore the new binary.
* build-aux/gen-lists-of-programs.sh: Update.
* scripts/git-hooks/commit-msg: Allow numfmt: commit prefix.
* po/POTFILES.in: Add new c file.
* tests/misc/numfmt.pl: A new test file giving &gt;93% coverage.
* tests/local.mk: Reference the new test.
* man/.gitignore: Ignore the new man page.
* man/local.mk: Reference the new man page.
* man/numfmt.x: A new template.
* doc/coreutils.texi: Document the new command.
</content>
</entry>
</feed>
