mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
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>
This commit is contained in:
committed by
Julien Olivain
parent
b2a657297d
commit
20afa3be7c
9
support/testing/tests/package/test_python_pyusb.py
Normal file
9
support/testing/tests/package/test_python_pyusb.py
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user