diff options
author | Corentin Lévy <corentin.levy@smile.fr> | 2024-08-02 17:10:21 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-05 14:31:57 +0100 |
commit | c01e633ab918d4cdc0d2f04f1c01ccaf3f1b4844 (patch) | |
tree | 251224e12eff27569c7c828225321f3943331dda /meta/recipes-devtools | |
parent | 069ff98309dac06488082164e96e305241811839 (diff) | |
download | poky-c01e633ab918d4cdc0d2f04f1c01ccaf3f1b4844.tar.gz |
python3-libarchive-c: add ptest
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 <corentin.levy@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/python/python3-libarchive-c/run-ptest | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-libarchive-c_5.1.bb | 20 |
2 files changed, 25 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-libarchive-c/run-ptest b/meta/recipes-devtools/python/python3-libarchive-c/run-ptest new file mode 100644 index 0000000000..ddfbba7f94 --- /dev/null +++ b/meta/recipes-devtools/python/python3-libarchive-c/run-ptest | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # export needed to set the locale to support accentuated and non-latin chars in tests | ||
4 | export LC_ALL=en_US.UTF-8 | ||
5 | |||
6 | pytest --automake | ||
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" | |||
5 | LICENSE = "CC0-1.0" | 5 | LICENSE = "CC0-1.0" |
6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=bcab380227a83bc147350b40a81e6ffc" | 6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=bcab380227a83bc147350b40a81e6ffc" |
7 | 7 | ||
8 | SRC_URI += " \ | ||
9 | file://run-ptest \ | ||
10 | " | ||
11 | |||
8 | PYPI_PACKAGE = "libarchive-c" | 12 | PYPI_PACKAGE = "libarchive-c" |
9 | 13 | ||
10 | inherit pypi setuptools3 | 14 | inherit pypi setuptools3 ptest |
11 | 15 | ||
12 | SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721" | 16 | SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721" |
13 | 17 | ||
@@ -18,4 +22,18 @@ RDEPENDS:${PN} += "\ | |||
18 | python3-logging \ | 22 | python3-logging \ |
19 | " | 23 | " |
20 | 24 | ||
25 | RDEPENDS:${PN}-ptest += " \ | ||
26 | locale-base-en-us \ | ||
27 | python3-pytest \ | ||
28 | python3-unittest-automake-output \ | ||
29 | " | ||
30 | |||
21 | BBCLASSEXTEND = "native" | 31 | BBCLASSEXTEND = "native" |
32 | |||
33 | do_install_ptest() { | ||
34 | install -d ${D}${PTEST_PATH}/tests | ||
35 | install -d ${D}${PTEST_PATH}/libarchive | ||
36 | cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
37 | cp ${S}/libarchive/* ${D}${PTEST_PATH}/libarchive/ | ||
38 | cp ${S}/README.rst ${D}${PTEST_PATH}/README.rst | ||
39 | } | ||