mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
support/testing: introduce py-only and py-pyc tests
Our current python3 builds only tests the pyc-only case, so add two new tests, one for py-only and one for py+pyc. For orthogonality, rename the current test. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Vincent Fazio <vfazio@xes-inc.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
caaa56c99f
commit
32fb25423b
@@ -39,7 +39,7 @@ class TestPythonBase(infra.basetest.BRTest):
|
|||||||
self.assertEqual(exit_code, 1)
|
self.assertEqual(exit_code, 1)
|
||||||
|
|
||||||
|
|
||||||
class TestPython3(TestPythonBase):
|
class TestPython3Pyc(TestPythonBase):
|
||||||
config = TestPythonBase.config + \
|
config = TestPythonBase.config + \
|
||||||
"""
|
"""
|
||||||
BR2_PACKAGE_PYTHON3=y
|
BR2_PACKAGE_PYTHON3=y
|
||||||
@@ -53,6 +53,36 @@ class TestPython3(TestPythonBase):
|
|||||||
self.zlib_test()
|
self.zlib_test()
|
||||||
|
|
||||||
|
|
||||||
|
class TestPython3Py(TestPythonBase):
|
||||||
|
config = TestPythonBase.config + \
|
||||||
|
"""
|
||||||
|
BR2_PACKAGE_PYTHON3=y
|
||||||
|
BR2_PACKAGE_PYTHON3_PY_ONLY=y
|
||||||
|
"""
|
||||||
|
|
||||||
|
def test_run(self):
|
||||||
|
self.login()
|
||||||
|
self.version_test("Python 3")
|
||||||
|
self.math_floor_test()
|
||||||
|
self.libc_time_test()
|
||||||
|
self.zlib_test()
|
||||||
|
|
||||||
|
|
||||||
|
class TestPython3PyPyc(TestPythonBase):
|
||||||
|
config = TestPythonBase.config + \
|
||||||
|
"""
|
||||||
|
BR2_PACKAGE_PYTHON3=y
|
||||||
|
BR2_PACKAGE_PYTHON3_PY_PYC=y
|
||||||
|
"""
|
||||||
|
|
||||||
|
def test_run(self):
|
||||||
|
self.login()
|
||||||
|
self.version_test("Python 3")
|
||||||
|
self.math_floor_test()
|
||||||
|
self.libc_time_test()
|
||||||
|
self.zlib_test()
|
||||||
|
|
||||||
|
|
||||||
class TestPythonPackageBase(TestPythonBase):
|
class TestPythonPackageBase(TestPythonBase):
|
||||||
"""Common class to test a python package.
|
"""Common class to test a python package.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user