Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | # |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 2 | # Copyright OpenEmbedded Contributors |
| 3 | # |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 4 | # SPDX-License-Identifier: MIT |
| 5 | # |
| 6 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 7 | from oeqa.runtime.case import OERuntimeTestCase |
| 8 | from oeqa.runtime.decorator.package import OEHasPackage |
| 9 | |
| 10 | class 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.') |