Received: from eggs.gnu.org ([2001:4830:134:3::10]:57365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuK6q-0005bq-S9 for qemu-devel@nongnu.org; Sat, 21 Dec 2013 05:48:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VuK6l-00029F-Bt for qemu-devel@nongnu.org; Sat, 21 Dec 2013 05:48:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuK6l-00029A-37 for qemu-devel@nongnu.org; Sat, 21 Dec 2013 05:48:35 -0500 From: Markus Armbruster References: <1387537713-18619-1-git-send-email-imammedo@redhat.com> Date: Sat, 21 Dec 2013 11:48:29 +0100 In-Reply-To: <1387537713-18619-1-git-send-email-imammedo@redhat.com> (Igor Mammedov's message of "Fri, 20 Dec 2013 12:08:33 +0100") Message-ID: <87bo0albsy.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [RFC] test: QOM interface casting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, anthony@codemonkey.ws, afaerber@suse.de 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? ;-) [...]