test_python_rtoml.py 805 B

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