Skip to contentSkip to conversation

python3-webcolors: Enable ptest

PATCH New Zang Ruochen 1 participant 1 message Mar 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-webcolors: Enable ptest

---
 .../recipes-devtools/python/python-webcolors.inc   | 14 ++++++++++++++
 .../python/python3-webcolors/run-ptest             |  2 ++
 2 files changed, 16 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-webcolors/run-ptest
meta-python/recipes-devtools/python/python-webcolors.inc +14 -0
index ef254e33b..ad012c979 100644
@@ -10,3 +10,17 @@ RDEPENDS_${PN}_class-target = "\
 "
 
 BBCLASSEXTEND = "native nativesdk"
+
+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/
+}
meta-python/recipes-devtools/python/python3-webcolors/run-ptest new file +2 -0
new file mode 100644
index 000000000..40c284799
@@ -0,0 +1,2 @@
+#!/bin/sh
+pytest
Signature · 1 line
2.20.1