diff options
Diffstat (limited to 'meta-python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-lz4/run-ptest | 3 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-lz4_4.0.0.bb | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-lz4/run-ptest b/meta-python/recipes-devtools/python/python3-lz4/run-ptest new file mode 100644 index 0000000000..1b245bcd8f --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-lz4/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest -v | ||
diff --git a/meta-python/recipes-devtools/python/python3-lz4_4.0.0.bb b/meta-python/recipes-devtools/python/python3-lz4_4.0.0.bb index 75472d327e..ef5b006272 100644 --- a/meta-python/recipes-devtools/python/python3-lz4_4.0.0.bb +++ b/meta-python/recipes-devtools/python/python3-lz4_4.0.0.bb | |||
| @@ -9,8 +9,18 @@ DEPENDS += " \ | |||
| 9 | ${PYTHON_PN}-pkgconfig-native \ | 9 | ${PYTHON_PN}-pkgconfig-native \ |
| 10 | " | 10 | " |
| 11 | 11 | ||
| 12 | SRC_URI += "file://run-ptest" | ||
| 13 | |||
| 12 | SRC_URI[sha256sum] = "57c5dfd3b7dae833b0d2b2c1aafd7f9d0dfcab40683d183d010c67c9fd1beca3" | 14 | SRC_URI[sha256sum] = "57c5dfd3b7dae833b0d2b2c1aafd7f9d0dfcab40683d183d010c67c9fd1beca3" |
| 13 | 15 | ||
| 14 | inherit pkgconfig pypi python_setuptools_build_meta | 16 | inherit pkgconfig pypi python_setuptools_build_meta ptest |
| 17 | |||
| 18 | RDEPENDS:${PN}-ptest += "${PYTHON_PN}-pytest ${PYTHON_PN}-multiprocessing ${PYTHON_PN}-psutil" | ||
| 19 | |||
| 20 | do_install_ptest() { | ||
| 21 | cp -rf ${S}/tests/ ${D}${PTEST_PATH}/ | ||
| 22 | # The stream API is experimental and not enabled yet, so don't ship the test suite | ||
| 23 | rm -rf ${D}${PTEST_PATH}/tests/stream | ||
| 24 | } | ||
| 15 | 25 | ||
| 16 | BBCLASSEXTEND = "native nativesdk" | 26 | BBCLASSEXTEND = "native nativesdk" |
