mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -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>
(cherry picked from commit 61966c2133)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
2060800874
commit
e285f646b1
@@ -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