[gstreamer-bugs] [Bug 619815] New: GST_PLUGIN_LOADING_WHITELIST env var for unit tests

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu May 27 05:05:40 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=619815
  GStreamer | gstreamer (core) | git

           Summary: GST_PLUGIN_LOADING_WHITELIST env var for unit tests
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: t.i.m at zen.co.uk
         QAContact: gstreamer-bugs at lists.sourceforge.net
            Blocks: 619717
      GNOME target: ---
     GNOME version: ---


Created an attachment (id=162091)
 View: https://bugzilla.gnome.org/attachment.cgi?id=162091
 Review: https://bugzilla.gnome.org/review?bug=619815&attachment=162091

pluginloading: add support for whitelisting based on package name and path

This feature is primarily intended for use in plugin modules unit tests.

    Consider the following situation: gst-plugins-good is built against an
    installed GStreamer core. An older version of gst-plugins-good is also
    installed in that prefix, along with random other plugin modules. Now,
    when doing 'make check' in the just-built gst-plugins-good tree, we
    want to only load plugins from GStreamer core, gst-plugins-base, and
    gst-plugins-good, but not random other modules (we don't want any unit
    tests to fail just because some module in gst-plugins-bad has a broken
    plugin_init, for example). Also, we want to only load gst-plugins-good
    modules from the locally-built source tree, but not any of the older
    gst-plugins-good modules installed. This is usually assured by loading
    the ones in the source tree first (by adding that path first to the
    right environment variables), but it gets tricky when plugins are
    moved, removed, merged, or renamed, or the plugin filename changes.

    Note that 'make check' should really work right without doing
    'make install' or uninstalling the old gst-plugins-good package (or
    any other gst-plugins-foo package) first.

    Enter GST_PLUGIN_LOADING_WHITELIST. This environment variable may
    contain package-name at path-prefix pairs separated by the platform
    search path separator (G_SEARCHPATH_SEPARATOR_S). Package name and
    path prefix are separated by the '@' character. The path prefix is
    entirely optional, and so is the '@' separator if no path is given.

    So for our gst-plugins-good unit test case above, this would be:
    gstreamer:gst-plugins-base:gst-plugins-good@/src/gst-plugins-good/

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list