Skip to contentSkip to conversation

python-simplejson: add the tests into their own package

PATCH New Derek Straka 1 participant 1 message Nov 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-simplejson: add the tests into their own package

---
 meta-python/recipes-devtools/python/python-simplejson.inc | 7 +++++++
 1 file changed, 7 insertions(+)
meta-python/recipes-devtools/python/python-simplejson.inc +7 -0
index 7f436f2..50524f3 100644
@@ -15,3 +15,10 @@ RDEPENDS_${PN} += "\
     ${PYTHON_PN}-netserver \
     ${PYTHON_PN}-numbers \
 "
+
+PACKAGES =+ "${PN}-tests"
+RDEPENDS_${PN}-tests = "${PN} ${PYTHON_PN}-unittest"
+FILES_${PN}-tests+= " \
+    ${PYTHON_SITEPACKAGES_DIR}/simplejson/tests \
+    ${PYTHON_SITEPACKAGES_DIR}/simplejson/tool.py* \
+"
Signature · 1 line
2.7.4