aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-06-15 15:00:12 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-06-16 21:36:48 +0900
commitfc00fd81d12abfbe0323d27946b90aca5096ba0a (patch)
tree7fdd9685a83ae74e84e7005d4302e1122f6f2119 /meta-ivi-test
parent04971990b9f92b600a55c169799e130c9a8bcd66 (diff)
downloadmeta-ivi-fc00fd81d12abfbe0323d27946b90aca5096ba0a.tar.gz
meta-ivi-fc00fd81d12abfbe0323d27946b90aca5096ba0a.tar.bz2
meta-ivi-fc00fd81d12abfbe0323d27946b90aca5096ba0a.zip
persistence-common-object: update to latest git
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
Diffstat (limited to 'meta-ivi-test')
-rw-r--r--meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object/persistence-common-object_t.inc22
-rw-r--r--meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object_%.bbappend9
2 files changed, 22 insertions, 9 deletions
diff --git a/meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object/persistence-common-object_t.inc b/meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object/persistence-common-object_t.inc
index 1495486..de12b39 100644
--- a/meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object/persistence-common-object_t.inc
+++ b/meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object/persistence-common-object_t.inc
@@ -1,6 +1,6 @@
#!/bin/sh
get_list() {
- return 1
+ return 2
}
get_title() {
@@ -8,13 +8,9 @@ get_title() {
}
_run_dir=/opt/tests/persistence-common-object
-_run_1() {
- ${_run_dir}/test_pco_key_value_store
-}
-
-run_1() {
- if [ "x${1}" != "x" ]; then
- _run_1 > /tmp/t
+_run_x() {
+ if [ "x${2}" != "x" ]; then
+ ${_run_dir}/$1 > /tmp/t
_c1=`cat /tmp/t | grep :P: | wc -l`
_c2=`cat /tmp/t | grep :F: | wc -l`
if [ "x${_c1}" = "x0" ]; then
@@ -25,6 +21,14 @@ run_1() {
echo " ${_c1} PASSED, ${_c2} FAILED"
fi
else
- _run_1
+ ${_run_dir}/$1
fi
}
+
+run_1() {
+ _run_x test_pco_key_value_store $*
+}
+
+run_2() {
+ _run_x persistence_common_object_test $*
+}
diff --git a/meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object_%.bbappend b/meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object_%.bbappend
index ce049e9..15d2f1a 100644
--- a/meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object_%.bbappend
+++ b/meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object_%.bbappend
@@ -7,12 +7,21 @@ SRC_URI_append += " file://${BPN}_t.inc \
EXTRA_OECONF += " --enable-tests "
+do_configure_append() {
+ perl -pi -e 's|usr/local/var|opt/tests/persistence-common-object|' \
+ ${S}/test/test_pco_key_value_store.c
+}
+
do_install_append() {
install -d ${D}/opt/tests/${PN}
install -m 0755 ${S}/test/.libs/test_pco_key_value_store \
${D}/opt/tests/${PN}
+ install -m 0755 ${S}/test/.libs/persistence_common_object_test \
+ ${D}/opt/tests/${PN}
install -m 0755 ${WORKDIR}/${BPN}_t.inc ${D}/opt/tests/${PN}
+ mv ${D}/var/rct_compare.tar.gz ${D}/opt/tests/${PN}
+ rmdir ${D}/var
}
PACKAGES += "${PN}-test"