Skip ls tests that use sparse files if these are not supported.
authorjmmv <jmmv@FreeBSD.org>
Wed, 24 Aug 2016 10:10:26 +0000 (10:10 +0000)
committerjmmv <jmmv@FreeBSD.org>
Wed, 24 Aug 2016 10:10:26 +0000 (10:10 +0000)
commitcc5e5ee8a1ce3d39e4822fcf69211035891cad9d
tree9707a89238a0e70132d206f4c2282ce5fb3ffb92
parentd384988b4f008f251f7e237d3db74120a89b382b
Skip ls tests that use sparse files if these are not supported.

Some of the ls(1) tests create really large sparse files to validate
the number formatting features of ls(1).  Unfortunately, those tests fail
if the underlying test file system does not support sparse files, as is the
case when /tmp is mounted on tmpfs.

Before running these tests, check if the test file system supports sparse
files by using getconf(1) and skip them if not.  Note that the support for
this query was just added to getconf(1) in r304694.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D7609
bin/ls/tests/ls_tests.sh