From f42408bafc89aede4b0605aa9a2ccd9b05eada7e Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 18 Mar 2022 12:02:38 +0000 Subject: python3-lz4: add ptest Signed-off-by: Ross Burton Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- meta-python/recipes-devtools/python/python3-lz4_4.0.0.bb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'meta-python/recipes-devtools/python/python3-lz4_4.0.0.bb') 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 += " \ ${PYTHON_PN}-pkgconfig-native \ " +SRC_URI += "file://run-ptest" + SRC_URI[sha256sum] = "57c5dfd3b7dae833b0d2b2c1aafd7f9d0dfcab40683d183d010c67c9fd1beca3" -inherit pkgconfig pypi python_setuptools_build_meta +inherit pkgconfig pypi python_setuptools_build_meta ptest + +RDEPENDS:${PN}-ptest += "${PYTHON_PN}-pytest ${PYTHON_PN}-multiprocessing ${PYTHON_PN}-psutil" + +do_install_ptest() { + cp -rf ${S}/tests/ ${D}${PTEST_PATH}/ + # The stream API is experimental and not enabled yet, so don't ship the test suite + rm -rf ${D}${PTEST_PATH}/tests/stream +} BBCLASSEXTEND = "native nativesdk" -- cgit 1.2.3-korg