On 20 December 2013 11:08, Igor Mammedov <imamm...@redhat.com> wrote: > --- > 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
This line's getting a bit long and could use folding I guess. > > # 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. "QOM", "interface" :-) thanks -- PMM