<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/du, 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-18T07:04:46Z</updated>
<entry>
<title>tests: avoid spurious du/bigtime failure</title>
<updated>2010-12-18T07:04:46Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-12-17T15:55:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6d488ca041eedbc833c2f73247c4deea380a0382'/>
<id>urn:sha1:6d488ca041eedbc833c2f73247c4deea380a0382</id>
<content type='text'>
* tests/du/bigtime: Map nonzero block count to 0.
Reported by Assaf Gordon.
* THANKS: Update.
</content>
</entry>
<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>du: don't print junk when diagnosing out-of-range time stamps</title>
<updated>2010-10-24T00:24:38Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2010-10-24T00:20:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7d93a082b6e3ece0b120a5150d2020c7fa11b2f5'/>
<id>urn:sha1:7d93a082b6e3ece0b120a5150d2020c7fa11b2f5</id>
<content type='text'>
* src/du.c (show_date): Fix call to fputs with a buffer that
contains some uninitialized data.
* tests/Makefile.am (TESTS): Add du/big-timestamp.
* tests/du/bigtime: New file, which checks for the bug.
</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>du: tune, and fix some -L bugs with dangling or cyclic symlinks</title>
<updated>2010-07-24T07:20:07Z</updated>
<author>
<name>Paul R. Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2010-07-24T07:19:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=77428214f13e1d7b81348fd301a388cb4ce8a2a0'/>
<id>urn:sha1:77428214f13e1d7b81348fd301a388cb4ce8a2a0</id>
<content type='text'>
* src/du.c (process_file): Avoid recalculation of hashes
and of file-exclusion for directories.  Do not descend into
the same directory more than once, unless -l is given; this is faster.
Calculate stat buffer lazily, since it
need not be computed at all for excluded files.
Count space if FTS_ERR, since stat buffer is always valid then.
No need for 'print' local variable.
(main): Use FTS_NOSTAT.  Use FTS_TIGHT_CYCLE_CHECK only when not
hashing everything, since process_file finds cycles on its own
when hashing everything.
* tests/du/deref: Add test cases for -L bugs.
</content>
</entry>
<entry>
<title>du: don't miscount duplicate directories or link-count-1 files</title>
<updated>2010-07-03T08:28:08Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@CS.UCLA.EDU</email>
</author>
<published>2010-07-03T06:41:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=efe53cc72b599979ea292754ecfe8abf7c839d22'/>
<id>urn:sha1:efe53cc72b599979ea292754ecfe8abf7c839d22</id>
<content type='text'>
* NEWS: Mention this.
* src/du.c (hash_all): New static var.
(process_file): Use it.
(main): Set it.
* tests/du/hard-link: Add a couple of test cases to help make
sure this bug stays squashed.
* tests/du/files0-from: Adjust existing tests to reflect
change in semantics with duplicate arguments.
</content>
</entry>
<entry>
<title>du: recognize -d N as equivalent to --max-depth=N</title>
<updated>2010-05-19T05:28:16Z</updated>
<author>
<name>Jon Ringuette</name>
<email>jonr@scharp.org</email>
</author>
<published>2010-05-18T06:26:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2b8ecfa6f14db48fbc204b2fc4993de077289c2d'/>
<id>urn:sha1:2b8ecfa6f14db48fbc204b2fc4993de077289c2d</id>
<content type='text'>
* NEWS (New features): Mention it.
* src/du.c (DEBUG_OPT): Remove.  Use long-named ---debug instead.
Commented out.
(MAX_DEPTH_OPTION): Remove.  Use 'd' instead.
(main): Insert literal "d:"; remove DEBUG_OPT.
* doc/coreutils.texi (du invocation): Add -d to indices.
* tests/du/max-depth: Exercise -d, too.
</content>
</entry>
<entry>
<title>tests: exercise du's --max-depth option</title>
<updated>2010-05-19T05:28:16Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-05-18T06:39:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1be4f180f5395b9ef89ab9166e33ba9a54cfba8b'/>
<id>urn:sha1:1be4f180f5395b9ef89ab9166e33ba9a54cfba8b</id>
<content type='text'>
* tests/Makefile.am (TESTS): Add du/max-depth.
* tests/du/max-depth: New file.
</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>
</feed>
