mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
package/python-xmodem: add host variant
The host variant of python-xmodem will be needed by Snagboot, so this commit enables it. We also add a very simple test case that simply makes sure we can import the module. Testing xmodem more extensively is difficult without an actual serial port to open. 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
20afa3be7c
commit
7cac4201f3
@@ -3292,6 +3292,7 @@ F: support/testing/tests/package/test_python_git.py
|
|||||||
F: support/testing/tests/package/test_python_pyusb.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_python_serial.py
|
||||||
F: support/testing/tests/package/test_python_unittest_xml_reporting.py
|
F: support/testing/tests/package/test_python_unittest_xml_reporting.py
|
||||||
|
F: support/testing/tests/package/test_python_xmodem.py
|
||||||
F: support/testing/tests/toolchain/test_external_arm.py
|
F: support/testing/tests/toolchain/test_external_arm.py
|
||||||
F: toolchain/
|
F: toolchain/
|
||||||
|
|
||||||
|
|||||||
@@ -12,3 +12,4 @@ PYTHON_XMODEM_LICENSE = MIT
|
|||||||
PYTHON_XMODEM_LICENSE_FILES = LICENSE
|
PYTHON_XMODEM_LICENSE_FILES = LICENSE
|
||||||
|
|
||||||
$(eval $(python-package))
|
$(eval $(python-package))
|
||||||
|
$(eval $(host-python-package))
|
||||||
|
|||||||
9
support/testing/tests/package/test_python_xmodem.py
Normal file
9
support/testing/tests/package/test_python_xmodem.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import infra.basetest
|
||||||
|
|
||||||
|
|
||||||
|
class TestHostPythonXmodem(infra.basetest.BRHostPkgTest):
|
||||||
|
hostpkgs = ["host-python-xmodem"]
|
||||||
|
|
||||||
|
def test_run(self):
|
||||||
|
cmd = ["host/bin/python3", "-c", "import xmodem"]
|
||||||
|
infra.run_cmd_on_host(self.builddir, cmd)
|
||||||
Reference in New Issue
Block a user