From 64fc73095013a7b127947bed46df2a5e7a441fb0 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Tue, 31 Mar 2020 09:54:56 +0800 Subject: python3-simpleeval: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-simpleeval_0.9.10.bb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb') diff --git a/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb b/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb index 633347a937..1cacf9af2a 100644 --- a/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb +++ b/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb @@ -6,6 +6,18 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=dc9277482effe59b734b004cbcc1fee7" SRC_URI[md5sum] = "f175fc12d408487ca26fa3905e0a6691" SRC_URI[sha256sum] = "692055488c2864637f6c2edb5fa48175978a2a07318009e7cf03c9790ca17bea" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest BBCLASSEXTEND = "native nativesdk" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + cp -f ${S}/test_simpleeval.py ${D}${PTEST_PATH}/ +} -- cgit v1.2.3-54-g00ecf