]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: fincore/count, skip unsupported FS
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 6 Apr 2017 07:56:05 +0000 (09:56 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 6 Apr 2017 10:30:11 +0000 (12:30 +0200)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/ts/fincore/count

index fd50ff8c91cda0d7f56a5d2866bd694095b22587..ac58850ff10efbc31dc2ab500f9ad300615037da 100755 (executable)
@@ -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=