This file is indexed.

/usr/share/checkbox/scripts/gst_pipeline_test is in checkbox 0.13.7.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/python

import sys
import time

import pygst
pygst.require("0.10")

from optparse import OptionParser


def main(args):
    import gst

    usage = "Usage: %prog [OPTIONS] PIPELINE"
    parser = OptionParser(usage=usage)
    parser.add_option("-t", "--timeout",
        type="int",
        default=0,
        help="Timeout for running the pipeline.")
    (options, args) = parser.parse_args(args)

    if len(args) != 1:
        parser.error("Must provide a PIPELINE")

    pipeline = args[0]
    element = gst.parse_launch(pipeline)
    element.set_state(gst.STATE_PLAYING)

    if options.timeout:
        time.sleep(options.timeout)

    element.set_state(gst.STATE_NULL)
    return 0


if __name__ == "__main__":
    sys.exit(main(sys.argv[1:]))