gstreamer/tests/misc
David Rothlisberger 5d6635f9b4 tools/gstreamer-completion: Complete option & property values on bash 3.2
Bash 3's completion doesn't split words by characters in
COMP_WORDBREAKS. In particular it doesn't split at "=" signs. Now
_gst_launch_parse handles both bash 3 and 4 format of COMP_WORDS.

Note that "${cur%%=*}" means cur's value with the longest possible match
of "=*" deleted from the end; "${cur#*=}" means cur's value with the
shortest possible match of "*=" deleted from the beginning. See
http://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html

Regardless of the version of bash running the unit tests, I can test for
both behaviours because the unit test populates COMP_WORDS manually. So
this tests the bash 3 behaviour:

    test_gst_inspect_completion --gst-debug-level=4

and this tests the bash 4 behaviour:

    test_gst_inspect_completion --gst-debug-level = 4
2013-04-29 21:12:42 +02:00
..
Makefile.am missing makefile 2005-11-30 16:45:15 +00:00
network-clock-utils.scm Fix FSF address 2012-11-03 20:44:48 +00:00
network-clock.scm Fix FSF address 2012-11-03 20:44:48 +00:00
plot-data tests/network-clock-utils.scm (debug, print-event): New utils. 2005-06-28 16:57:27 +00:00
test-gstreamer-completion.sh tools/gstreamer-completion: Complete option & property values on bash 3.2 2013-04-29 21:12:42 +02:00