diff options
Diffstat (limited to 'meta-ivi-test/recipes-extended')
11 files changed, 265 insertions, 0 deletions
diff --git a/meta-ivi-test/recipes-extended/common-api/common-api-test/common-api-test-3.1.5.tar.gz b/meta-ivi-test/recipes-extended/common-api/common-api-test/common-api-test-3.1.5.tar.gz Binary files differnew file mode 100644 index 0000000..e1f5f7c --- /dev/null +++ b/meta-ivi-test/recipes-extended/common-api/common-api-test/common-api-test-3.1.5.tar.gz diff --git a/meta-ivi-test/recipes-extended/common-api/common-api-test_3.1.5.bb b/meta-ivi-test/recipes-extended/common-api/common-api-test_3.1.5.bb new file mode 100644 index 0000000..a286502 --- /dev/null +++ b/meta-ivi-test/recipes-extended/common-api/common-api-test_3.1.5.bb @@ -0,0 +1,63 @@ +SUMMARY = "testsuite for CommonAPI" +SECTION = "test" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +PR = "r0" + +inherit autotools cmake pkgconfig + +DEPENDS += " common-api-c++ common-api-c++-dbus glib-2.0" + +SRC_URI = " \ + file://${PN}-${PV}.tar.gz \ + " + +S = "${WORKDIR}/${PN}" + +EXTRA_OECMAKE += "-DUSE_INSTALLED_COMMONAPI=ON -DUSE_INSTALLED_DBUS=ON -DCMAKE_INSTALL_PREFIX=/usr" + +FILES_${PN} = " \ + /opt/tests/${PN}/E0* \ + /opt/tests/${PN}/*/README \ + /opt/tests/${PN}/*/commonapi4dbus.ini \ + /opt/tests/${PN}/*/*Client \ + /opt/tests/${PN}/*/*Service \ + ${libdir}/*.so \ + " + +FILES_${PN}-dev = "" + +FILES_${PN}-dbg += " \ + /opt/tests/${PN}/.debug/* \ + /opt/tests/${PN}/*/.debug/* \ + ${libdir}/.debug/* \ + " + +do_install() { + _DEST=${D}/opt/tests/${PN} + _BIN=${WORKDIR}/build + + install -d ${_DEST} + install -d ${D}${libdir} + for i in `\ls ${_BIN} | grep E0`; do + install -m 0755 ${_BIN}/${i}/${i}Client ${_DEST} + install -m 0755 ${_BIN}/${i}/${i}Service ${_DEST} + install -m 0755 ${_BIN}/${i}/lib${i}-dbus.so ${D}${libdir} + done + + for i in BlueZ ObjectPathSimple UDisks2 VariantSimple; do + install -d ${_DEST}/${i} + install -m 0755 ${_BIN}/${i}/${i}Client ${_DEST}/${i} + rm -rf ${_DEST}/${i}/.debug + if [ -e ${_BIN}/${i}/${i}Service ]; then + install -m 0755 ${_BIN}/${i}/${i}Service ${_DEST}/${i} + fi + if [ -e ${S}/${i}/README ]; then + install -m 0644 ${S}/${i}/README ${_DEST}/${i} + fi + if [ -e ${S}/${i}/commonapi4dbus.ini ]; then + install -m 0644 ${S}/${i}/commonapi4dbus.ini ${_DEST}/${i} + fi + install -m 0755 ${_BIN}/${i}/lib${i}-dbus.so ${D}${libdir} + done +} diff --git a/meta-ivi-test/recipes-extended/dlt-daemon/dlt-daemon/0001-change-file-position-for-dlt-test-filetransfer.patch b/meta-ivi-test/recipes-extended/dlt-daemon/dlt-daemon/0001-change-file-position-for-dlt-test-filetransfer.patch new file mode 100644 index 0000000..65be18e --- /dev/null +++ b/meta-ivi-test/recipes-extended/dlt-daemon/dlt-daemon/0001-change-file-position-for-dlt-test-filetransfer.patch @@ -0,0 +1,41 @@ +From f1bc578f41bfeec2c6bcbe89406bf04ada412b74 Mon Sep 17 00:00:00 2001 +From: Yong-iL Joh <yong-il.joh@windriver.com> +Date: Fri, 4 Mar 2016 16:02:54 +0900 +Subject: [PATCH] change file position for dlt-test-filetransfer + +Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com> +--- + src/tests/CMakeLists.txt | 2 +- + src/tests/dlt-test-filetransfer.c | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt +index 6a6a962..bd6808e 100644 +--- a/src/tests/CMakeLists.txt ++++ b/src/tests/CMakeLists.txt +@@ -58,5 +58,5 @@ install(TARGETS dlt-test-multi-process dlt-test-multi-process-client dlt-test-us + COMPONENT base) + + INSTALL(FILES dlt-test-filetransfer-file dlt-test-filetransfer-image.png +- DESTINATION /usr/share/dlt-filetransfer ++ DESTINATION /opt/tests/dlt-daemon/data + ) +diff --git a/src/tests/dlt-test-filetransfer.c b/src/tests/dlt-test-filetransfer.c +index 14b69e4..589926f 100644 +--- a/src/tests/dlt-test-filetransfer.c ++++ b/src/tests/dlt-test-filetransfer.c +@@ -362,9 +362,9 @@ int testFile3Run3(){ + int main(void) + { + //First file contains some text +- file1 = "/usr/share/dlt-filetransfer/dlt-test-filetransfer-file"; ++ file1 = "/opt/tests/dlt-daemon/data/dlt-test-filetransfer-file"; + //Second file is a picture +- file2 = "/usr/share/dlt-filetransfer/dlt-test-filetransfer-image.png"; ++ file2 = "/opt/tests/dlt-daemon/data/dlt-test-filetransfer-image.png"; + //Third file doesn't exist. Just to test the reaction when the file isn't available. + file3_1 = "dlt-test-filetransfer-doesntExist_1"; + //Third file doesn't exist. Just to test the reaction when the file isn't available. +-- +1.9.1 + diff --git a/meta-ivi-test/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend b/meta-ivi-test/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend new file mode 100644 index 0000000..8b50f89 --- /dev/null +++ b/meta-ivi-test/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend @@ -0,0 +1,26 @@ +# +# for test +# +FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" +SRC_URI_append += " \ + file://0001-change-file-position-for-dlt-test-filetransfer.patch \ + " + +EXTRA_OECMAKE += "-DWITH_DLTTEST=ON -DCMAKE_SKIP_RPATH=ON -DWITH_MAN=OFF" + +do_install_append() { + _BIN=${WORKDIR}/build/src/tests + install -d ${D}/opt/tests/${PN}/data + install -m 0755 ${_BIN}/dlt-test-* ${D}/opt/tests/${PN} +} + +PACKAGES += "${PN}-test" +DEPENDS_${PN}-test = "${PN}" + +FILES_${PN}-dbg += " \ + /opt/tests/${PN}/.debug/* \ + " +FILES_${PN}-test = " \ + /opt/tests/${PN}/dlt-test* \ + /opt/tests/${PN}/data/* \ + " 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 \ + " diff --git a/meta-ivi-test/recipes-extended/node-startup-controller/node-startup-controller/helper.zip b/meta-ivi-test/recipes-extended/node-startup-controller/node-startup-controller/helper.zip Binary files differnew file mode 100644 index 0000000..2b0d9b5 --- /dev/null +++ b/meta-ivi-test/recipes-extended/node-startup-controller/node-startup-controller/helper.zip diff --git a/meta-ivi-test/recipes-extended/node-startup-controller/node-startup-controller_%.bbappend b/meta-ivi-test/recipes-extended/node-startup-controller/node-startup-controller_%.bbappend new file mode 100644 index 0000000..c9ccacc --- /dev/null +++ b/meta-ivi-test/recipes-extended/node-startup-controller/node-startup-controller_%.bbappend @@ -0,0 +1,19 @@ +# +# for test +# +FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" +SRC_URI_append += " \ + file://helper.zip \ + " + +do_install_append() { + install -d ${D}/opt/tests/${PN} + install -m 0755 ${WORKDIR}/helper/*.sh ${D}/opt/tests/${PN} + install -m 0644 ${WORKDIR}/helper/*.service ${D}/${systemd_unitdir}/system +} + +FILES_${PN}-nsm-dummy += " \ + /opt/tests/${PN}/* \ + ${systemd_unitdir}/system/example.service \ + ${systemd_unitdir}/system/hello.service \ + " 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-test/recipes-extended/persistence-administrator/persistence-administrator_%.bbappend b/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator_%.bbappend new file mode 100644 index 0000000..c1cc200 --- /dev/null +++ b/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator_%.bbappend @@ -0,0 +1,22 @@ +# +# test +# +do_install_append() { + install -d ${D}/opt/tests/${PN} + mv ${S}/test/pers_svc_test/.libs/pers_admin_test_framework \ + ${D}/opt/tests/${PN} + install -d ${D}/Data + install -m 0644 ${S}/test/pers_svc_test/webtool_export/resource2.tar.gz \ + ${D}/Data +} + +PACKAGES += "${PN}-test" +DEPENDS_${PN}-test = "${PN}" + +FILES_${PN}-dbg += " \ + /opt/tests/${PN}/.debug/* \ + " +FILES_${PN}-test = " \ + /opt/tests/${PN}/* \ + /Data/resource2.tar.gz \ + " diff --git a/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library_%.bbappend b/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library_%.bbappend new file mode 100644 index 0000000..58f2aa3 --- /dev/null +++ b/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library_%.bbappend @@ -0,0 +1,24 @@ +# +# for test +# +EXTRA_OECONF += "--enable-tests" + +do_install_append() { + install -d ${D}/opt/tests/${PN} + install -m 0755 ${S}/test/.libs/persistence_client_library_test \ + ${D}/opt/tests/${PN} + install -d ${D}/Data + install -m 0644 ${S}/test/data/PAS_data.tar.gz \ + ${D}/Data/Data.tar.gz +} + +PACKAGES += "${PN}-test" +DEPENDS_${PN}-test = "${PN}" + +FILES_${PN}-dbg += " \ + /opt/tests/${PN}/.debug/* \ + " +FILES_${PN}-test = " \ + /opt/tests/${PN}/persistence_client_library_test \ + /Data/Data.tar.gz \ + " 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 new file mode 100644 index 0000000..6dc26d4 --- /dev/null +++ b/meta-ivi-test/recipes-extended/persistence-common-object/persistence-common-object_%.bbappend @@ -0,0 +1,21 @@ +# +# for test +# +EXTRA_OECONF += "--enable-tests" + +do_install_append() { + install -d ${D}/opt/tests/${PN} + install -m 0755 ${S}/test/.libs/test_pco_key_value_store \ + ${D}/opt/tests/${PN} +} + +PACKAGES += "${PN}-test" +RDEPENDS_${PN}-test += " libcheck" + +FILES_${PN}-dbg += " \ + /opt/tests/${PN}/.debug/* \ + " + +FILES_${PN}-test = " \ + /opt/tests/${PN}/test_pco_key_value_store \ + " |