From 6ca376e8118bb8f0eae26a3a9fca05b67cdc8143 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Tue, 21 Apr 2020 09:58:55 +0800 Subject: python3-msgpack: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-msgpack/run-ptest | 3 +++ .../recipes-devtools/python/python3-msgpack_0.6.2.bb | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-msgpack/run-ptest (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-msgpack/run-ptest b/meta-python/recipes-devtools/python/python3-msgpack/run-ptest new file mode 100644 index 0000000000..5cec711696 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-msgpack/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest diff --git a/meta-python/recipes-devtools/python/python3-msgpack_0.6.2.bb b/meta-python/recipes-devtools/python/python3-msgpack_0.6.2.bb index 7cfaf1c513..6d7e7a0dcd 100644 --- a/meta-python/recipes-devtools/python/python3-msgpack_0.6.2.bb +++ b/meta-python/recipes-devtools/python/python3-msgpack_0.6.2.bb @@ -3,7 +3,7 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://COPYING;md5=cd9523181d9d4fbf7ffca52eaa2a5751" PYPI_PACKAGE = "msgpack" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest SRC_URI[md5sum] = "ba46fdee995565f40e332bd7eea882f1" SRC_URI[sha256sum] = "ea3c2f859346fcd55fc46e96885301d9c2f7a36d453f5d8f2967840efa1e1830" @@ -13,3 +13,16 @@ RDEPENDS_${PN}_class-target += "\ " BBCLASSEXTEND = "native nativesdk" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ +} -- cgit 1.2.3-korg