From: Omar Sandoval <osandov@osandov.com>
To: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Linux Block Layer Mailinglist <linux-block@vger.kernel.org>,
Linux SCSI Mailinglist <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH blktests 2/3] tests/sg: add SCSI generic test grouop
Date: Thu, 18 May 2017 14:38:08 -0700 [thread overview]
Message-ID: <20170518213808.GC26871@vader.DHCP.thefacebook.com> (raw)
In-Reply-To: <20170518210620.GA26871@vader.DHCP.thefacebook.com>
On Thu, May 18, 2017 at 02:06:20PM -0700, Omar Sandoval wrote:
> On Thu, May 18, 2017 at 02:13:07PM +0200, Johannes Thumshirn wrote:
> > Add a test group for tests of the SCSI generic driver and and
> > functions common to the SCSI generic driver and it's test cases.
> >
> > Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
> > ---
> > common/sg | 22 ++++++++++++++++++++++
> > tests/sg/group | 40 ++++++++++++++++++++++++++++++++++++++++
> > 2 files changed, 62 insertions(+)
> > create mode 100644 common/sg
> > create mode 100644 tests/sg/group
> >
> > diff --git a/common/sg b/common/sg
> > new file mode 100644
> > index 000000000000..30b5089c68f7
> > --- /dev/null
> > +++ b/common/sg
> > +# TODO: if this test group has extra requirements for what devices it can be
> > +# run on, it should define a group_device_requires() function. If tests in this
> > +# group can be run on the test device, it should return zero. Otherwise, it
> > +# should return non-zero and set the $SKIP_REASON variable. $TEST_DEV is the
> > +# full path of the block device (e.g., /dev/nvme0n1 or /dev/sda1), and
> > +# $TEST_DEV_SYSFS is the sysfs path of the disk (not the partition, e.g.,
> > +# /sys/block/nvme0n1 or /sys/block/sda).
> > +#
> > +# Usually, group_device_requires() just needs to check that the test device is
> > +# the right type of hardware or supports any necessary features using the
> > +# _test_dev_foo helpers. If group_device_requires() returns non-zero, all tests
> > +# in this group will be skipped on that device.
> > +# group_device_requires() {
> > +# _test_dev_is_foo && _test_dev_supports_bar
> > +# }
>
> Leftover TODO, I'll remove it when applying. If we add an sg test that
> runs on an actual device, we can define group_device_requires().
On second though, since I had some comments for patch 3, just fix this
up when you resend.
next prev parent reply other threads:[~2017-05-18 21:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-18 12:13 [PATCH blktests 0/3] Add SCSI generic test group Johannes Thumshirn
2017-05-18 12:13 ` [PATCH blktests 1/3] Add ability to build test-cases Johannes Thumshirn
2017-05-18 12:13 ` [PATCH blktests 2/3] tests/sg: add SCSI generic test grouop Johannes Thumshirn
2017-05-18 21:06 ` Omar Sandoval
2017-05-18 21:38 ` Omar Sandoval [this message]
2017-05-18 12:13 ` [PATCH blktests 3/3] sg/001: add regression test for syzcaller generated GPF Johannes Thumshirn
2017-05-18 21:28 ` Omar Sandoval
2017-05-18 13:19 ` [PATCH blktests 0/3] Add SCSI generic test group Christoph Hellwig
2017-05-18 13:29 ` Johannes Thumshirn
2017-05-18 22:46 ` Omar Sandoval
2017-05-19 6:41 ` Johannes Thumshirn
2017-05-21 7:03 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170518213808.GC26871@vader.DHCP.thefacebook.com \
--to=osandov@osandov.com \
--cc=jthumshirn@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox