summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime
diff options
context:
space:
mode:
authorYeoh Ee Peng <ee.peng.yeoh@intel.com>2018-11-08 17:41:54 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-14 11:14:39 +0000
commitf3b1155f2bec64ae601306ddac730d5844f4d468 (patch)
tree895cde095a260fe804881effa0b603d1fb04ef0a /meta/lib/oeqa/runtime
parent36249d8a1c97b2c5dc67d86115d66008074894dc (diff)
downloadpoky-f3b1155f2bec64ae601306ddac730d5844f4d468.tar.gz
oeqa/runtime: Add tests for gstreamer CLI
We should not be finding GStreamer issues right around release time but that's what we seem to do. Port gstreamer tests from Intel Ref Kit. https://github.com/intel/intel-iot-refkit/blob/master/meta-iotqa/ lib/oeqa/runtime/multimedia/gstreamer/gstreamer_cli.py Add tests for gstreamer commandline tools (gst-inspect-1.0 & gst-launch-1.0). [YOCTO #11418] (From OE-Core rev: 3e77f845b517e3f4b3e7d09d088a9a80bf171653) Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r--meta/lib/oeqa/runtime/cases/gstreamer.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/gstreamer.py b/meta/lib/oeqa/runtime/cases/gstreamer.py
new file mode 100644
index 0000000000..128630e117
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/gstreamer.py
@@ -0,0 +1,14 @@
1from oeqa.runtime.case import OERuntimeTestCase
2from oeqa.runtime.decorator.package import OEHasPackage
3
4class GstreamerCliTest(OERuntimeTestCase):
5
6 @OEHasPackage(['gstreamer1.0'])
7 def test_gst_inspect_can_list_all_plugins(self):
8 status, output = self.target.run('gst-inspect-1.0')
9 self.assertEqual(status, 0, 'gst-inspect-1.0 does not appear to be running.')
10
11 @OEHasPackage(['gstreamer1.0'])
12 def test_gst_launch_can_create_video_pipeline(self):
13 status, output = self.target.run('gst-launch-1.0 -v fakesrc silent=false num-buffers=3 ! fakesink silent=false')
14 self.assertEqual(status, 0, 'gst-launch-1.0 does not appear to be running.')