Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | # |
| 2 | # SPDX-License-Identifier: MIT |
| 3 | # |
| 4 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 5 | from oeqa.runtime.case import OERuntimeTestCase |
| 6 | from oeqa.runtime.decorator.package import OEHasPackage |
| 7 | |
| 8 | class 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.') |