3 # automatic testing of some of the plugins using gstreamer-launch
5 MEDIA=/home/thomas/media
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
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
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"