aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-03-03 20:49:44 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-03-04 10:19:21 +0900
commit259f2ca031d83c3039c365c68216f10f60f9c533 (patch)
tree8e5e76587b09929698c7667b5d5096c9bd6a7430 /meta-ivi-test
parent35b95178dbe3f092589b1b05ce5a615463a4c778 (diff)
downloadmeta-ivi-259f2ca031d83c3039c365c68216f10f60f9c533.tar.gz
meta-ivi-259f2ca031d83c3039c365c68216f10f60f9c533.tar.bz2
meta-ivi-259f2ca031d83c3039c365c68216f10f60f9c533.zip
audiomanager: move *-test package to meta-ivi-test layer
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
Diffstat (limited to 'meta-ivi-test')
-rw-r--r--meta-ivi-test/recipes-multimedia/audiomanager/audiomanager_%.bbappend23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-ivi-test/recipes-multimedia/audiomanager/audiomanager_%.bbappend b/meta-ivi-test/recipes-multimedia/audiomanager/audiomanager_%.bbappend
new file mode 100644
index 0000000..cf552b7
--- /dev/null
+++ b/meta-ivi-test/recipes-multimedia/audiomanager/audiomanager_%.bbappend
@@ -0,0 +1,23 @@
+
+EXTRA_OECMAKE = " -DWITH_TESTS=ON -DUSE_BUILD_LIBS=OFF \
+ -DTEST_EXECUTABLE_INSTALL_PATH=/opt/tests/${PN}/ \
+ -Dgmock_build_tests=ON -Dgtest_build_samples=ON -Dgtest_build_tests=ON \
+ -DCMAKE_SKIP_RPATH=ON \
+ "
+
+PACKAGES += " ${PN}-test"
+do_install_append() {
+ cd ${WORKDIR}/build
+ install -d ${D}/opt/tests/${PN}
+ for i in `find bin/ -type f -regex '.*[tT]est.*'`; do
+ install -m 0755 ${i} ${D}/opt/tests/${PN}
+ done
+ install -m 0755 googleMock/gtest/libgtest_dll.so ${D}/opt/tests/${PN}
+}
+
+FILES_${PN}-dbg += " \
+ /opt/tests/${PN}/.debug/* \
+ "
+FILES_${PN}-test = " \
+ /opt/tests/${PN}/* \
+ "