summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2001-12-21 09:49:24 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2001-12-21 09:49:24 +0000
commit99b237bf25dfe13d4d398832c114174f8355d8ac (patch)
treebbaf6d86d4db6c32786ac29f4d21a117c253f758 /scripts
parentc6d1ec9d5a710062e71a3462cf49899855acb52b (diff)
downloadgst-plugins-bad-99b237bf25dfe13d4d398832c114174f8355d8ac.tar.gz
gst-plugins-bad-99b237bf25dfe13d4d398832c114174f8355d8ac.tar.bz2
gst-plugins-bad-99b237bf25dfe13d4d398832c114174f8355d8ac.zip
added todo added simple automatic test suite for plugins using filesrc and fakesink
Original commit message from CVS: added todo added simple automatic test suite for plugins using filesrc and fakesink
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/autoplugins.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/autoplugins.sh b/scripts/autoplugins.sh
new file mode 100755
index 00000000..03eea107
--- /dev/null
+++ b/scripts/autoplugins.sh
@@ -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"
+