summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/gstreamer.py
blob: f735f82e3b5af400f3030e9e85e6e6684e925602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# SPDX-License-Identifier: MIT
#

from oeqa.runtime.case import OERuntimeTestCase
from oeqa.runtime.decorator.package import OEHasPackage

class GstreamerCliTest(OERuntimeTestCase):

    @OEHasPackage(['gstreamer1.0'])
    def test_gst_inspect_can_list_all_plugins(self):
        status, output = self.target.run('gst-inspect-1.0')
        self.assertEqual(status, 0, 'gst-inspect-1.0 does not appear to be running.')

    @OEHasPackage(['gstreamer1.0'])
    def test_gst_launch_can_create_video_pipeline(self):
        status, output = self.target.run('gst-launch-1.0 -v fakesrc silent=false num-buffers=3 ! fakesink silent=false')
        self.assertEqual(status, 0, 'gst-launch-1.0 does not appear to be running.')