From 0455f81d0124ba24e30c0bf881c72bb7d6da3210 Mon Sep 17 00:00:00 2001 From: Kareem Zarka <kareem.zarka@huawei.com> Date: Wed, 1 Mar 2023 14:18:40 +0100 Subject: [PATCH] openharmony-acts-resources: add recipe for installing missing resources for ActsAmsZipfileUnzipfileSTest This commit adds a new recipe that installs the missing ACTS test files. The files are then used by the OpenHarmony Standard recipe to place them in the correct location for the ActsAmsZipfileUnzipfileSTest to execute. Signed-off-by: Kareem Zarka <kareem.zarka@huawei.com> --- .../openharmony/openharmony-acts-resources.bb | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 recipes-openharmony/openharmony/openharmony-acts-resources.bb diff --git a/recipes-openharmony/openharmony/openharmony-acts-resources.bb b/recipes-openharmony/openharmony/openharmony-acts-resources.bb new file mode 100644 index 00000000..6d81ba5d --- /dev/null +++ b/recipes-openharmony/openharmony/openharmony-acts-resources.bb @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: MIT + +SUMMARY = "ACTS Resources For OpenHarmony Test Suite" +DESCRIPTION = "This recipe installs the necessary resource files for running the OpenHarmony ACTS test suite." + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +DEPENDS += "zip-native" + +SRC_URI = "file://ceshi.txt \ + file://ceshitwo.txt" + +S = "${WORKDIR}" + +# install missing resources of ACTS tests +do_install() { + appexecfwk_dir="${D}${libexecdir}/openharmony-standard/acts/resource/appexecfwk/" + install -d ${appexecfwk_dir} + install -m 0644 ${WORKDIR}/ceshi.txt ${appexecfwk_dir} + install -m 0644 ${WORKDIR}/ceshitwo.txt ${appexecfwk_dir} + cd ${appexecfwk_dir} + # generate the zip file from ceshitwo.txt + zip ceshitwo.zip ceshitwo.txt +} + +PACKAGES = "${PN}" +FILES:${PN} = "/" -- GitLab