tests: fincore/count, skip unsupported FS

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
Ruediger Meier 2017-04-06 09:56:05 +02:00 committed by Karel Zak
parent b9d3db99e1
commit 137fae2282
1 changed files with 17 additions and 0 deletions

View File

@ -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=