]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: determine if SEEK_HOLE is enabled
authorPádraig Brady <P@draigBrady.com>
Thu, 23 Feb 2023 20:28:51 +0000 (20:28 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 24 Feb 2023 00:35:18 +0000 (00:35 +0000)
commit5c8c2a5161c0b6f84212778f694c526105f10dab
tree32b8c10cc43c62121d6cebaeeac389d9d6965990
parentd899f9e3320bb2a4727ca894163f6b104118c973
tests: determine if SEEK_HOLE is enabled

Upcomming gnulib changes may disable SEEK_HOLE
even if the system supports it, so dynamically
check if we've SEEK_HOLE enabled.

* init.cfg (seek_data_capable_): SEEK_DATA may be disabled in the build
if the system support is deemed insufficient, so also use `cp --debug`
to determine if it's enabled.
* tests/cp/sparse-2.sh: Adjust to a more general diagnostic.
* tests/cp/sparse-extents-2.sh: Likewise.
* tests/cp/sparse-extents.sh: Likewise.
* tests/cp/sparse-perf.sh: Likewise.
init.cfg
tests/cp/sparse-2.sh
tests/cp/sparse-extents-2.sh
tests/cp/sparse-extents.sh
tests/cp/sparse-perf.sh