diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 7bc6b6575f..e575b372b5 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -20,6 +20,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-cachetools \ python3-cbor2 \ python3-configobj \ + python3-pyconnman \ python3-click \ python3-dasbus \ python3-dominate \ diff --git a/meta-python/recipes-connectivity/python-pyconnman/files/run-ptest b/meta-python/recipes-connectivity/python-pyconnman/files/run-ptest new file mode 100644 index 0000000000..aafa0f731d --- /dev/null +++ b/meta-python/recipes-connectivity/python-pyconnman/files/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh +cd tests +python3 -mputao.unittest diff --git a/meta-python/recipes-connectivity/python-pyconnman/python3-pyconnman_0.2.0.bb b/meta-python/recipes-connectivity/python-pyconnman/python3-pyconnman_0.2.0.bb index 040f1acc92..52fc1dac55 100644 --- a/meta-python/recipes-connectivity/python-pyconnman/python3-pyconnman_0.2.0.bb +++ b/meta-python/recipes-connectivity/python-pyconnman/python3-pyconnman_0.2.0.bb @@ -4,8 +4,14 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" +inherit pypi setuptools3 ptest + +SRC_URI += "file://run-ptest" SRC_URI[sha256sum] = "d3a63a039c82b08a1171b003eafa62c6f128aa4eaa1ce7a55a9401b48f9ad926" -inherit pypi setuptools3 - RDEPENDS:${PN} = "connman python3-dbus python3-pprint python3-future" +RDEPENDS:${PN}-ptest += "python3-mock python3-unittest-automake-output" + +do_install_ptest(){ + cp -r ${S}/tests ${D}${PTEST_PATH}/ +}