diff options
author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-04-21 09:58:50 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-04-20 21:45:13 -0700 |
commit | 139b83eec2a52805ee83f8deddfa173c7672fce8 (patch) | |
tree | 5b9c3fb9b04d66f78248410ef1ac367b8177d20a | |
parent | 8296d86695be4c56ee375124aefc6f307dc3ded2 (diff) | |
download | meta-openembedded-contrib-139b83eec2a52805ee83f8deddfa173c7672fce8.tar.gz |
python3-jinja2: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-python/recipes-devtools/python/python-jinja2.inc | 16 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-jinja2/run-ptest | 3 |
2 files changed, 19 insertions, 0 deletions
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/ +} diff --git a/meta-python/recipes-devtools/python/python3-jinja2/run-ptest b/meta-python/recipes-devtools/python/python3-jinja2/run-ptest new file mode 100644 index 0000000000..5cec711696 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-jinja2/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest |