]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: ensure we test SEEK_DATA where used
authorPádraig Brady <P@draigBrady.com>
Sun, 9 May 2021 13:29:01 +0000 (14:29 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 12 May 2021 21:14:11 +0000 (22:14 +0100)
commit4eb2e9c11a8336e3ffcca289b56ede98a2431c8f
tree237d2fafbbc42b55c1a1dd91186a175b748cc523
parent2e66e1732fced7af20fa76c60e636d39a1767d48
tests: ensure we test SEEK_DATA where used

fiemap is no longer the default copy implementation,
so check for SEEK_DATA support instead as that's preferred.
This will ensure better test coverage on systems without fiemap.

* init.cfg: Replace fiemap_capable_ with seek_data_capable_.
This is best supported with python 3 so prefer that.
* tests/seek-data-capable: A new test script checking for
SEEK_DATA support on the passed file name,
called from seek_data_capable_.
* tests/fiemap-capable: Remove no longer used probing script.
* tests/cp/fiemap-perf.sh: Renamed to tests/cp/sparse-perf.sh
* tests/cp/fiemap-2.sh: Renamed to tests/cp/sparse-2.sh
* tests/cp/fiemap-extents.sh: Renamed to tests/cp/sparse-extents.sh
* tests/cp/sparse-fiemap.sh: Renamed to tests/cp/sparse-extents-2.sh
* tests/cp/fiemap-FMR.sh: Renamed to tests/cp/copy-FMR.sh
* tests/local.mk: Reference the renamed tests.
init.cfg
tests/cp/copy-FMR.sh [moved from tests/cp/fiemap-FMR.sh with 95% similarity]
tests/cp/sparse-2.sh [moved from tests/cp/fiemap-2.sh with 88% similarity]
tests/cp/sparse-extents-2.sh [moved from tests/cp/sparse-fiemap.sh with 91% similarity]
tests/cp/sparse-extents.sh [moved from tests/cp/fiemap-extents.sh with 93% similarity]
tests/cp/sparse-perf.sh [moved from tests/cp/fiemap-perf.sh with 64% similarity]
tests/fiemap-capable [deleted file]
tests/local.mk
tests/seek-data-capable [new file with mode: 0644]