2020-03-12 20:47:17 +01:00
|
|
|
import os
|
2019-12-01 19:39:09 +01:00
|
|
|
from tests.package.test_python import TestPythonPackageBase
|
|
|
|
|
2020-03-24 15:53:35 +01:00
|
|
|
|
2020-03-12 20:47:17 +01:00
|
|
|
class TestPythonPy3Gobject(TestPythonPackageBase):
|
2019-12-01 19:39:09 +01:00
|
|
|
__test__ = True
|
2020-03-12 20:47:17 +01:00
|
|
|
config = \
|
2019-12-01 19:39:09 +01:00
|
|
|
"""
|
2020-03-16 16:34:59 +01:00
|
|
|
BR2_arm=y
|
|
|
|
BR2_ARM_ENABLE_VFP=y
|
|
|
|
BR2_cortex_a9=y
|
2020-03-12 20:47:17 +01:00
|
|
|
BR2_TOOLCHAIN_EXTERNAL=y
|
|
|
|
BR2_PACKAGE_GOBJECT_INTROSPECTION=y
|
|
|
|
BR2_PACKAGE_PYTHON3=y
|
2019-12-01 19:39:09 +01:00
|
|
|
BR2_PACKAGE_PYTHON_GOBJECT=y
|
2020-03-16 16:34:59 +01:00
|
|
|
BR2_TARGET_ROOTFS_CPIO=y
|
|
|
|
# BR2_TARGET_ROOTFS_TAR is not set
|
2019-12-01 19:39:09 +01:00
|
|
|
"""
|
2020-03-12 20:47:17 +01:00
|
|
|
|
|
|
|
def login(self):
|
2020-03-16 16:34:59 +01:00
|
|
|
img = os.path.join(self.builddir, "images", "rootfs.cpio")
|
|
|
|
self.emulator.boot(arch="armv7",
|
|
|
|
kernel="builtin",
|
|
|
|
options=["-initrd", img])
|
2020-03-12 20:47:17 +01:00
|
|
|
self.emulator.login()
|
|
|
|
|
2019-12-01 19:39:09 +01:00
|
|
|
sample_scripts = ["tests/package/sample_python_gobject.py"]
|