test_gst1_python.py 905 B

1234567891011121314151617181920212223242526272829
  1. import os
  2. from tests.package.test_python import TestPythonPackageBase
  3. class TestGst1Python(TestPythonPackageBase):
  4. __test__ = True
  5. config = TestPythonPackageBase.config + \
  6. """
  7. BR2_TOOLCHAIN_EXTERNAL=y
  8. BR2_TARGET_ROOTFS_CPIO=y
  9. BR2_cortex_a9=y
  10. BR2_ARM_ENABLE_VFP=y
  11. BR2_ARM_EABIHF=y
  12. BR2_TOOLCHAIN_EXTERNAL_LINARO_ARM=y
  13. BR2_PACKAGE_GOBJECT_INTROSPECTION=y
  14. BR2_PACKAGE_GSTREAMER1=y
  15. BR2_PACKAGE_GST1_PYTHON=y
  16. BR2_PACKAGE_PYTHON3=y
  17. BR2_PACKAGE_PYTHON_GOBJECT=y
  18. """
  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()
  25. sample_scripts = ["tests/package/sample_gst1_python.py"]