blob: 2295769cfd2a096062dbf3becc03dc63bdf1a901 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001#
Patrick Williams92b42cb2022-09-03 06:53:57 -05002# Copyright OpenEmbedded Contributors
3#
Brad Bishopc342db32019-05-15 21:57:59 -04004# SPDX-License-Identifier: MIT
5#
6
Brad Bishop19323692019-04-05 15:28:33 -04007from oeqa.runtime.case import OERuntimeTestCase
8from oeqa.runtime.decorator.package import OEHasPackage
9
10class GstreamerCliTest(OERuntimeTestCase):
11
12 @OEHasPackage(['gstreamer1.0'])
13 def test_gst_inspect_can_list_all_plugins(self):
14 status, output = self.target.run('gst-inspect-1.0')
15 self.assertEqual(status, 0, 'gst-inspect-1.0 does not appear to be running.')
16
17 @OEHasPackage(['gstreamer1.0'])
18 def test_gst_launch_can_create_video_pipeline(self):
19 status, output = self.target.run('gst-launch-1.0 -v fakesrc silent=false num-buffers=3 ! fakesink silent=false')
20 self.assertEqual(status, 0, 'gst-launch-1.0 does not appear to be running.')