aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-02-24 20:33:48 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-02-26 23:37:22 +0900
commitfda85edc30790be2c521ca2269e0f9aa1a6a8a30 (patch)
tree17d52f1f2264c6099b55d43483dbb8f7d77a4233
parentf916a9013fbb4f3aa07236b4b072f34c16fb305c (diff)
downloadmeta-ivi-fda85edc30790be2c521ca2269e0f9aa1a6a8a30.tar.gz
meta-ivi-fda85edc30790be2c521ca2269e0f9aa1a6a8a30.tar.bz2
meta-ivi-fda85edc30790be2c521ca2269e0f9aa1a6a8a30.zip
persistence-client-library: add *-testenv package
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--meta-ivi/recipes-extended/persistence-client-library/persistence-client-library/0001-fix-exec-path.patch26
-rw-r--r--meta-ivi/recipes-extended/persistence-client-library/persistence-client-library_1.1.0.bb38
2 files changed, 62 insertions, 2 deletions
diff --git a/meta-ivi/recipes-extended/persistence-client-library/persistence-client-library/0001-fix-exec-path.patch b/meta-ivi/recipes-extended/persistence-client-library/persistence-client-library/0001-fix-exec-path.patch
new file mode 100644
index 0000000..45ca6cd
--- /dev/null
+++ b/meta-ivi/recipes-extended/persistence-client-library/persistence-client-library/0001-fix-exec-path.patch
@@ -0,0 +1,26 @@
+From f658846d8bf13f00e2d39b951f7811d2a6fa1f51 Mon Sep 17 00:00:00 2001
+From: Yong-iL Joh <yong-il.joh@windriver.com>
+Date: Tue, 23 Feb 2016 20:38:13 +0900
+Subject: [PATCH] fix exec path
+
+Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
+---
+ test/persistence_client_library_test.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/persistence_client_library_test.c b/test/persistence_client_library_test.c
+index 7382ab4..fd92be1 100644
+--- a/test/persistence_client_library_test.c
++++ b/test/persistence_client_library_test.c
+@@ -1578,7 +1578,7 @@ END_TEST
+ START_TEST(test_PAS_DbusInterface)
+ {
+ // let the administration servis generate a message to the PCL
+- if(system("/usr/local/bin/persadmin_tool export /tmp/myBackup 0") == -1)
++ if(system("/usr/bin/persadmin_tool export /tmp/myBackup 0") == -1)
+ {
+ printf("Failed to execute command -> admin service!!\n");
+ }
+--
+1.9.1
+
diff --git a/meta-ivi/recipes-extended/persistence-client-library/persistence-client-library_1.1.0.bb b/meta-ivi/recipes-extended/persistence-client-library/persistence-client-library_1.1.0.bb
index 8625169..0dc3e6e 100644
--- a/meta-ivi/recipes-extended/persistence-client-library/persistence-client-library_1.1.0.bb
+++ b/meta-ivi/recipes-extended/persistence-client-library/persistence-client-library_1.1.0.bb
@@ -1,7 +1,7 @@
SUMMARY = "GENIVI Persistence Client Library"
DESCRIPTION = "The Persistence Management is responsible to handle \
-persistent data, including all data read and modified often during \
-a lifetime of an infotainment system."
+ persistent data, including all data read and modified often during \
+ a lifetime of an infotainment system."
HOMEPAGE = "http://projects.genivi.org/persistence-client-library"
BUGTRACKER = "http://bugs.genivi.org/enter_bug.cgi?product=Persistence"
LICENSE = "MPLv2"
@@ -12,6 +12,7 @@ DEPENDS = "dlt-daemon dbus libcheck persistence-common-object"
SRC_URI = " \
git://git.projects.genivi.org/persistence/persistence-client-library.git;tag=v${PV} \
file://0001-libpers_common.so-extension-fix-for-EGL.patch \
+ file://0001-fix-exec-path.patch \
"
S = "${WORKDIR}/git"
@@ -31,3 +32,36 @@ do_install_append() {
}
RDEPENDS_${PN} = "node-state-manager"
+
+#
+# for test
+#
+EXTRA_OECONF += "--enable-tests"
+
+do_install_append() {
+ install -d ${D}${bindir}
+ install -m 0755 ${S}/test/.libs/persistence_client_library_test ${D}${bindir}
+ #install -m 0755 ${S}/test/.libs/persistence_pfs_test ${D}${bindir}
+ #install -m 0755 ${S}/test/pers_pfs_test_starter.sh ${D}${bindir}
+ install -d ${D}/Data
+ install -m 0644 ${S}/test/data/PAS_data.tar.gz ${D}/Data/Data.tar.gz
+ #install -d ${D}/lib/systemd/system/
+ #install -m 0755 ${S}/test/persistence-pfs-test-start.service ${D}/lib/systemd/system/
+}
+
+PACKAGES += "${PN}-testenv"
+RDEPENDS_${PN} += "${PN}-testenv"
+
+#inherit systemd
+#
+#SYSTEMD_PACKAGES = "${PN}-testenv"
+#SYSTEMD_SERVICE_${PN}-testenv = "persistence-pfs-test-start.service"
+#SYSTEMD_AUTO_ENABLE = "disable"
+
+FILES_${PN}-testenv = " \
+ ${bindir}/persistence_client_library_test \
+ /Data/Data.tar.gz \
+"
+# ${bindir}/persistence_pfs_test \
+# ${bindir}/pers_pfs_test_starter.sh \
+#