Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added todo added simple automatic test suite for plugins using filesr…
…c and fakesink Original commit message from CVS: added todo added simple automatic test suite for plugins using filesrc and fakesink
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
* check qcam plugin; it includes source of the qcam package that might | ||
be librified | ||
|
||
* check xvideo; the flags need better handling but first try to understand | ||
it better ;) | ||
|
||
* check SDL optimisation flags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# automatic testing of some of the plugins using gstreamer-launch | ||
|
||
MEDIA=/home/thomas/media | ||
GSTL=gstreamer-launch | ||
|
||
run_file_test() | ||
# run a pipe between filesrc and fakesink to test a set of plugins | ||
# first argument is the test name | ||
# second argument is the filename to work on | ||
# third argument is the part between filesrc and fakesink | ||
{ | ||
NAME=$1 | ||
FILE=$2 | ||
PIPE=$3 | ||
|
||
echo -n "Testing $NAME ... " | ||
COMMAND="$GSTL filesrc location=$MEDIA/$FILE ! $PIPE ! fakesink silent=true" | ||
$COMMAND > /dev/null 2> /dev/null | ||
if test $?; then PASSED="yes"; else PASSED="no"; fi | ||
if test "x$PASSED"="xyes"; then echo "passed."; else echo "failed"; fi | ||
} | ||
|
||
run_file_test "mad" "south.mp3" "mad" | ||
run_file_test "mad/lame" "south.mp3" "mad ! lame" | ||
run_file_test "mad/lame/mad" "south.mp3" "mad ! lame ! mad" | ||
run_file_test "vorbisdec" "Brown\ Sugar128.ogg" "vorbisdec" | ||
run_file_test "vorbisdec/vorbisenc" "Brown\ Sugar128.ogg" "vorbisdec ! vorbisenc" | ||
|