generic: Add check for required keep_size/punch_hole/zero_range/collapse_range
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Tue, 7 Jan 2020 08:40:53 +0000 (16:40 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sat, 1 Feb 2020 07:34:48 +0000 (15:34 +0800)
Tests need the exact operations to reproduce some issues by
--replay-ops so skip tests rather than one operation if a required
operation/flag in tests is not supported.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/456
tests/generic/469
tests/generic/499
tests/generic/511

index 6124f0bb419bc1ace6241a5c111e4a51eb4f6885..434a0ffaf27b0357942ca3b7514c55ad9374ce9a 100755 (executable)
@@ -36,6 +36,9 @@ _supported_fs generic
 _supported_os Linux
 _require_scratch
 _require_dm_target flakey
 _supported_os Linux
 _require_scratch
 _require_dm_target flakey
+_require_xfs_io_command "falloc" "-k"
+_require_xfs_io_command "fzero"
+_require_xfs_io_command "fcollapse"
 
 rm -f $seqres.full
 
 
 rm -f $seqres.full
 
index 47fdf0cfa69b7bfb71f52448938695d894056232..e9411d47ff05c393b4aa5c9723584942472e7815 100755 (executable)
@@ -40,6 +40,9 @@ rm -f $seqres.full
 _supported_fs generic
 _supported_os Linux
 _require_test
 _supported_fs generic
 _supported_os Linux
 _require_test
+_require_xfs_io_command "falloc" "-k"
+_require_xfs_io_command "fpunch"
+_require_xfs_io_command "fzero"
 
 run_fsx()
 {
 
 run_fsx()
 {
index 773eab2e2f30015b52b00efa4de8bb5baeaec888..b3363ac4d836028c2faa7b3f694b9144512e74c8 100755 (executable)
@@ -28,6 +28,7 @@ _cleanup()
 _supported_fs generic
 _supported_os Linux
 _require_scratch
 _supported_fs generic
 _supported_os Linux
 _require_scratch
+_require_xfs_io_command "falloc" "-k"
 _require_xfs_io_command "fcollapse"
 _require_xfs_io_command "fzero"
 
 _require_xfs_io_command "fcollapse"
 _require_xfs_io_command "fzero"
 
index 4d133f49c727e32df6c6ada4e6f01dd4ddbe7ffb..f8022905043b64288725ae6c9c22d94151a6357d 100755 (executable)
@@ -28,6 +28,7 @@ _cleanup()
 _supported_fs generic
 _supported_os Linux
 _require_scratch
 _supported_fs generic
 _supported_os Linux
 _require_scratch
+_require_xfs_io_command "falloc" "-k"
 _require_xfs_io_command "fzero"
 
 rm -f $seqres.full
 _require_xfs_io_command "fzero"
 
 rm -f $seqres.full