Re: [PATCH 4/8 v4] tests/xfs: convert 10 xfs's tests to be generic ones

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Tue, Feb 03, 2015 at 03:07:16PM -0800, Jaegeuk Kim wrote:
> This patch changes ten xfs's testcases to be generic ones, pointed out by Dave.
>  xfs/053         (data exposure)
>  xfs/137         (data vs filesize)
>  xfs/138         (data vs filesize vs truncate)
>  xfs/139         (data vs filesize vs partial truncate)
>  xfs/140         (data vs filesize vs extending truncate)
>  xfs/179         (data vs filesize w/ fsync)
>  xfs/180         (data vs filesize w/ sync)
>  xfs/182         (data vs filesize w/ recovery)
>  xfs/200         (recovery vs ro-block device)
>  xfs/306         (fsstress vs recovery)
> 
> All these tests need _require_scratch_shutdown, and some of them need
> _require_bmap utils.
> 
> Suggested-by: Dave Chinner <david@xxxxxxxxxxxxx>
> Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx>
> ---
>  tests/xfs/053 |  3 ++-
>  tests/xfs/137 | 10 ++++++----
>  tests/xfs/138 | 10 ++++++----
>  tests/xfs/139 | 10 ++++++----
>  tests/xfs/140 |  8 +++++---
>  tests/xfs/179 |  8 +++++---
>  tests/xfs/180 |  8 +++++---
>  tests/xfs/182 |  8 +++++---
>  tests/xfs/200 |  6 ++++--
>  tests/xfs/306 |  3 ++-
>  10 files changed, 46 insertions(+), 28 deletions(-)
> 
> diff --git a/tests/xfs/053 b/tests/xfs/053
> index 9749345..a3ebc62 100755
> --- a/tests/xfs/053
> +++ b/tests/xfs/053
> @@ -83,9 +83,10 @@ _crashtest()
>  }
>  
>  # Modify as appropriate.
> -_supported_fs xfs
> +_supported_fs generic
>  _supported_os Linux
>  _require_scratch
> +_require_scratch_shutdown

Can't do that - scratch needs to be mkfs'd before you can mount it.

> index 79b3b89..6ec1bcb 100755
> --- a/tests/xfs/137
> +++ b/tests/xfs/137
> @@ -36,11 +36,13 @@ trap "exit \$status" 0 1 2 3 15
>  . ./common/filter
>  
>  # real QA test starts here
> -_supported_fs xfs
> +_supported_fs generic
>  _supported_os Linux IRIX
>  
>  _require_scratch
> -_scratch_mkfs_xfs >/dev/null 2>&1
> +_require_scratch_shutdown
> +_require_bmap

needs to be converted to fiemap and that done as a separate step.

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux