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:
Peter Korsgaard
2024-04-27 16:09:40 +02:00
committed by Thomas Petazzoni
parent 4432b08790
commit f6542cf10b
3 changed files with 17 additions and 0 deletions

View File

@@ -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/

View File

@@ -0,0 +1,3 @@
import hid
hid.enumerate()

View 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"]