[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC v3 05/32] tests/qapi-schema: Convert test ha
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH RFC v3 05/32] tests/qapi-schema: Convert test harness to QAPISchemaVisitor |
Date: |
Wed, 05 Aug 2015 08:26:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Eric Blake <address@hidden> writes:
> On 08/04/2015 09:57 AM, Markus Armbruster wrote:
>> The old code prints the result of parsing (list of expression
>> dictionaries), and partial results of semantic analysis (list of enum
>> dictionaries, list of struct dictionaries).
>>
>> The new code prints a trace of a schema visit, i.e. what the back-ends
>> are going to use. Built-in and array types are omitted, because
>> they're boring.
>
> Array types might be less boring in the future when we fix the TODO
> about unconditional array type generation - but that is in the realm of
> the future and doesn't affect this patch.
>
>>
>> Signed-off-by: Markus Armbruster <address@hidden>
>> ---
>> tests/qapi-schema/alternate-good.out | 15 +-
>> tests/qapi-schema/args-member-array.out | 13 +-
>> tests/qapi-schema/comments.out | 4 +-
>> tests/qapi-schema/empty.out | 3 -
>> tests/qapi-schema/enum-empty.out | 4 +-
>> tests/qapi-schema/event-case.out | 4 +-
>> tests/qapi-schema/flat-union-reverse-define.out | 21 ++-
>> tests/qapi-schema/ident-with-escape.out | 7 +-
>> tests/qapi-schema/include-relpath.out | 4 +-
>> tests/qapi-schema/include-repetition.out | 4 +-
>> tests/qapi-schema/include-simple.out | 4 +-
>> tests/qapi-schema/indented-expr.out | 7 +-
>> tests/qapi-schema/qapi-schema-test.out | 214
>> ++++++++++++++++++------
>> tests/qapi-schema/returns-int.out | 5 +-
>> tests/qapi-schema/test-qapi.py | 38 ++++-
>> tests/qapi-schema/type-bypass.out | 7 +-
>> 16 files changed, 239 insertions(+), 115 deletions(-)
>
> I don't know if you wanted to hoist the creation of the ':empty' object
> into this patch, for less churn later on. But if you don't, I'm fine
Again, out of time.
> with leaving this alone.
>
> Reviewed-by: Eric Blake <address@hidden>
Thanks!
>> +++ b/tests/qapi-schema/qapi-schema-test.out
>> @@ -1,55 +1,159 @@
>
>> +object :obj-boolList-wrapper
>> + member data: boolList optional=False
> ...
>> +object UserDefNativeListUnion
>> + case integer: :obj-intList-wrapper
>
> Simple unions turned out nicely with the generated wrapper type.
Thanks for making me try harder there. It's more churn than I would
like, but the resulting improvement feels right.
- [Qemu-devel] [PATCH RFC v3 07/32] qapi: Generate comments to simplify splitting for review, (continued)
- [Qemu-devel] [PATCH RFC v3 07/32] qapi: Generate comments to simplify splitting for review, Markus Armbruster, 2015/08/04
- [Qemu-devel] [PATCH RFC v3 11/32] qapi-visit: Convert to QAPISchemaVisitor, fixing bugs, Markus Armbruster, 2015/08/04
- [Qemu-devel] [PATCH RFC v3 25/32] qapi: Improve built-in type documentation, Markus Armbruster, 2015/08/04
- [Qemu-devel] [PATCH RFC v3 15/32] qapi-event: Convert to QAPISchemaVisitor, fixing data with base, Markus Armbruster, 2015/08/04
- [Qemu-devel] [PATCH RFC v3 05/32] tests/qapi-schema: Convert test harness to QAPISchemaVisitor, Markus Armbruster, 2015/08/04
- [Qemu-devel] [PATCH RFC v3 28/32] qapi-schema: Fix up misleading specification of netdev_add, Markus Armbruster, 2015/08/04
- [Qemu-devel] [PATCH RFC v3 10/32] qapi-types: Convert to QAPISchemaVisitor, fixing flat unions, Markus Armbruster, 2015/08/04
- [Qemu-devel] [PATCH RFC v3 27/32] qom: Don't use 'gen': false for qom-get, qom-set, object-add, Markus Armbruster, 2015/08/04
- [Qemu-devel] [PATCH RFC v3 31/32] qapi-introspect: Map all integer types to 'int', Markus Armbruster, 2015/08/04
- [Qemu-devel] [PATCH RFC v3 20/32] qapi-visit: Rearrange code a bit, Markus Armbruster, 2015/08/04
- [Qemu-devel] [PATCH RFC v3 32/32] qapi-introspect: Hide type names, Markus Armbruster, 2015/08/04