From 681c4b379080e61b1f037a695c3a4ce8100e2b8b Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Tue, 21 Apr 2020 09:58:52 +0800 Subject: python3-license-expression: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- .../recipes-devtools/python/python-license-expression.inc | 15 ++++++++++++++- .../python/python3-license-expression/run-ptest | 3 +++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-license-expression/run-ptest (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python-license-expression.inc b/meta-python/recipes-devtools/python/python-license-expression.inc index 4c35e8dd70..add25810d7 100644 --- a/meta-python/recipes-devtools/python/python-license-expression.inc +++ b/meta-python/recipes-devtools/python/python-license-expression.inc @@ -7,10 +7,23 @@ LIC_FILES_CHKSUM = "file://apache-2.0.LICENSE;md5=e23fadd6ceef8c618fc1c65191d846 SRC_URI[md5sum] = "81477f779099f55071c6a7b88a29bb01" SRC_URI[sha256sum] = "8aaa455c5b97c4f2174090178b19792b2a1c620e80591aafd4e0a99b713f9e8d" -inherit pypi +inherit pypi ptest RDEPENDS_${PN} += "\ ${PYTHON_PN}-booleanpy \ " BBCLASSEXTEND = "native nativesdk" + +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/ +} diff --git a/meta-python/recipes-devtools/python/python3-license-expression/run-ptest b/meta-python/recipes-devtools/python/python3-license-expression/run-ptest new file mode 100644 index 0000000000..5cec711696 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-license-expression/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -- cgit v1.2.3-54-g00ecf