From e4e5fa1b92b29489b8392ea46c100230ae9a2304 Mon Sep 17 00:00:00 2001 From: Zheng Ruoqin Date: Sat, 11 Apr 2020 22:12:07 +0800 Subject: python3-pyasn1: Enable ptest Signed-off-by: Zheng Ruoqin Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python-pyasn1.inc | 15 +++++++++++++++ .../recipes-devtools/python/python3-pyasn1/run-ptest | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pyasn1/run-ptest (limited to 'meta-python/recipes-devtools') diff --git a/meta-python/recipes-devtools/python/python-pyasn1.inc b/meta-python/recipes-devtools/python/python-pyasn1.inc index d74c2fec69..d9557646a0 100644 --- a/meta-python/recipes-devtools/python/python-pyasn1.inc +++ b/meta-python/recipes-devtools/python/python-pyasn1.inc @@ -14,3 +14,18 @@ RDEPENDS_${PN}_class-target += " \ " BBCLASSEXTEND = "native nativesdk" + +inherit 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/ +} diff --git a/meta-python/recipes-devtools/python/python3-pyasn1/run-ptest b/meta-python/recipes-devtools/python/python3-pyasn1/run-ptest new file mode 100644 index 0000000000..5cec711696 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pyasn1/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -- cgit v1.2.3-54-g00ecf