summaryrefslogtreecommitdiff
path: root/tests/init.cfg
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-01-31 14:44:15 +0100
committerJim Meyering <meyering@redhat.com>2011-01-31 14:44:15 +0100
commit3aae01fa9b3759da90854e7423bfc75b8c634afd (patch)
treeb4beec102a94a8fcf4c90c6a64388954c2c28533 /tests/init.cfg
parent31dc21f693b5dc9c267be89934ea4cb306806e39 (diff)
downloadcoreutils-3aae01fa9b3759da90854e7423bfc75b8c634afd.tar.xz
tests: factor fiemap-related predicate into init.cfg
* tests/init.cfg (fiemap_capable_): New function. * tests/cp/fiemap-perf: Use it. * tests/cp/sparse-fiemap: Likewise. * tests/cp/fiemap-2: Likewise.
Diffstat (limited to 'tests/init.cfg')
-rw-r--r--tests/init.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/init.cfg b/tests/init.cfg
index a7860e740..fa15aa4b1 100644
--- a/tests/init.cfg
+++ b/tests/init.cfg
@@ -295,6 +295,13 @@ require_proc_pid_status_()
kill $pid
}
+# Return nonzero if the specified directory is on a file system
+# for which FIEMAP support exists.
+fiemap_capable_()
+{
+ df -T -t btrfs -t xfs -t ext4 -t ocfs2 "$@"
+}
+
# Does the current (working-dir) file system support sparse files?
require_sparse_support_()
{