mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-26 03:50:44 -09:00
support/testing: add python-hid test
Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
4432b08790
commit
f6542cf10b
@@ -2520,6 +2520,7 @@ F: package/triggerhappy/
|
||||
F: package/wireguard-linux-compat/
|
||||
F: package/wireguard-tools/
|
||||
F: support/testing/tests/package/test_docker_compose.py
|
||||
F: support/testing/tests/package/test_python_hid.py
|
||||
|
||||
N: Peter Seiderer <ps.report@gmx.net>
|
||||
F: package/dotconf/
|
||||
|
||||
3
support/testing/tests/package/sample_python_hid.py
Normal file
3
support/testing/tests/package/sample_python_hid.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import hid
|
||||
|
||||
hid.enumerate()
|
||||
13
support/testing/tests/package/test_python_hid.py
Normal file
13
support/testing/tests/package/test_python_hid.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonHid(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_PACKAGE_PYTHON_HID=y
|
||||
BR2_PACKAGE_HIDAPI=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_hid.py"]
|
||||
Reference in New Issue
Block a user