mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-09 17:03:35 -09:00
support/testing: add pyudev test
In order to verify that pyudev works fine, including with just libudev-zero, add a basic test for this package. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
6ceb2a8b06
commit
9fa59eb7db
@@ -3285,6 +3285,7 @@ F: support/testing/tests/package/sample_python_augeas.py
|
||||
F: support/testing/tests/package/sample_python_flask.py
|
||||
F: support/testing/tests/package/sample_python_flask_expects_json.py
|
||||
F: support/testing/tests/package/sample_python_git.py
|
||||
F: support/testing/tests/package/sample_python_pyudev.py
|
||||
F: support/testing/tests/package/sample_python_unittest_xml_reporting.py
|
||||
F: support/testing/tests/package/test_nodejs.py
|
||||
F: support/testing/tests/package/test_python_augeas.py
|
||||
@@ -3294,6 +3295,7 @@ F: support/testing/tests/package/test_python_flask_expects_json.py
|
||||
F: support/testing/tests/package/test_python_fs.py
|
||||
F: support/testing/tests/package/test_python_git.py
|
||||
F: support/testing/tests/package/test_python_pyfatfs.py
|
||||
F: support/testing/tests/package/test_python_pyudev.py
|
||||
F: support/testing/tests/package/test_python_pyusb.py
|
||||
F: support/testing/tests/package/test_python_serial.py
|
||||
F: support/testing/tests/package/test_snagboot.py
|
||||
|
||||
4
support/testing/tests/package/sample_python_pyudev.py
Normal file
4
support/testing/tests/package/sample_python_pyudev.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import pyudev
|
||||
|
||||
context = pyudev.Context()
|
||||
assert('/dev/ttyAMA0' in [ d.device_node for d in context.list_devices() ])
|
||||
12
support/testing/tests/package/test_python_pyudev.py
Normal file
12
support/testing/tests/package/test_python_pyudev.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy3PyUdev(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_LIBUDEV_ZERO=y
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_PACKAGE_PYTHON_PYUDEV=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_pyudev.py"]
|
||||
Reference in New Issue
Block a user