From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuNzM-00083d-TQ for qemu-devel@nongnu.org; Sat, 21 Dec 2013 09:57:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VuNzH-0001PS-Hn for qemu-devel@nongnu.org; Sat, 21 Dec 2013 09:57:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuNzH-0001PO-80 for qemu-devel@nongnu.org; Sat, 21 Dec 2013 09:57:07 -0500 Date: Sat, 21 Dec 2013 15:56:58 +0100 From: Igor Mammedov Message-ID: <20131221155658.68b195f5@thinkpad> In-Reply-To: <87bo0albsy.fsf@blackfin.pond.sub.org> References: <1387537713-18619-1-git-send-email-imammedo@redhat.com> <87bo0albsy.fsf@blackfin.pond.sub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] test: QOM interface casting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, anthony@codemonkey.ws, afaerber@suse.de On Sat, 21 Dec 2013 11:48:29 +0100 Markus Armbruster wrote: > Igor Mammedov writes: > > > --- > > tests/Makefile | 3 + > > tests/check-qom-interface.c | 102 +++++++++++++++++++++++++++++++++++++++++++ > > 2 files changed, 105 insertions(+), 0 deletions(-) > > create mode 100644 tests/check-qom-interface.c > > > > diff --git a/tests/Makefile b/tests/Makefile > > index 379cdd9..dfb6cce 100644 > > --- a/tests/Makefile > > +++ b/tests/Makefile > > @@ -52,6 +52,8 @@ check-unit-y += tests/test-int128$(EXESUF) > > gcov-files-test-int128-y = > > check-unit-y += tests/test-bitops$(EXESUF) > > check-unit-y += tests/test-qdev-global-props$(EXESUF) > > +check-unit-y = tests/check-qom-interface$(EXESUF) > > +gcov-files-check-qdict-y = object/object.c > > > > check-block-$(CONFIG_POSIX) += tests/qemu-iotests-quick.sh > > > > @@ -205,6 +207,7 @@ tests/qom-test$(EXESUF): tests/qom-test.o > > tests/blockdev-test$(EXESUF): tests/blockdev-test.o $(libqos-pc-obj-y) > > tests/qdev-monitor-test$(EXESUF): tests/qdev-monitor-test.o $(libqos-pc-obj-y) > > tests/qemu-iotests/socket_scm_helper$(EXESUF): > > tests/qemu-iotests/socket_scm_helper.o > > +tests/check-qom-interface$(EXESUF): tests/check-qom-interface.o > > qom/object.o qom/qom-qobject.o libqemuutil.a libqemustub.a > > > > # QTest rules > > > > diff --git a/tests/check-qom-interface.c b/tests/check-qom-interface.c > > new file mode 100644 > > index 0000000..6d59606 > > --- /dev/null > > +++ b/tests/check-qom-interface.c > > @@ -0,0 +1,102 @@ > > +/* > > + * OQM interfacei test. > > Machine-gun typist, eh? ;-) sort of :) fixed in v2 > > [...] -- Regards, Igor