From: Ruediger Meier Date: Thu, 6 Apr 2017 07:56:05 +0000 (+0200) Subject: tests: fincore/count, skip unsupported FS X-Git-Tag: v2.30-rc1~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=137fae22827f3dffeeb1ce730e457d49a3aac8a7;p=thirdparty%2Futil-linux.git tests: fincore/count, skip unsupported FS Signed-off-by: Ruediger Meier --- diff --git a/tests/ts/fincore/count b/tests/ts/fincore/count index fd50ff8c91..ac58850ff1 100755 --- a/tests/ts/fincore/count +++ b/tests/ts/fincore/count @@ -31,6 +31,21 @@ function _dd return $ret } +function check_dd_fs_feat +{ + local testf="$TS_OUTDIR/ddtest" + rm -f "$testf" + touch "$testf" + + # NFS seems to fail for direct AND append + _dd if=/dev/zero of="$testf" bs=1K count=2 oflag=direct,append &>/dev/null \ + || ts_skip "unsupported: dd oflag=direct,append" + + # TODO: Should we check for sparse file support? + + rm -f "$testf" +} + function run_dd_test { header=$1 @@ -94,6 +109,8 @@ fi ts_check_test_command "$TS_CMD_FINCORE" ts_cd "$TS_OUTDIR" +check_dd_fs_feat + INPUT= input=