Skip to content

Commit

Permalink
python3-lz4: add ptest
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Burton <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Trevor Gamblin <[email protected]>
  • Loading branch information
rossburton authored and Trevor Gamblin committed Mar 21, 2022
1 parent 1adfa91 commit f42408b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions meta-python/recipes-devtools/python/python3-lz4/run-ptest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

pytest -v
12 changes: 11 additions & 1 deletion meta-python/recipes-devtools/python/python3-lz4_4.0.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit f42408b

Please sign in to comment.