From c01e633ab918d4cdc0d2f04f1c01ccaf3f1b4844 Mon Sep 17 00:00:00 2001 From: Corentin Lévy Date: Fri, 2 Aug 2024 17:10:21 +0200 Subject: python3-libarchive-c: add ptest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test added to the fast-list result of ptest-runner: Testsuite summary TOTAL: 36 PASS: 36 SKIP: 0 XFAIL: 0 FAIL: 0 XPASS: 0 ERROR: 0 DURATION: 11 END: /usr/lib/python3-libarchive-c/ptest 2024-08-01T11:44 STOP: ptest-runner TOTAL: 1 FAIL: 0 (From OE-Core rev: 2019edfc5a6fd252329347a6230a2e39603b932b) Signed-off-by: Corentin Lévy Reviewed-by: Yoann Congal Signed-off-by: Richard Purdie --- .../python/python3-libarchive-c_5.1.bb | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'meta/recipes-devtools/python/python3-libarchive-c_5.1.bb') diff --git a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb index 4e318e52f4..c8aff3defe 100644 --- a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb +++ b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb @@ -5,9 +5,13 @@ HOMEPAGE = "https://github.com/Changaco/python-libarchive-c" LICENSE = "CC0-1.0" LIC_FILES_CHKSUM = "file://LICENSE.md;md5=bcab380227a83bc147350b40a81e6ffc" +SRC_URI += " \ + file://run-ptest \ +" + PYPI_PACKAGE = "libarchive-c" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721" @@ -18,4 +22,18 @@ RDEPENDS:${PN} += "\ python3-logging \ " +RDEPENDS:${PN}-ptest += " \ + locale-base-en-us \ + python3-pytest \ + python3-unittest-automake-output \ +" + BBCLASSEXTEND = "native" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + install -d ${D}${PTEST_PATH}/libarchive + cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/ + cp ${S}/libarchive/* ${D}${PTEST_PATH}/libarchive/ + cp ${S}/README.rst ${D}${PTEST_PATH}/README.rst +} -- cgit v1.2.3-54-g00ecf