From cdcf5357de9b5721eb48aaecba74f3bcc6d6b084 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Mon, 30 Mar 2020 13:55:14 +0800 Subject: python3-scrypt: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python-scrypt.inc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'meta-python/recipes-devtools/python/python-scrypt.inc') diff --git a/meta-python/recipes-devtools/python/python-scrypt.inc b/meta-python/recipes-devtools/python/python-scrypt.inc index aff86a594f..aa9d7b8d4d 100644 --- a/meta-python/recipes-devtools/python/python-scrypt.inc +++ b/meta-python/recipes-devtools/python/python-scrypt.inc @@ -10,7 +10,20 @@ SRC_URI += "file://0001-py-scrypt-remove-the-hard-coded-include-paths.patch" SRC_URI[md5sum] = "ae8e3263aa31b040c1f9c7f1e1843a56" SRC_URI[sha256sum] = "f8239b2d47fa1d40bc27efd231dc7083695d10c1c2ac51a99380360741e0362d" -inherit pypi +inherit pypi ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} RDEPENDS_${PN}_class-target += "\ " -- cgit v1.2.3-54-g00ecf