From: Luiz Capitulino <lcapitulino@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kwolf@redhat.com, peter.maydell@linaro.org,
qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com,
Markus Armbruster <armbru@redhat.com>,
aliguori@amazon.com
Subject: Re: [Qemu-devel] [PATCH v2 00/13] qapi: Test coverage & clean up generated code
Date: Thu, 13 Feb 2014 08:57:44 -0500 [thread overview]
Message-ID: <20140213085744.338b911b@redhat.com> (raw)
In-Reply-To: <20140213084148.699c17ca@redhat.com>
On Thu, 13 Feb 2014 08:41:48 -0500
Luiz Capitulino <lcapitulino@redhat.com> wrote:
> On Thu, 13 Feb 2014 10:31:17 +0100
> Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> > Il 10/02/2014 15:20, Markus Armbruster ha scritto:
> > > Coverity is unhappy with the generated code. Nothing serious, just
> > > heaps of valid DEADCODE defects topped off with a few bogus
> > > FORWARD_NULL defects.
> > >
> > > I had a look at the generator, and decided I don't want to mess with
> > > it without decent test coverage. Unfortunately, a few features have
> > > been added without tests. My first seven patches make the tests catch
> > > up. tests/qapi-schema/qapi-schema-test.json now covers all mcgen() in
> > > scripts/qapi*.py, except for a few in qapi-commands.py that are
> > > conditional on -m.
> > >
> > > The next four patches clean up the generated code.
> > >
> > > I also reviewed null checks in visitor implementations. The final two
> > > patches address the issues I found there.
> > >
> > > v2:
> > > * Previously separate patch "qapi: Fix licensing of scripts" revised
> > > and included as "[PATCH v2 08/13] qapi: Fix licensing of scripts"
> > > * Style cleanups
> > > * New PATCH 12/13 and 13/13
> > >
> > > Markus Armbruster (13):
> > > tests/qapi-schema: Actually check successful QMP command response
> > > tests/qapi-schema: Cover optional command arguments
> > > tests/qapi-schema: Cover simple argument types
> > > tests/qapi-schema: Cover anonymous union types
> > > tests/qapi-schema: Cover complex types with base
> > > tests/qapi-schema: Cover union types with base
> > > tests/qapi-schema: Cover flat union types
> > > qapi: Fix licensing of scripts
> > > qapi: Drop nonsensical header guard in generated qapi-visit.c
> > > qapi: Drop unused code in qapi-commands.py
> > > qapi: Clean up null checking in generated visitors
> > > qapi: Clean up superfluous null check in qapi_dealloc_type_str()
> > > qapi: Add missing null check to opts_start_struct()
> > >
> > > qapi/opts-visitor.c | 4 +-
> > > qapi/qapi-dealloc-visitor.c | 4 +-
> > > scripts/qapi-commands.py | 24 +---------
> > > scripts/qapi-types.py | 4 +-
> > > scripts/qapi-visit.py | 20 ++++-----
> > > scripts/qapi.py | 4 +-
> > > tests/qapi-schema/qapi-schema-test.json | 24 +++++++++-
> > > tests/qapi-schema/qapi-schema-test.out | 19 +++++---
> > > tests/test-qmp-commands.c | 78 +++++++++++++++++++++++++++------
> > > tests/test-qmp-input-strict.c | 69 ++++++++++++++++++++++++++++-
> > > tests/test-qmp-input-visitor.c | 45 +++++++++++++++++--
> > > tests/test-qmp-output-visitor.c | 67 ++++++++++++++++++++++++++--
> > > tests/test-visitor-serialization.c | 14 +++---
> > > 13 files changed, 299 insertions(+), 77 deletions(-)
> > >
> >
> > Thanks Markus!
> >
> > Luiz, should this go in through your tree?
>
> It could. Markus, what's your plan for this series? Is anyone going to
> pick it up?
Turns out it conflicts with something on my tree (probably Wenchao's series).
Can you please rebase on top of it Markus?
prev parent reply other threads:[~2014-02-13 13:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-10 14:20 [Qemu-devel] [PATCH v2 00/13] qapi: Test coverage & clean up generated code Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 01/13] tests/qapi-schema: Actually check successful QMP command response Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 02/13] tests/qapi-schema: Cover optional command arguments Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 03/13] tests/qapi-schema: Cover simple argument types Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 04/13] tests/qapi-schema: Cover anonymous union types Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 05/13] tests/qapi-schema: Cover complex types with base Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 06/13] tests/qapi-schema: Cover union " Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 07/13] tests/qapi-schema: Cover flat union types Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 08/13] qapi: Fix licensing of scripts Markus Armbruster
2014-02-10 15:26 ` Eric Blake
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 09/13] qapi: Drop nonsensical header guard in generated qapi-visit.c Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 10/13] qapi: Drop unused code in qapi-commands.py Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH v2 11/13] qapi: Clean up null checking in generated visitors Markus Armbruster
2014-02-10 14:20 ` [Qemu-devel] [PATCH 12/13] qapi: Clean up superfluous null check in qapi_dealloc_type_str() Markus Armbruster
2014-02-10 15:27 ` Eric Blake
2014-02-10 14:20 ` [Qemu-devel] [PATCH 13/13] qapi: Add missing null check to opts_start_struct() Markus Armbruster
2014-02-10 15:28 ` Eric Blake
2014-02-13 9:30 ` Paolo Bonzini
2014-02-13 9:31 ` [Qemu-devel] [PATCH v2 00/13] qapi: Test coverage & clean up generated code Paolo Bonzini
2014-02-13 13:41 ` Luiz Capitulino
2014-02-13 13:57 ` Luiz Capitulino [this message]
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=20140213085744.338b911b@redhat.com \
--to=lcapitulino@redhat.com \
--cc=aliguori@amazon.com \
--cc=armbru@redhat.com \
--cc=kwolf@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--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).