qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jing Liu <liujbjl@linux.vnet.ibm.com>
To: Cleber Rosa <crosa@redhat.com>, John Snow <jsnow@redhat.com>,
	qemu-devel@nongnu.org
Cc: Lukas Doktor <ldoktor@redhat.com>, Amador Segundo <asegundo@redhat.com>
Subject: Re: [Qemu-devel] Question for iotests 188, 189 and 087
Date: Thu, 20 Jul 2017 16:37:29 +0800	[thread overview]
Message-ID: <7f47afb9-fef3-3ca3-185f-d6844589798c@linux.vnet.ibm.com> (raw)
In-Reply-To: <ac3a06a2-bc47-92bb-50e2-0b8174c2b515@redhat.com>

Hi Cleber Rosa,


On 2017/7/19 上午5:22, Cleber Rosa wrote:
>
> On 07/18/2017 02:07 PM, John Snow wrote:
>>
>> On 07/17/2017 11:01 PM, Jing Liu wrote:
>>
[...]
> I see issues here:
>
> 1) The qemu-iotests "runner", that is, "./check", understands that a
> file number is a test.  No further granularity is (currently?)
> achievable here.
>
> The easy solution would be to split tests which depend on optional
> features to separate test files.  In the 087 test given as example,
> the "=== aio=native without O_DIRECT ===" block would become, say, 190.
>
> 2) Skip tests based on features more easily.  There's already support
> for skipping tests on various situations.  From 087:
>
> ...
> _supported_fmt qcow2
> _supported_proto file
> _supported_os Linux
> ...
>
> It's trivial to also have access to other compile time settings.  I did
> a quick experiment that would add a "_required_feature" function to
> "common.rc".
This seems a good way to solve this problem.
I failed for 087 just because there is no CONFIG_NETTLE_KDF.

I wonder how can common.rc detect if there's CONFIG_XXX in config-host.mak ?

Thanks.
Jing
>   For 087 (or 190?) it would look like:
>
> ...
> _supported_fmt qcow2
> _supported_proto file
> _supported_os Linux
> _required_feature CONFIG_LINUX_AIO
> ...
>
> Does it make sense?  Would a patch series along those lines would be
> welcomed by reviews?
>
> Thanks!
>

  parent reply	other threads:[~2017-07-20  8:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-18  3:01 [Qemu-devel] Question for iotests 188, 189 and 087 Jing Liu
2017-07-18 14:57 ` Eric Blake
2017-07-19  2:40   ` Jing Liu
2017-07-18 18:07 ` John Snow
2017-07-18 21:22   ` Cleber Rosa
2017-07-18 21:47     ` John Snow
2017-07-19 16:12       ` Cleber Rosa
2017-07-18 22:16     ` Eric Blake
2017-07-20  8:37     ` Jing Liu [this message]
2017-07-20 13:52       ` Cleber Rosa
2017-07-19  7:27   ` Jing Liu

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=7f47afb9-fef3-3ca3-185f-d6844589798c@linux.vnet.ibm.com \
    --to=liujbjl@linux.vnet.ibm.com \
    --cc=asegundo@redhat.com \
    --cc=crosa@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=ldoktor@redhat.com \
    --cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).