blob: f735f82e3b5af400f3030e9e85e6e6684e925602 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001#
2# SPDX-License-Identifier: MIT
3#
4
Brad Bishop19323692019-04-05 15:28:33 -04005from oeqa.runtime.case import OERuntimeTestCase
6from oeqa.runtime.decorator.package import OEHasPackage
7
8class GstreamerCliTest(OERuntimeTestCase):
9
10 @OEHasPackage(['gstreamer1.0'])
11 def test_gst_inspect_can_list_all_plugins(self):
12 status, output = self.target.run('gst-inspect-1.0')
13 self.assertEqual(status, 0, 'gst-inspect-1.0 does not appear to be running.')
14
15 @OEHasPackage(['gstreamer1.0'])
16 def test_gst_launch_can_create_video_pipeline(self):
17 status, output = self.target.run('gst-launch-1.0 -v fakesrc silent=false num-buffers=3 ! fakesink silent=false')
18 self.assertEqual(status, 0, 'gst-launch-1.0 does not appear to be running.')