Signed-off-by: Zang Ruochen <zangrc.f...@cn.fujitsu.com> --- .../recipes-devtools/python/python-xxhash.inc | 15 +++++++++++++++ .../python/python3-xxhash/run-ptest | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-xxhash/run-ptest
diff --git a/meta-python/recipes-devtools/python/python-xxhash.inc b/meta-python/recipes-devtools/python/python-xxhash.inc index 80f5e9c7f..c02c29eb7 100644 --- a/meta-python/recipes-devtools/python/python-xxhash.inc +++ b/meta-python/recipes-devtools/python/python-xxhash.inc @@ -5,3 +5,18 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5a8d76283514a1b7e6a414aba38629b5" SRC_URI[md5sum] = "ce9cbbcc89620fd47a2468badd08dcf0" SRC_URI[sha256sum] = "8b6b1afe7731d7d9cbb0398b4a811ebb5e6be5c174f72c68abf81f919a435de9" + +SRC_URI += " \ + file://run-ptest \ +" + +inherit ptest + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} diff --git a/meta-python/recipes-devtools/python/python3-xxhash/run-ptest b/meta-python/recipes-devtools/python/python3-xxhash/run-ptest new file mode 100644 index 000000000..6a26348b1 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-xxhash/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest tests/test.py -- 2.20.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel