mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-08-25 05:21:31 +00:00
python3-pika: Enable tests
Inherit ptest-python-pytest and include tests for Pika. Run the tests that don't require the docker container with RabbitMQ. The PyPI package omits some files for testing like tests/__init__.py use the GitHub source for SRC_URI instead. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest --automake tests/unit/ tests/misc/ tests/stubs/
|
||||
@@ -10,17 +10,34 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=678ec81495ba50edf81e84e4f1aa69f3"
|
||||
|
||||
SRC_URI[sha256sum] = "48d1f50297e76be4fc798fd5232d4d532d7a4758e51f7c0ae6c4004b9808a26b"
|
||||
|
||||
inherit pypi python_setuptools_build_meta
|
||||
# The PyPI package omits some files for testing like tests/__init__.py
|
||||
# so use the GitHub source instead.
|
||||
SRCREV = "3c9b50d4167e436c73cecae8127e3c5b266b2fce"
|
||||
SRC_URI = "\
|
||||
git://github.com/pika/pika;branch=1.4.x;protocol=https \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
inherit python_setuptools_build_meta ptest-python-pytest
|
||||
|
||||
PYPI_PACKAGE = "pika"
|
||||
|
||||
DEPENDS += " \
|
||||
python3-setuptools-scm-native \
|
||||
python3-toml-native \
|
||||
python3-setuptools-scm-native \
|
||||
python3-toml-native \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-logging \
|
||||
python3-tornado \
|
||||
python3-twisted \
|
||||
python3-logging \
|
||||
python3-tornado \
|
||||
python3-twisted \
|
||||
python3-gevent \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
python3-pytest-timeout \
|
||||
"
|
||||
|
||||
do_install_ptest:append() {
|
||||
install -m 0644 ${S}/pyproject.toml ${D}${PTEST_PATH}/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user