diff options
author | Yao Zhao <yao.zhao@windriver.com> | 2012-07-17 16:46:30 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 17:13:39 +0100 |
commit | 9acc464905f8106c2828e1b7bb6ce9f9be810302 (patch) | |
tree | 630e59b348b486840e9f801af151189fcb467de9 /meta/recipes-core/dbus/dbus-glib.inc | |
parent | aefa55f3553f00753d1eb95905086bc12bc5bfaa (diff) | |
download | openembedded-core-9acc464905f8106c2828e1b7bb6ce9f9be810302.tar.gz |
dbus-glib: add support for install regression tests
dbus-glib.inc: default turn off unit test as libdbus-glib-1.so.2.2.2 will
have unit test code if DBUS_BUILD_TESTS enabled. User can turn it on with
PACKAGECONFIG_pn-dbus-glib = "tests" in local.conf or
PACKAGECONFIG ??= "tests" in recipe itself.
test-install-makefile.patch: install unit tests for test purpose
Add tests and tests-dbg package.
Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/dbus/dbus-glib.inc')
-rw-r--r-- | meta/recipes-core/dbus/dbus-glib.inc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/meta/recipes-core/dbus/dbus-glib.inc b/meta/recipes-core/dbus/dbus-glib.inc index f554ce82b1..a8e6d420f7 100644 --- a/meta/recipes-core/dbus/dbus-glib.inc +++ b/meta/recipes-core/dbus/dbus-glib.inc @@ -13,15 +13,21 @@ DEPENDS_virtclass-native = "glib-2.0-native dbus-native" SRC_URI = "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \ file://no-examples.patch \ file://test-service-glib-include-glib-only.patch \ + file://test-install-makefile.patch \ " inherit autotools pkgconfig gettext +#default disable regression tests, some unit test code in non testing code +#PACKAGECONFIG_pn-${PN} = "tests" enable regression tests local.conf +PACKAGECONFIG ??= "" +PACKAGECONFIG[tests] = "--enable-tests,,," + EXTRA_OECONF = "--with-introspect-xml=${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml \ --with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool" EXTRA_OECONF_virtclass-native = "--with-introspect-xml=${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml" -PACKAGES += "${PN}-bash-completion" +PACKAGES += "${PN}-bash-completion ${PN}-tests-dbg ${PN}-tests" FILES_${PN} = "${libdir}/lib*${SOLIBS}" FILES_${PN}-bash-completion = "${sysconfdir}/bash_completion.d/dbus-bash-completion.sh \ @@ -29,4 +35,10 @@ FILES_${PN}-bash-completion = "${sysconfdir}/bash_completion.d/dbus-bash-complet FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool" FILES_${PN}-dev += "${bindir}/dbus-binding-tool" +RDEPENDS_${PN}-tests += "dbus-x11" +FILES_${PN}-tests = "${datadir}/${PN}/tests" +FILES_${PN}-tests-dbg = "${datadir}/${PN}/tests/.debug/* \ + ${datadir}/${PN}/tests/core/.debug/* \ + ${datadir}/${PN}/tests/interfaces/.debug/*" + BBCLASSEXTEND = "native" |