aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-02-26 17:57:50 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-02-26 23:37:52 +0900
commitc38fa4f3a8fbb493bcfdc56af33322bd594a2bb0 (patch)
treea936fe367aff0fd5d85ca1f50d33480b9d1f531e
parentd11beea404a26df344ce22a35ea592cfd54d4012 (diff)
downloadmeta-ivi-c38fa4f3a8fbb493bcfdc56af33322bd594a2bb0.tar.gz
meta-ivi-c38fa4f3a8fbb493bcfdc56af33322bd594a2bb0.tar.bz2
meta-ivi-c38fa4f3a8fbb493bcfdc56af33322bd594a2bb0.zip
common-api-test: added for testing Common API
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--meta-ivi/recipes-extended/common-api/common-api-test/common-api-test-3.1.5.tar.gzbin0 -> 251169 bytes
-rw-r--r--meta-ivi/recipes-extended/common-api/common-api-test_3.1.5.bb63
2 files changed, 63 insertions, 0 deletions
diff --git a/meta-ivi/recipes-extended/common-api/common-api-test/common-api-test-3.1.5.tar.gz b/meta-ivi/recipes-extended/common-api/common-api-test/common-api-test-3.1.5.tar.gz
new file mode 100644
index 0000000..e1f5f7c
--- /dev/null
+++ b/meta-ivi/recipes-extended/common-api/common-api-test/common-api-test-3.1.5.tar.gz
Binary files differ
diff --git a/meta-ivi/recipes-extended/common-api/common-api-test_3.1.5.bb b/meta-ivi/recipes-extended/common-api/common-api-test_3.1.5.bb
new file mode 100644
index 0000000..7a88f87
--- /dev/null
+++ b/meta-ivi/recipes-extended/common-api/common-api-test_3.1.5.bb
@@ -0,0 +1,63 @@
+SUMMARY = "testsuite for CommonAPI"
+SECTION = "test"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+PR = "r0"
+
+inherit autotools cmake pkgconfig
+
+DEPENDS += " common-api-c++ common-api-c++-dbus glib-2.0"
+
+SRC_URI = " \
+ file://${PN}-${PV}.tar.gz \
+ "
+
+S = "${WORKDIR}/${PN}"
+
+EXTRA_OECMAKE += "-DUSE_INSTALLED_COMMONAPI=ON -DUSE_INSTALLED_DBUS=ON -DCMAKE_INSTALL_PREFIX=/usr"
+
+FILES_${PN} = " \
+ ${bindir}/test/E0* \
+ ${bindir}/test/*/README \
+ ${bindir}/test/*/commonapi4dbus.ini \
+ ${bindir}/test/*/*Client \
+ ${bindir}/test/*/*Service \
+ ${libdir}/*.so \
+ "
+
+FILES_${PN}-dev = ""
+
+FILES_${PN}-dbg += " \
+ ${bindir}/test/.debug/* \
+ ${bindir}/test/*/.debug/* \
+ ${libdir}/.debug/* \
+ "
+
+do_install() {
+ _DEST=${D}${bindir}/test
+ _BIN=${WORKDIR}/build
+
+ install -d ${_DEST}
+ install -d ${D}${libdir}
+ for i in `\ls ${_BIN} | grep E0`; do
+ install -m 0755 ${_BIN}/${i}/${i}Client ${_DEST}
+ install -m 0755 ${_BIN}/${i}/${i}Service ${_DEST}
+ install -m 0755 ${_BIN}/${i}/lib${i}-dbus.so ${D}${libdir}
+ done
+
+ for i in BlueZ ObjectPathSimple UDisks2 VariantSimple; do
+ install -d ${_DEST}/${i}
+ install -m 0755 ${_BIN}/${i}/${i}Client ${_DEST}/${i}
+ rm -rf ${_DEST}/${i}/.debug
+ if [ -e ${_BIN}/${i}/${i}Service ]; then
+ install -m 0755 ${_BIN}/${i}/${i}Service ${_DEST}/${i}
+ fi
+ if [ -e ${S}/${i}/README ]; then
+ install -m 0644 ${S}/${i}/README ${_DEST}/${i}
+ fi
+ if [ -e ${S}/${i}/commonapi4dbus.ini ]; then
+ install -m 0644 ${S}/${i}/commonapi4dbus.ini ${_DEST}/${i}
+ fi
+ install -m 0755 ${_BIN}/${i}/lib${i}-dbus.so ${D}${libdir}
+ done
+}