validate/launcher: Ensure the HTTP server is started when a pipeline needs it
authorPhilippe Normand <philn@igalia.com>
Mon, 19 Aug 2019 10:25:45 +0000 (11:25 +0100)
committerPhilippe Normand <philn@igalia.com>
Wed, 21 Aug 2019 07:37:38 +0000 (08:37 +0100)
commit335180710743ac14b57ce39cbd571c2e79cec0e7
tree7e60194e2c31f6b444d82b88fb58a7ec7d272af6
parent8e01e033644b3ace1f18a8460d17db3d67bee956
validate/launcher: Ensure the HTTP server is started when a pipeline needs it

Pipelines declared in gst-integration-testsuites can rely on the validate HTTP
server, so when an URI pointing to it is detected, advertise the server as
needed before starting the test.

For this to work the test scenario should explicitely declare the pipeline uri,
as shown in this example:

    "some_playbin3":
    {
        "pipeline": "playbin3 uri=%(uri)s video-sink=%(videosink)s",
        "config": [
            "%(validateflow)s, pad=sink:sink"
        ],
        "scenarios": ["play_15s"],
        "uri": "http://127.0.0.1:%(http-server-port)s/defaults/html/foo.html"
    }
validate/launcher/apps/gstvalidate.py