From 139b83eec2a52805ee83f8deddfa173c7672fce8 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Tue, 21 Apr 2020 09:58:50 +0800 Subject: python3-jinja2: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python-jinja2.inc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'meta-python/recipes-devtools/python/python-jinja2.inc') diff --git a/meta-python/recipes-devtools/python/python-jinja2.inc b/meta-python/recipes-devtools/python/python-jinja2.inc index 6a95b953ff..9272305156 100644 --- a/meta-python/recipes-devtools/python/python-jinja2.inc +++ b/meta-python/recipes-devtools/python/python-jinja2.inc @@ -15,3 +15,19 @@ RDEPENDS_${PN} += "${PYTHON_PN}-io ${PYTHON_PN}-pickle ${PYTHON_PN}-crypt \ CLEANBROKEN = "1" BBCLASSEXTEND = "native nativesdk" + +inherit ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-unixadmin \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} -- cgit v1.2.3-54-g00ecf