diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2016-04-01 17:57:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-03 15:51:08 +0100 |
commit | 70d8cb61b03aa9214fe0e1990ab9500888d9f565 (patch) | |
tree | e038f20ef2e2471c3c006b6aff99b037bcb30b1d /meta/recipes-connectivity/bluez5/bluez5.inc | |
parent | 574405a97f956278d31d52cfc934be2840cf2fa6 (diff) | |
download | openembedded-core-contrib-70d8cb61b03aa9214fe0e1990ab9500888d9f565.tar.gz |
bluez5: add ptest support
[YOCTO #5134]
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index f38eaa5035..523252373a 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc @@ -19,11 +19,13 @@ PACKAGECONFIG[experimental] = "--enable-experimental,--disable-experimental," SRC_URI = "\ ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ file://init \ + file://run-ptest \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \ + file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ " S = "${WORKDIR}/bluez-${PV}" -inherit autotools-brokensep pkgconfig systemd update-rc.d distro_features_check +inherit autotools-brokensep pkgconfig systemd update-rc.d distro_features_check ptest EXTRA_OECONF = "\ --enable-tools \ @@ -101,3 +103,12 @@ INITSCRIPT_PACKAGES = "${PN}" INITSCRIPT_NAME_${PN} = "bluetooth" EXCLUDE_FROM_WORLD = "1" + +do_compile_ptest() { + oe_runmake buildtests +} + +do_install_ptest() { + cp -r ${B}/unit/ ${D}${PTEST_PATH} + rm ${D}${PTEST_PATH}/unit/*.c ${D}${PTEST_PATH}/unit/*.o +} |