h264parse: ensure sufficiently sized buffer when wrapping NAL
[platform/upstream/gstreamer.git] / scripts / autoplugins.sh
1 #!/bin/bash
2
3 # automatic testing of some of the plugins using gstreamer-launch
4
5 MEDIA=/home/thomas/media
6 GSTL=gstreamer-launch
7
8 run_file_test()
9 # run a pipe between filesrc and fakesink to test a set of plugins
10 # first argument is the test name
11 # second argument is the filename to work on
12 # third argument is the part between filesrc and fakesink
13 {
14   NAME=$1
15   FILE=$2
16   PIPE=$3
17   
18   echo -n "Testing $NAME ... "
19   COMMAND="$GSTL filesrc location=$MEDIA/$FILE ! $PIPE ! fakesink silent=true"
20   $COMMAND > /dev/null 2> /dev/null
21   if test $?; then PASSED="yes"; else PASSED="no"; fi
22   if test "x$PASSED"="xyes"; then echo "passed."; else echo "failed"; fi 
23 }
24
25 run_file_test "mad" "south.mp3" "mad"
26 run_file_test "mad/lame" "south.mp3" "mad ! lame"
27 run_file_test "mad/lame/mad" "south.mp3" "mad ! lame ! mad"
28 run_file_test "vorbisdec" "Brown\ Sugar128.ogg" "vorbisdec"
29 run_file_test "vorbisdec/vorbisenc" "Brown\ Sugar128.ogg" "vorbisdec ! vorbisenc"
30