mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
package/python-sdbus-modemmanager: new runtime test
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu> [Julien: fix check-package errors] Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
c80d4ca76d
commit
18a4a48255
@@ -2290,12 +2290,14 @@ F: support/testing/tests/package/test_python_fastapi.py
|
||||
F: support/testing/tests/package/test_python_pydantic.py
|
||||
F: support/testing/tests/package/test_python_pydantic_settings.py
|
||||
F: support/testing/tests/package/test_python_ruamel_yaml.py
|
||||
F: support/testing/tests/package/test_python_sdbus_modemmanager.py
|
||||
F: support/testing/tests/package/test_python_tzlocal.py
|
||||
F: support/testing/tests/package/test_python_waitress.py
|
||||
F: support/testing/tests/package/sample_python_fastapi.py
|
||||
F: support/testing/tests/package/sample_python_pydantic.py
|
||||
F: support/testing/tests/package/sample_python_pydantic_settings.py
|
||||
F: support/testing/tests/package/sample_python_ruamel_yaml.py
|
||||
F: support/testing/tests/package/sample_python_sdbus_modemmanager.py
|
||||
|
||||
N: Marek Belisko <marek.belisko@open-nandra.com>
|
||||
F: package/libatasmart/
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sdbus
|
||||
|
||||
from sdbus_block.modemmanager import MM
|
||||
|
||||
sdbus.set_default_bus(sdbus.sd_bus_open_system())
|
||||
mm = MM()
|
||||
|
||||
assert mm.version is not None
|
||||
@@ -0,0 +1,15 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy3SdbusNetworkmanager(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = (
|
||||
TestPythonPackageBase.config
|
||||
+ """
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_INIT_SYSTEMD=y
|
||||
BR2_PACKAGE_MODEM_MANAGER=y
|
||||
BR2_PACKAGE_PYTHON_SDBUS_MODEMMANAGER=y
|
||||
"""
|
||||
)
|
||||
sample_scripts = ["tests/package/sample_python_sdbus_modemmanager.py"]
|
||||
Reference in New Issue
Block a user