mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-23 00:28:29 +00:00
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>
(cherry picked from commit 62039a2c33)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
9c1bbbff75
commit
d6b0361488
@@ -9,14 +9,32 @@ SRCREV = "e1b41f64df1705770b7b70d7221a4812909c1d0f"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit setuptools3
|
||||
# Inheriting ptest provides functionality for packaging and installing runtime tests for this recipe
|
||||
inherit setuptools3 ptest
|
||||
|
||||
SETUPTOOLS_BUILD_ARGS += " --rj-include-dir=${RECIPE_SYSROOT}${includedir}"
|
||||
|
||||
# run-ptest is a shell script that starts the test suite
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
DEPENDS += " \
|
||||
rapidjson \
|
||||
"
|
||||
|
||||
# Adding required python package for the ptest (pytest and pytest->automake report translation)
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
${PYTHON_PN}-unittest-automake-output \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-core \
|
||||
"
|
||||
|
||||
# Installing the test suite on the target
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user