mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
support/testing/tests/package/test_python_serial.py: new test case
This quickly tests that the host-python-serial package at least 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
d03cfe515b
commit
875b4f204c
@@ -3289,6 +3289,7 @@ F: support/testing/tests/package/test_python_crccheck.py
|
|||||||
F: support/testing/tests/package/test_python_flask.py
|
F: support/testing/tests/package/test_python_flask.py
|
||||||
F: support/testing/tests/package/test_python_flask_expects_json.py
|
F: support/testing/tests/package/test_python_flask_expects_json.py
|
||||||
F: support/testing/tests/package/test_python_git.py
|
F: support/testing/tests/package/test_python_git.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/toolchain/test_external_arm.py
|
F: support/testing/tests/toolchain/test_external_arm.py
|
||||||
F: toolchain/
|
F: toolchain/
|
||||||
|
|||||||
12
support/testing/tests/package/test_python_serial.py
Normal file
12
support/testing/tests/package/test_python_serial.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import infra.basetest
|
||||||
|
|
||||||
|
|
||||||
|
class TestHostPythonSerial(infra.basetest.BRHostPkgTest):
|
||||||
|
hostpkgs = ["host-python-serial"]
|
||||||
|
|
||||||
|
def test_run(self):
|
||||||
|
cmd = ["host/bin/python3", "-c", "import serial"]
|
||||||
|
infra.run_cmd_on_host(self.builddir, cmd)
|
||||||
|
|
||||||
|
cmd = ["host/bin/python3", "-m", "serial.tools.list_ports"]
|
||||||
|
infra.run_cmd_on_host(self.builddir, cmd)
|
||||||
Reference in New Issue
Block a user