aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test/recipes-extended/persistence-administrator
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-07-21 16:26:41 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-07-22 18:05:08 +0900
commitac2477469052e8c94c751a63781ee6d969e027f0 (patch)
treeaaa2018e0bf74c805a4ffc69256695e99ebfdb9f /meta-ivi-test/recipes-extended/persistence-administrator
parent3d5fe70bf61118412ca346c353eaa1c881bc1044 (diff)
downloadmeta-ivi-ac2477469052e8c94c751a63781ee6d969e027f0.tar.gz
meta-ivi-ac2477469052e8c94c751a63781ee6d969e027f0.tar.bz2
meta-ivi-ac2477469052e8c94c751a63781ee6d969e027f0.zip
test-fw: added (test framework)
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
Diffstat (limited to 'meta-ivi-test/recipes-extended/persistence-administrator')
-rw-r--r--meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc27
-rw-r--r--meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator_%.bbappend15
2 files changed, 35 insertions, 7 deletions
diff --git a/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc b/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc
new file mode 100644
index 0000000..0e3a65c
--- /dev/null
+++ b/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc
@@ -0,0 +1,27 @@
+#!/bin/sh
+get_list() {
+ return 1
+}
+
+get_title() {
+ echo "persistence-administrator"
+}
+
+run_1() {
+ echo "error!"
+ echo "segfault at 7fa2ac0b6010 ip 000000364d88e130 sp 00007fa2ae0f2aa8 error 4 in libc-2.23.so[364d800000+197000]"
+ exit -1
+
+ if [ ! -d /tmp/PAS ]; then
+ rm -f /tmp/PAS
+ mkdir -p /tmp/PAS
+ fi
+ cp /opt/tests/persistence-administrator/resource*.tar.gz /tmp/PAS/
+
+ systemctl restart dlt-dbus
+ systemctl restart dlt-example-user
+ systemctl restart pas-daemon
+ systemctl restart node-startup-controller
+ persadmin_tool install /Data/Data.tar.gz
+ /opt/tests/persistence-administrator/pers_admin_test_framework
+}
diff --git a/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator_%.bbappend b/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator_%.bbappend
index e0026d4..13bcb3d 100644
--- a/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator_%.bbappend
+++ b/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator_%.bbappend
@@ -1,6 +1,10 @@
#
# test
#
+FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
+SRC_URI_append += " file://${BPN}_t.inc \
+ "
+
do_install_append() {
install -d ${D}/opt/tests/${PN}
mv ${S}/test/pers_svc_test/.libs/pers_admin_test_framework \
@@ -13,15 +17,12 @@ do_install_append() {
touch ${D}/Data/mnt-wt/README.wt
install -d ${D}/Data/mnt-c/
touch ${D}/Data/mnt-wt/README.c
+
+ install -m 0755 ${WORKDIR}/${BPN}_t.inc ${D}/opt/tests/${PN}
}
PACKAGES += "${PN}-test"
DEPENDS_${PN}-test = "${PN}"
-FILES_${PN}-dbg += " \
- /opt/tests/${PN}/.debug/* \
- "
-FILES_${PN}-test = " \
- /opt/tests/${PN}/* \
- /Data/* \
- "
+FILES_${PN}-dbg += "/opt/tests/${PN}/.debug/* "
+FILES_${PN}-test = "/opt/tests/${PN}/ /Data/* "