test_python_pydantic.py 772 B

123456789101112131415161718192021222324252627
  1. import os
  2. from tests.package.test_python import TestPythonPackageBase
  3. class TestPythonPy3Pydantic(TestPythonPackageBase):
  4. __test__ = True
  5. config = """
  6. BR2_arm=y
  7. BR2_cortex_a9=y
  8. BR2_ARM_ENABLE_NEON=y
  9. BR2_ARM_ENABLE_VFP=y
  10. BR2_TOOLCHAIN_EXTERNAL=y
  11. BR2_PACKAGE_PYTHON3=y
  12. BR2_PACKAGE_PYTHON_PYDANTIC=y
  13. BR2_TARGET_ROOTFS_CPIO=y
  14. # BR2_TARGET_ROOTFS_TAR is not set
  15. """
  16. sample_scripts = ["tests/package/sample_python_pydantic.py"]
  17. timeout = 30
  18. def login(self):
  19. cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
  20. self.emulator.boot(
  21. arch="armv7", kernel="builtin", options=["-initrd", cpio_file]
  22. )
  23. self.emulator.login()