diff options
| author | Mickael RAMILISON <mickael.ramilison@smile.fr> | 2023-10-10 18:09:33 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-10-10 11:54:12 -0700 |
| commit | 62039a2c3347841f0e5b2c46345c9bd2fe76805e (patch) | |
| tree | 23e764d0d775557a32f620b06c4fc93540dbc163 /meta-python | |
| parent | 6e0da8642ac8e6d277ee82ab91ce1248663fc58d (diff) | |
| download | meta-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-ptest | 3 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-rapidjson_1.11.bb | 20 |
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 | |||
| 3 | pytest --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 | ||
| 10 | S = "${WORKDIR}/git" | 10 | S = "${WORKDIR}/git" |
| 11 | 11 | ||
| 12 | inherit setuptools3 | 12 | # Inheriting ptest provides functionality for packaging and installing runtime tests for this recipe |
| 13 | inherit setuptools3 ptest | ||
| 13 | 14 | ||
| 14 | SETUPTOOLS_BUILD_ARGS += " --rj-include-dir=${RECIPE_SYSROOT}${includedir}" | 15 | SETUPTOOLS_BUILD_ARGS += " --rj-include-dir=${RECIPE_SYSROOT}${includedir}" |
| 15 | 16 | ||
| 17 | # run-ptest is a shell script that starts the test suite | ||
| 18 | SRC_URI += " \ | ||
| 19 | file://run-ptest \ | ||
| 20 | " | ||
| 21 | |||
| 16 | DEPENDS += " \ | 22 | DEPENDS += " \ |
| 17 | rapidjson \ | 23 | rapidjson \ |
| 18 | " | 24 | " |
| 19 | 25 | ||
| 26 | # Adding required python package for the ptest (pytest and pytest->automake report translation) | ||
| 27 | RDEPENDS:${PN}-ptest += " \ | ||
| 28 | ${PYTHON_PN}-pytest \ | ||
| 29 | ${PYTHON_PN}-unittest-automake-output \ | ||
| 30 | " | ||
| 31 | |||
| 20 | RDEPENDS:${PN} += " \ | 32 | RDEPENDS:${PN} += " \ |
| 21 | ${PYTHON_PN}-core \ | 33 | ${PYTHON_PN}-core \ |
| 22 | " | 34 | " |
| 35 | |||
| 36 | # Installing the test suite on the target | ||
| 37 | do_install_ptest() { | ||
| 38 | install -d ${D}${PTEST_PATH}/tests | ||
| 39 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 40 | } | ||
