test_python_gobject.py 796 B

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