aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-03-04 19:21:37 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-03-04 22:08:00 +0900
commit336bb19c7d9da6e6a36a7f2cedfb50607ca56eba (patch)
tree7e65ff05a7e6ba0476044f9be0206cd9a2c046eb
parent61e2507b395f6fd6dd43cc611e20565c3b0c56be (diff)
downloadmeta-ivi-336bb19c7d9da6e6a36a7f2cedfb50607ca56eba.tar.gz
meta-ivi-336bb19c7d9da6e6a36a7f2cedfb50607ca56eba.tar.bz2
meta-ivi-336bb19c7d9da6e6a36a7f2cedfb50607ca56eba.zip
node-state-manager: create *-test package
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--meta-ivi-test/recipes-extended/node-state-manager/node-state-manager_%.bbappend24
-rw-r--r--meta-ivi/recipes-extended/node-state-manager/node-state-manager_2.0.0.bb10
2 files changed, 32 insertions, 2 deletions
diff --git a/meta-ivi-test/recipes-extended/node-state-manager/node-state-manager_%.bbappend b/meta-ivi-test/recipes-extended/node-state-manager/node-state-manager_%.bbappend
new file mode 100644
index 0000000..e8e8a2b
--- /dev/null
+++ b/meta-ivi-test/recipes-extended/node-state-manager/node-state-manager_%.bbappend
@@ -0,0 +1,24 @@
+#
+# for test
+#
+do_install_append() {
+ install -d ${D}/opt/tests/${PN}/lib
+ install -m 0755 ${S}/NodeStateTest/NodeStateTest ${D}/opt/tests/${PN}
+ install -m 0644 ${S}/NodeStateTest/org.genivi.NodeStateMachineTest.xml \
+ ${D}${datadir}/dbus-1/interfaces/
+ install -m 0755 ${S}/NodeStateTest/.libs/libNodeStateMachineTest.so \
+ ${D}/opt/tests/${PN}/lib
+}
+
+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}/* \
+ /opt/tests/${PN}/lib/libNodeStateMachineTest.so \
+ ${datadir}/dbus-1/interfaces/org.genivi.NodeStateMachineTest.xml \
+ "
diff --git a/meta-ivi/recipes-extended/node-state-manager/node-state-manager_2.0.0.bb b/meta-ivi/recipes-extended/node-state-manager/node-state-manager_2.0.0.bb
index 8b4abcc..662b86e 100644
--- a/meta-ivi/recipes-extended/node-state-manager/node-state-manager_2.0.0.bb
+++ b/meta-ivi/recipes-extended/node-state-manager/node-state-manager_2.0.0.bb
@@ -43,7 +43,13 @@ FILES_SOLIBSDEV = ""
SOLIBS = "${SOLIBSDEV}"
FILES_${PN} += "\
- ${datadir}/dbus-1/system-services/org.genivi.NodeStateManager.LifeCycleControl.service \
+ ${datadir}/dbus-1/system-services \
+ ${datadir}/dbus-1/interfaces/org.genivi.NodeStateManager.*.xml \
${systemd_unitdir}/system/nodestatemanager-daemon.service \
"
-FILES_${PN}-dev += "${datadir}/dbus-1/interfaces/"
+
+do_install_append() {
+ rm -f ${D}${bindir}/NodeStateTest
+ rm -f ${D}${libdir}/libNodeStateMachineTest.*
+ rm -f ${D}${datadir}/dbus-1/interfaces/org.genivi.NodeStateMachineTest.xml
+}