python3-pyroute2: Enable ptest

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Zang Ruochen 2020-04-11 08:42:03 +08:00 committed by Khem Raj
parent 00f298cf46
commit c7a4fb91bd
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
pytest

View File

@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
SRC_URI[md5sum] = "7005db01604663fc2ecc089925980e05"
SRC_URI[sha256sum] = "05e959f1a89d715158b91fe83b67946a4441e5e098cc225f4df78a3765ac4af2"
inherit setuptools3 pypi
inherit setuptools3 pypi ptest
RDEPENDS_${PN} += " \
${PYTHON_PN}-ctypes \
@ -21,3 +21,17 @@ RDEPENDS_${PN} += " \
${PYTHON_PN}-shell \
${PYTHON_PN}-unixadmin \
"
SRC_URI += " \
file://run-ptest \
"
RDEPENDS_${PN}-ptest += " \
${PYTHON_PN}-pytest \
${PYTHON_PN}-fcntl \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}