Whamcloud - gitweb
tests: skip unsupported tests on MacOS systems
authorAndreas Dilger <adilger@dilger.ca>
Tue, 18 Feb 2014 23:29:55 +0000 (18:29 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 Feb 2014 23:30:00 +0000 (18:30 -0500)
commit3b97799c7472c2a9ead804db9651130651e8e033
tree2d8b2a09f3094b9946c5f3c20cf7e8f86e1fbfea
parent4d46e6c737947b336fd412f43c060955b07bd319
tests: skip unsupported tests on MacOS systems

The "mkswap" program is not available on MacOS, so just use the
existing swap0.img.bz2 and swap1.img.bz2 files directly.

Because MacOS HFS+ doesn't support sparse files (welcome to the 80's)
the m_bigjournal test takes forever to zero out the whole 42GB test
filesystem.  Skip this test for Darwin kernels for now.

Unfortunately, neither "df -T" nor "stat -f -c %T" is available on
MacOS to directly determine the filesystem type, and I'm too lazy
to parse the output of "mount" and match it to the path of the test
directory in shell, so it just checks the kernel type and assumes
the filesystem type is HFS and skips the test.

Since this test runs on Linux the majority of the time, the loss of
test coverage is minimal.  If MacOS should ever get a real filesystem,
this can be revisited.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/test_probe.in
tests/m_bigjournal/script