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 778334 - gst-build: add valgrind support
gst-build: add valgrind support
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-build
unspecified
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-02-08 11:37 UTC by Guillaume Desmottes
Modified: 2018-11-03 11:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add valgrind support (1.74 KB, patch)
2017-02-08 11:37 UTC, Guillaume Desmottes
none Details | Review

Description Guillaume Desmottes 2017-02-08 11:37:29 UTC
.
Comment 1 Guillaume Desmottes 2017-02-08 11:37:53 UTC
Created attachment 345188 [details] [review]
add valgrind support

Use add_test_setup() which has been introduced in Meson 0.38.
Comment 2 Tim-Philipp Müller 2017-02-08 11:43:23 UTC
I wonder how add_test_setup() in a superproject and a subproject interact? Can we have both with the same name?

Asked differently, shouldn't this be in the gst modules instead?
Comment 3 Guillaume Desmottes 2017-02-08 11:45:23 UTC
(In reply to Tim-Philipp Müller from comment #2)
> I wonder how add_test_setup() in a superproject and a subproject interact?
> Can we have both with the same name?

I asked the same question to Jussi on IRC:

<jpakkane> cassidy: currently only top level project setups are considered.
Comment 4 Tim-Philipp Müller 2017-02-08 11:53:22 UTC
Ok, so maybe we should figure this out on the meson side first then.
Comment 5 Guillaume Desmottes 2017-02-09 12:40:20 UTC
We should pass --suppressions to valgrind with the list of supp files, so yeah, maybe it should indeed be done in each subproject.
Comment 6 Guillaume Desmottes 2017-04-26 14:46:56 UTC
Nirbheek: how should we handle this? Should the valgrind test_setup be duplicated in each gst subproject?
Comment 7 Nirbheek Chauhan 2017-04-27 03:18:29 UTC
Let's just add it to the gst-build meson.build file for now.

I also think we should move the suppressions file to gstreamer.git and install it, just like glib does into /usr/share/gstreamer-1.0/valgrind. This way we can also easily use it in gst-build. Currently it resides in common.git.

We also have a bunch of plugin-specific .supp files for -base, good, bad, ugly. What to do about those? AFAIK you cannot specify multiple suppression files to valgrind, so I think we should merge those into gst.supp (and we should also clean up gst.supp a bit; it has some 11-year-old things in it).
Comment 8 Guillaume Desmottes 2017-04-27 08:34:33 UTC
(In reply to Nirbheek Chauhan from comment #7)
> AFAIK you cannot specify multiple suppression
> files to valgrind, so I think we should merge those into gst.supp (and we
> should also clean up gst.supp a bit; it has some 11-year-old things in it).

Actually you can pass multiple --suppressions=$FILE arguments so each gst component installing its own supp file would make sense.

Ideally it would be best to have /usr/lib/valgrind/supp.d/ directory to install those but that's not supported yet: https://bugs.kde.org/show_bug.cgi?id=93376
Comment 9 Nirbheek Chauhan 2017-04-27 08:44:05 UTC
Oh, that makes sense then. It would actually be really nice then to be able to "associate" suppression files with specific libraries in Meson so that they can be passed automatically to valgrind when running tests in valgrind mode.

In the meantime, gst-build can just pass all the suppression files to the valgrind test setup.
Comment 10 GStreamer system administrator 2018-11-03 11:04:46 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-build/issues/4.