<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/df, 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-12-11T14:15:33Z</updated>
<entry>
<title>tests: df/total-unprocessed: fix false failure with lofs</title>
<updated>2013-12-11T14:15:33Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-12-10T16:29:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=77a24724f6172af157b09fdfb870a8f526f39424'/>
<id>urn:sha1:77a24724f6172af157b09fdfb870a8f526f39424</id>
<content type='text'>
* tests/df/total-unprocessed.sh: Skip the test when we can't
determine the file system type as the exclusion filter is not
applied in that case.  "lofs" being ignored is effectively
an unknown file system type.
</content>
</entry>
<entry>
<title>tests: avoid false df failure with nfs and lofs</title>
<updated>2013-12-09T09:24:24Z</updated>
<author>
<name>Bernhard Voelker</name>
<email>mail@bernhard-voelker.de</email>
</author>
<published>2013-12-09T01:03:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4a6189a0ea0e49b542eb10ff3c9032145683ed63'/>
<id>urn:sha1:4a6189a0ea0e49b542eb10ff3c9032145683ed63</id>
<content type='text'>
* tests/df/total-unprocessed.sh: -t nfs and --local are
_not_ mutually exclusive on solaris, with lofs mounts.
</content>
</entry>
<entry>
<title>df: dereference symlinks to disk device nodes</title>
<updated>2013-12-04T13:16:27Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-12-03T23:36:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=33660b4973baf66423207615bef0d277ca7a5938'/>
<id>urn:sha1:33660b4973baf66423207615bef0d277ca7a5938</id>
<content type='text'>
This is so the matching for the device is done on the canonical name
of the disk node, rather than on the path of the symlink.
In any case the user will generally want to use the symlink target.

* src/df.c (get_disk): Canonicalize the passed file,
before matching against the list of mounted file system devices.
Note we pass the original symlink name to the "file" output field,
as the symlink target is usually available through the "source" field.
* tests/df/df-symlink.sh: Test the dereferencing operation.
* tests/local.mk: Mention the new test.
* NEWS: Mention the fix.
Reported by Ondrej Oprala
</content>
</entry>
<entry>
<title>df: add --output=file to directly output specified arguments</title>
<updated>2013-11-27T01:39:11Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-11-22T02:12:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=799e10f3619ea7949a4f606b2f29b662daf31e3c'/>
<id>urn:sha1:799e10f3619ea7949a4f606b2f29b662daf31e3c</id>
<content type='text'>
* src/df.c (usage): Document the new 'file' --output field.
(get_dev): Add a new parameter to pass the specified
argument from the command line through.  Use '-' if a
command line parameter is not being used.
* doc/coreutils.texi (df invocation): Describe the new 'file' field.
* tests/df/df-output.sh: Adjust all fields test, and
add a specific test for --output=file.
* NEWS: Mention the new feature.
</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>df: fix mount list processing with unstatable mount dirs</title>
<updated>2013-07-09T01:36:27Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-07-08T23:46:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=616fa9c7b335117243c0c157a6c45445e20fdfa0'/>
<id>urn:sha1:616fa9c7b335117243c0c157a6c45445e20fdfa0</id>
<content type='text'>
* src/df.c (filter_mount_list): Initialize devlist-&gt;dev_num correctly
when unable to stat() a mount point.  This will avoid possible invalid
deduplication done on the list due to use of uninitialized memory.
* tests/df/skip-duplicates.sh: Ensure this code path is exercised.
Also refactor the test to be table driven.
* NEWS: Mention the bug fix.
</content>
</entry>
<entry>
<title>tests: avoid shared lib tests on unsupported platforms</title>
<updated>2013-04-04T02:02:10Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-03-27T12:51:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e92d16f68a97575ed7112204b069514edc8d54a0'/>
<id>urn:sha1:e92d16f68a97575ed7112204b069514edc8d54a0</id>
<content type='text'>
* init.cfg (require_gcc_shared_): A new function to check
that we can build shared libraries in the particular manner
we use in our tests.
* tests/cp/nfs-removal-race.sh: Use require_gcc_shared_.
Then fail rather than skip, if the actual shared lib build fails.
* tests/df/no-mtab-status.sh: Likewise.
* tests/df/skip-duplicates.sh: Likewise.
* tests/ls/getxattr-speedup.sh: Likewise.
Reported in http://bugs.gnu.org/14024
</content>
</entry>
<entry>
<title>df: do not treat rootfs specially</title>
<updated>2013-01-28T13:56:44Z</updated>
<author>
<name>Bernhard Voelker</name>
<email>mail@bernhard-voelker.de</email>
</author>
<published>2013-01-28T13:56:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f25519d6887fc9285d3e0ff1cd259a5e74d5a80a'/>
<id>urn:sha1:f25519d6887fc9285d3e0ff1cd259a5e74d5a80a</id>
<content type='text'>
Like any other pseudo file system, df should show rootfs only
when the -a option is specified, i.e. specifying -trootfs alone
is not sufficient.  As the rootfs entry is now elided by the
general deduplication in filter_mount_list (commit v8.20-103-gbb116d3),
all other references to rootfs can be removed again.

* src/df.c (show_rootfs): Remove global variable.
(ROOTFS): Remove constant.
(filter_mount_list): Remove case to handle rootfs specially.
(main): In the case for handling the -t option, remove setting
of the show_rootfs variable.
* tests/df/skip-rootfs.sh: Adapt the test case "df -t rootfs":
the rootfs file system must not be printed (because no -a).
* doc/coreutils.texi (df invocation): Correct the documentation
about eliding mount entries: it is not the first occurrence of
the the device which wins, but now rather the entry with the
shortest mount point name.  Also adapt the description about
eliding pseudo file system types like rootfs.
* NEWS (Changes in behavior): Adapt entry.
</content>
</entry>
<entry>
<title>df: prefer fullpath entries when deduplicating</title>
<updated>2013-01-27T17:43:58Z</updated>
<author>
<name>Ondrej Oprala</name>
<email>ooprala@redhat.com</email>
</author>
<published>2013-01-25T00:07:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=bb116d35bf6248d803826fb582a141d02a311e71'/>
<id>urn:sha1:bb116d35bf6248d803826fb582a141d02a311e71</id>
<content type='text'>
* src/df.c (struct devlist): Add a new element for storing
pointers to mount_entry structures.
(devlist_head, dev_examined): Remove.
(filter_mount_list): Add new function to filter out the rootfs
entry (unless -trootfs is specified), and duplicities. The
function favors entries with a '/' character in me_devname
or those with the shortest me_mountdir string, if multiple
entries fulfill the first condition.
Use struct devlist to build up a list of entries already known,
and finally rebuild the global mount_list.
(get_all_entries): Call the above new function unless the -a
option is specified.
(get_dev): Remove the code for skipping rootfs and duplicities.
* tests/df/skip-duplicates.sh: Add test cases.

Co-authored-by: Bernhard Voelker &lt;mail@bernhard-voelker.de&gt;
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2013-01-01T03:51:20Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2013-01-01T02:54:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=77da73c75432f3c5b4beebae7b0797a1e33160bc'/>
<id>urn:sha1:77da73c75432f3c5b4beebae7b0797a1e33160bc</id>
<content type='text'>
Run "make update-copyright", but then also run this,
  perl -pi -e 's/2\d\d\d-//' tests/sample-test
to make that one script use the single most recent year number.
</content>
</entry>
</feed>
