summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorMickael RAMILISON <mickael.ramilison@smile.fr>2023-10-10 18:09:33 +0200
committerKhem Raj <raj.khem@gmail.com>2023-10-10 11:54:12 -0700
commit62039a2c3347841f0e5b2c46345c9bd2fe76805e (patch)
tree23e764d0d775557a32f620b06c4fc93540dbc163 /meta-python
parent6e0da8642ac8e6d277ee82ab91ce1248663fc58d (diff)
downloadmeta-openembedded-62039a2c3347841f0e5b2c46345c9bd2fe76805e.tar.gz
python3-rapidjson: add ptest
Signed-off-by: Mickael RAMILISON <mickael.ramilison@smile.fr> Reviewed-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-rapidjson/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-rapidjson_1.11.bb20
2 files changed, 22 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-rapidjson/run-ptest b/meta-python/recipes-devtools/python/python3-rapidjson/run-ptest
new file mode 100644
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-rapidjson/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-rapidjson_1.11.bb b/meta-python/recipes-devtools/python/python3-rapidjson_1.11.bb
index 930ad34340..3ea5594887 100644
--- a/meta-python/recipes-devtools/python/python3-rapidjson_1.11.bb
+++ b/meta-python/recipes-devtools/python/python3-rapidjson_1.11.bb
@@ -9,14 +9,32 @@ SRCREV = "e1b41f64df1705770b7b70d7221a4812909c1d0f"
9 9
10S = "${WORKDIR}/git" 10S = "${WORKDIR}/git"
11 11
12inherit setuptools3 12# Inheriting ptest provides functionality for packaging and installing runtime tests for this recipe
13inherit setuptools3 ptest
13 14
14SETUPTOOLS_BUILD_ARGS += " --rj-include-dir=${RECIPE_SYSROOT}${includedir}" 15SETUPTOOLS_BUILD_ARGS += " --rj-include-dir=${RECIPE_SYSROOT}${includedir}"
15 16
17# run-ptest is a shell script that starts the test suite
18SRC_URI += " \
19 file://run-ptest \
20"
21
16DEPENDS += " \ 22DEPENDS += " \
17 rapidjson \ 23 rapidjson \
18" 24"
19 25
26# Adding required python package for the ptest (pytest and pytest->automake report translation)
27RDEPENDS:${PN}-ptest += " \
28 ${PYTHON_PN}-pytest \
29 ${PYTHON_PN}-unittest-automake-output \
30"
31
20RDEPENDS:${PN} += " \ 32RDEPENDS:${PN} += " \
21 ${PYTHON_PN}-core \ 33 ${PYTHON_PN}-core \
22" 34"
35
36# Installing the test suite on the target
37do_install_ptest() {
38 install -d ${D}${PTEST_PATH}/tests
39 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
40}