aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-03-11 18:17:51 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-03-11 18:17:51 +0900
commit21264d0aee75ef6ba0c41411e4ec57ce0502188f (patch)
tree7282c6a87b6fe09ecfc5a9838c42d841538cec12
parentf80a3b9ade9a092f27ddcb1bf51f1913d6f03f6d (diff)
downloadmeta-ivi-21264d0aee75ef6ba0c41411e4ec57ce0502188f.tar.gz
meta-ivi-21264d0aee75ef6ba0c41411e4ec57ce0502188f.tar.bz2
meta-ivi-21264d0aee75ef6ba0c41411e4ec57ce0502188f.zip
bluez5: create *-test package
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--meta-ivi-test/recipes-connectivity/bluez5/bluez5_%.bbappend38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-ivi-test/recipes-connectivity/bluez5/bluez5_%.bbappend b/meta-ivi-test/recipes-connectivity/bluez5/bluez5_%.bbappend
new file mode 100644
index 0000000..43d4886
--- /dev/null
+++ b/meta-ivi-test/recipes-connectivity/bluez5/bluez5_%.bbappend
@@ -0,0 +1,38 @@
+#
+# for test
+#
+PACKAGECONFIG += " experimental"
+
+do_install_append() {
+ install -d ${D}/opt/tests/${PN}
+ mv ${D}/${libdir}/bluez/test/* ${D}/opt/tests/${PN}
+ rmdir ${D}/${libdir}/bluez/test
+ rmdir ${D}/${libdir}/bluez
+
+ # move desired tools that upstream leaves in build area
+ for f in ${NOINST_TOOLS} ; do
+ g=`basename $f`
+ mv ${D}/${bindir}/$g ${D}/opt/tests/${PN}
+ done
+}
+
+def get_noinst_tools_paths2 (d, bb, tools):
+ s = list()
+ bindir = '/opt/tests/' + d.getVar("PN", True)
+ for bdp in tools.split():
+ f = os.path.basename(bdp)
+ s.append("%s/%s" % (bindir, f))
+ return "\n".join(s)
+
+FILES_${PN}-noinst-tools = "${@get_noinst_tools_paths2(d, bb, d.getVar('NOINST_TOOLS', True))}"
+
+PACKAGES += "${PN}-test"
+DEPENDS_${PN}-test = "${PN}"
+
+FILES_${PN}-dbg += " \
+ /opt/tests/${PN}/.debug/* \
+ /opt/tests/${PN}/lib/.debug/* \
+ "
+FILES_${PN}-test = " \
+ /opt/tests/${PN}/* \
+ "