[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 07/14] qapi: add some type check tests
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v3 07/14] qapi: add some type check tests |
Date: |
Thu, 14 Aug 2014 11:47:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Eric Blake <address@hidden> writes:
> Demonstrate that the qapi generator silently parses confusing
> types, which may cause other errors later on. Later patches
> will update the expected results as the generator is made stricter.
>
> * tests/qapi-schema/data-array-empty.*: New files.
> * tests/qapi-schema/data-array-unknown.*: Likewise.
> * tests/qapi-schema/data-unknown.*: Likewise.
> * tests/qapi-schema/data-int.*: Likewise.
> * tests/qapi-schema/returns-unknown.*: Likewise.
> * tests/qapi-schema/returns-int.*: Likewise.
> * tests/qapi-schema/returns-array-bad.*: Likewise.
> * tests/Makefile (check-qapi-schema-y): Run them.
>
> Signed-off-by: Eric Blake <address@hidden>
[...]
> diff --git a/tests/qapi-schema/returns-array-bad.err
> b/tests/qapi-schema/returns-array-bad.err
> new file mode 100644
> index 0000000..e69de29
> diff --git a/tests/qapi-schema/returns-array-bad.exit
> b/tests/qapi-schema/returns-array-bad.exit
> new file mode 100644
> index 0000000..573541a
> --- /dev/null
> +++ b/tests/qapi-schema/returns-array-bad.exit
> @@ -0,0 +1 @@
> +0
> diff --git a/tests/qapi-schema/returns-array-bad.json
> b/tests/qapi-schema/returns-array-bad.json
> new file mode 100644
> index 0000000..76bf6df
> --- /dev/null
> +++ b/tests/qapi-schema/returns-array-bad.json
> @@ -0,0 +1 @@
> +{ 'command': 'oops', 'data': [ 'str', 'str' ] }
The file name suggests you want to test 'returns' rather than 'data' here.
[...]
- Re: [Qemu-devel] [PATCH v3 08/14] qapi: add expr_name() helper, (continued)
- [Qemu-devel] [PATCH v3 05/14] qapi: add some expr tests, Eric Blake, 2014/08/05
- [Qemu-devel] [PATCH v3 02/14] qapi: ignore files created during make check, Eric Blake, 2014/08/05
- [Qemu-devel] [PATCH v3 14/14] qapi: drop support for inline subtypes, Eric Blake, 2014/08/05
- [Qemu-devel] [PATCH v3 07/14] qapi: add some type check tests, Eric Blake, 2014/08/05
- Re: [Qemu-devel] [PATCH v3 07/14] qapi: add some type check tests,
Markus Armbruster <=
- [Qemu-devel] [PATCH v3 13/14] qapi: drop inline subtype in query-pci, Eric Blake, 2014/08/05
- [Qemu-devel] [PATCH v3 10/14] qapi: merge UserDefTwo and UserDefNested in tests, Eric Blake, 2014/08/05
- [Qemu-devel] [PATCH v3 12/14] qapi: drop inline subtype in query-version, Eric Blake, 2014/08/05
- [Qemu-devel] [PATCH v3 11/14] qapi: drop tests for inline subtypes, Eric Blake, 2014/08/05
- Re: [Qemu-devel] [PATCH v3 00/14] drop qapi nested structs, Eric Blake, 2014/08/12
- Re: [Qemu-devel] [PATCH v3 00/14] drop qapi nested structs, Markus Armbruster, 2014/08/14
- Re: [Qemu-devel] [PATCH v3 00/14] drop qapi nested structs, Luiz Capitulino, 2014/08/15