Files
buildroot/support/testing/tests/package/test_python_pyusb.py
Thomas Petazzoni 20afa3be7c package/python-pyusb: enable host variant
The host variant of python-pyusb will be neded for Snagboot, so it is
enabled with this commit. In addition, we're adding a very simple test
case to validate that host-python-pyusb minimally works.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2025-10-30 21:10:52 +01:00

10 lines
248 B
Python

import infra.basetest
class TestHostPythonPyusb(infra.basetest.BRHostPkgTest):
hostpkgs = ["host-python-pyusb"]
def test_run(self):
cmd = ["host/bin/python3", "-c", "import usb"]
infra.run_cmd_on_host(self.builddir, cmd)