support/testing: new python-pydantic runtime test
While in theory, the fastapi tests finds problems with the pydantic
package, it's not obvious that this test should be run when the pydantic
package is updated.
Add a new test that just covers pydantic.
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
(cherry picked from commit 45321879e1)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
af57a99273
commit
b1ea70d9ea
27
support/testing/tests/package/test_python_pydantic.py
Normal file
27
support/testing/tests/package/test_python_pydantic.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import os
|
||||
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy3Pydantic(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = """
|
||||
BR2_arm=y
|
||||
BR2_cortex_a9=y
|
||||
BR2_ARM_ENABLE_NEON=y
|
||||
BR2_ARM_ENABLE_VFP=y
|
||||
BR2_TOOLCHAIN_EXTERNAL=y
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_PACKAGE_PYTHON_PYDANTIC=y
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
# BR2_TARGET_ROOTFS_TAR is not set
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_pydantic.py"]
|
||||
timeout = 30
|
||||
|
||||
def login(self):
|
||||
cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
|
||||
self.emulator.boot(
|
||||
arch="armv7", kernel="builtin", options=["-initrd", cpio_file]
|
||||
)
|
||||
self.emulator.login()
|
||||
Reference in New Issue
Block a user