[oe-commits] [meta-openembedded] 06/12: python3-xxhash: Enable ptest

git at git.openembedded.org git at git.openembedded.org
Fri Mar 20 14:46:42 UTC 2020


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit 380bd91766eb32a93191b079a1388fe01a25aacf
Author: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
AuthorDate: Fri Mar 20 10:22:05 2020 +0800

    python3-xxhash: Enable ptest
    
    Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-python/recipes-devtools/python/python-xxhash.inc     | 15 +++++++++++++++
 .../recipes-devtools/python/python3-xxhash/run-ptest      |  3 +++
 2 files changed, 18 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-xxhash.inc b/meta-python/recipes-devtools/python/python-xxhash.inc
index 80f5e9c..c02c29e 100644
--- a/meta-python/recipes-devtools/python/python-xxhash.inc
+++ b/meta-python/recipes-devtools/python/python-xxhash.inc
@@ -5,3 +5,18 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5a8d76283514a1b7e6a414aba38629b5"
 
 SRC_URI[md5sum] = "ce9cbbcc89620fd47a2468badd08dcf0"
 SRC_URI[sha256sum] = "8b6b1afe7731d7d9cbb0398b4a811ebb5e6be5c174f72c68abf81f919a435de9"
+
+SRC_URI += " \
+	file://run-ptest \
+"
+
+inherit 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-xxhash/run-ptest b/meta-python/recipes-devtools/python/python3-xxhash/run-ptest
new file mode 100644
index 0000000..6a26348
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-xxhash/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest tests/test.py

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list