After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 751027 - validateelements: removed redundant test cases and covered more elements
validateelements: removed redundant test cases and covered more elements
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-devtools
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-16 06:47 UTC by Prashant Gotarne
Modified: 2018-11-03 11:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
validateelements: removed redundant test cases and covered more elements (5.92 KB, patch)
2015-06-16 06:50 UTC, Prashant Gotarne
none Details | Review
validateelements: removed redundant test cases and covered more elements (6.54 KB, patch)
2015-06-16 11:29 UTC, Prashant Gotarne
none Details | Review

Description Prashant Gotarne 2015-06-16 06:47:41 UTC
Validateelements generates redundant test cases for element.
It is creating test case for each property with default value. Test cases for element with multiple properties with default value are the redundant test cases.
Instead of generating test case for each property with default value, generate only one test case with DEFAULT behavior.
Comment 1 Prashant Gotarne 2015-06-16 06:50:55 UTC
Created attachment 305365 [details] [review]
validateelements: removed redundant test cases and covered more elements

Redundant test cases removed by generating only single test case 
for default behavior.

Also covering more element by allowing DEFAULT test case for elements 
with no numeric or boolean properties.

Creating more test cases by covering float values.
Comment 2 Thibault Saunier 2015-06-16 08:05:40 UTC
Review of attachment 305365 [details] [review]:

Thanks for the patch.

Also please make sure you code is pep8 complient, I have noticed some little issues here and there.

::: testsuites/validateelements.py
@@ +35,3 @@
                                GObject.TYPE_UINT, GObject.TYPE_UINT64,
                                GObject.TYPE_LONG, GObject.TYPE_ULONG,
+                               GObject.TYPE_DOUBLE, GObject.TYPE_FLOAT]

That change is unrelated, please make another commit.

@@ -104,2 +90,3 @@
         ("validate.launch_pipeline.glfilterbin*",
          "glfilter bin doesnt launch."),
+        ("validate.launch_pipeline.glmosaic*",

This is completely unrelated afaict. Please try to open bug reports when it is a bug, or be more specific about why it is not working (if it is normal it does not work).

@@ +176,3 @@
+        if test_count > 0:
+            element_count = element_count + 1
+            #print "Element %20s TestCases: %2d" % (fname, test_count)

Please remove that line.

@@ +178,3 @@
+            #print "Element %20s TestCases: %2d" % (fname, test_count)
+
+    print "Total %4d testcases generated for %4d elements" % (total_test_cases,element_count)

And that one too.
Comment 3 Prashant Gotarne 2015-06-16 11:29:31 UTC
Created attachment 305381 [details] [review]
validateelements: removed redundant test cases and covered more elements

please review updated patch.

Putting glmosaic and glvideomixerelement in blacklist as it has multiple on request sinkpads. glfilterbin failed to connect to these filters in simple pipeline.
Comment 4 Prashant Gotarne 2015-06-29 08:29:22 UTC
please review the updated patch
Comment 5 Prashant Gotarne 2015-07-14 04:35:34 UTC
ping
Comment 6 Prashant Gotarne 2015-07-28 02:51:53 UTC
Hi Thibault, 

please review this.
Comment 7 Prashant Gotarne 2015-09-02 07:59:31 UTC
please review this patch
Comment 8 GStreamer system administrator 2018-11-03 11:07:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-devtools/issues/16.