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