aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-03-18 19:22:07 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-03-18 19:44:35 +0900
commit2ae25d0a17542ad98996d606f6a5c9f605cc2e74 (patch)
treea4a5fc41451b46b48df15d3ee92cfc57a78ca892
parentbc94e52779fc70ebe665f7f33e603507ebf93937 (diff)
downloadmeta-ivi-2ae25d0a17542ad98996d606f6a5c9f605cc2e74.tar.gz
meta-ivi-2ae25d0a17542ad98996d606f6a5c9f605cc2e74.tar.bz2
meta-ivi-2ae25d0a17542ad98996d606f6a5c9f605cc2e74.zip
node-health-monitor: create *-test package
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--meta-ivi-test/recipes-extended/node-health-monitor/node-health-monitor_%.bbappend25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-ivi-test/recipes-extended/node-health-monitor/node-health-monitor_%.bbappend b/meta-ivi-test/recipes-extended/node-health-monitor/node-health-monitor_%.bbappend
new file mode 100644
index 0000000..fa2055a
--- /dev/null
+++ b/meta-ivi-test/recipes-extended/node-health-monitor/node-health-monitor_%.bbappend
@@ -0,0 +1,25 @@
+#
+# for test
+#
+do_compile_append() {
+ make -C tst nhm-main-test
+ make -C tst nhm-systemd-test
+}
+
+do_install_append() {
+ install -d ${D}/opt/tests/${PN}
+ install -m 0755 ${S}/tst/nhm-main-test ${D}/opt/tests/${PN}
+ install -m 0755 ${S}/tst/nhm-systemd-test ${D}/opt/tests/${PN}
+ ln -s /etc ${D}/opt/tests/cfg
+}
+
+PACKAGES += "${PN}-test"
+DEPENDS_${PN}-test = "${PN}"
+
+FILES_${PN}-dbg += " \
+ /opt/tests/${PN}/.debug/* \
+ "
+FILES_${PN}-test = " \
+ /opt/tests/${PN}/* \
+ /opt/tests/cfg \
+ "