Received: from eggs.gnu.org ([2001:4830:134:3::10]:55756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bocKx-0003P4-Vt for qemu-devel@nongnu.org; Mon, 26 Sep 2016 16:17:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bocKt-0002gE-Oy for qemu-devel@nongnu.org; Mon, 26 Sep 2016 16:17:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bocKt-0002gA-G9 for qemu-devel@nongnu.org; Mon, 26 Sep 2016 16:17:11 -0400 References: <20160926101627.14296-1-lma@suse.com> <20160926101627.14296-3-lma@suse.com> <20160926103856.GG18393@redhat.com> From: Eric Blake Message-ID: <6240d947-e8cb-29d9-038c-db990f4e6298@redhat.com> Date: Mon, 26 Sep 2016 15:17:08 -0500 MIME-Version: 1.0 In-Reply-To: <20160926103856.GG18393@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aF44NjHdXRejhLSAuQgGgqJ5DWF2DpkUu" Subject: Re: [Qemu-devel] [PATCH v3 2/3] qapi: auto generate enum value strings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , Lin Ma Cc: armbru@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, afaerber@suse.de This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aF44NjHdXRejhLSAuQgGgqJ5DWF2DpkUu From: Eric Blake To: "Daniel P. Berrange" , Lin Ma Cc: armbru@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, afaerber@suse.de Message-ID: <6240d947-e8cb-29d9-038c-db990f4e6298@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 2/3] qapi: auto generate enum value strings References: <20160926101627.14296-1-lma@suse.com> <20160926101627.14296-3-lma@suse.com> <20160926103856.GG18393@redhat.com> In-Reply-To: <20160926103856.GG18393@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/26/2016 05:38 AM, Daniel P. Berrange wrote: > On Mon, Sep 26, 2016 at 06:16:26PM +0800, Lin Ma wrote: >> Automatically generate enum value strings that containing the acceptab= le values. >> (Borrowwed Daniel's code.) s/Borrowwed/Borrowed/ >> >> Signed-off-by: Lin Ma >> --- >> scripts/qapi-types.py | 2 ++ >> scripts/qapi.py | 9 +++++++++ >> 2 files changed, 11 insertions(+) >=20 > This will need some test case coverage in tests/ somewhere, but I'm > not sure exactly which place is best - Eric/Markus can probably advise tests/test-qmp-commands.c is the first one that comes to mind, for adding another test case to an existing program. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --aF44NjHdXRejhLSAuQgGgqJ5DWF2DpkUu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX6YJEAAoJEKeha0olJ0Nq9l4H/0qP4IPVrlFeuIrot7ve0pOp kDYeznPXTtIzzvt4QzXcQxzywzEdeUwCs1jRFIb+W4Tq56/D3VHanOUYHS5r1O7Y S7SS0RHPmRiclwEUWeRAvtG6wfhgMDXjo8+a/dCKEYT1SzzR9Oi4d0B+X5UzCbkj 0QIp13Tx1vbiSjXXFvHb3yaV+qjU2XofW6te3K3JqZhlnAVnwpPeKaWlkx5syVKf 2pNU4ALGCgBcq+ZcemKH+D8hURuZTzQZLyBaOoeMmkASDKyovtvdeCvvj5IISG4r xbhjX96JJNDyv4OU8KXM4QFllu0SmtkVNooI/67vNai9yQ1gXbe00jqA0An594U= =AqLo -----END PGP SIGNATURE----- --aF44NjHdXRejhLSAuQgGgqJ5DWF2DpkUu--