mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-29 05:21:44 -09:00
support/testing: add libiio python bindings runtime test
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
193df1cbec
commit
61966c2133
@@ -0,0 +1,3 @@
|
||||
import iio
|
||||
|
||||
assert len(iio.scan_contexts()) == 1
|
||||
13
support/testing/tests/package/test_libiio_bindings_python.py
Normal file
13
support/testing/tests/package/test_libiio_bindings_python.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestLibiioBindingsPython(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_PACKAGE_LIBIIO=y
|
||||
BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_libiio_bindings_python.py"]
|
||||
timeout = 10
|
||||
Reference in New Issue
Block a user