Signed-off-by: Zang Ruochen <[email protected]> --- .../python/python3-jdcal/run-ptest | 3 +++ .../recipes-devtools/python/python3-jdcal_1.4.1.bb | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-jdcal/run-ptest
diff --git a/meta-python/recipes-devtools/python/python3-jdcal/run-ptest b/meta-python/recipes-devtools/python/python3-jdcal/run-ptest new file mode 100644 index 000000000..5cec71169 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-jdcal/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest diff --git a/meta-python/recipes-devtools/python/python3-jdcal_1.4.1.bb b/meta-python/recipes-devtools/python/python3-jdcal_1.4.1.bb index c8b5c953b..46deeae15 100644 --- a/meta-python/recipes-devtools/python/python3-jdcal_1.4.1.bb +++ b/meta-python/recipes-devtools/python/python3-jdcal_1.4.1.bb @@ -7,9 +7,21 @@ HOMEPAGE = "https://github.com/phn/jdcal" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://PKG-INFO;md5=bd236e1f590973467a427bb354be0f46" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest SRC_URI[md5sum] = "e05bdb60fa80f25bc60e73e0c6b7c5dc" SRC_URI[sha256sum] = "472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8" RDEPENDS_${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-io ${PYTHON_PN}-pprint ${PYTHON_PN}-shell" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + cp -f ${S}/test_jdcal.py ${D}${PTEST_PATH}/ +} -- 2.20.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#84011): https://lists.openembedded.org/g/openembedded-devel/message/84011 Mute This Topic: https://lists.openembedded.org/mt/73164723/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
