xref: /OK3568_Linux_fs/buildroot/support/testing/tests/package/test_gst1_python.py (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1import os
2from tests.package.test_python import TestPythonPackageBase
3
4
5class TestGst1Python(TestPythonPackageBase):
6    __test__ = True
7    config = \
8        """
9        BR2_arm=y
10        BR2_cortex_a9=y
11        BR2_ARM_ENABLE_VFP=y
12        BR2_TOOLCHAIN_EXTERNAL=y
13        BR2_TOOLCHAIN_EXTERNAL_LINARO_ARM=y
14        BR2_PACKAGE_GSTREAMER1=y
15        BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOTESTSRC=y
16        BR2_PACKAGE_GST1_PLUGINS_BAD=y
17        BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DEBUGUTILS=y
18        BR2_PACKAGE_GST1_PYTHON=y
19        BR2_PACKAGE_PYTHON3=y
20        BR2_TARGET_ROOTFS_CPIO=y
21        # BR2_TARGET_ROOTFS_TAR is not set
22        """
23
24    def login(self):
25        cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
26        self.emulator.boot(arch="armv7",
27                           kernel="builtin",
28                           options=["-initrd", cpio_file])
29        self.emulator.login()
30    sample_scripts = ["tests/package/sample_gst1_python.py"]
31    timeout = 200
32