From 380bd91766eb32a93191b079a1388fe01a25aacf Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Fri, 20 Mar 2020 10:22:05 +0800 Subject: python3-xxhash: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python-xxhash.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'meta-python/recipes-devtools/python/python-xxhash.inc') diff --git a/meta-python/recipes-devtools/python/python-xxhash.inc b/meta-python/recipes-devtools/python/python-xxhash.inc index 80f5e9c7f2..c02c29eb78 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/ +} -- cgit v1.2.3-54-g00ecf