summaryrefslogtreecommitdiff
path: root/tools/gst-element-maker-test.sh
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2011-04-26 13:44:04 +0300
committerStefan Kost <ensonic@users.sf.net>2011-04-26 15:17:30 +0300
commitc1e91cb1685acb56d8a33290a27dcb8cbd3378c7 (patch)
treecd06d8256ed57da97665c8a223278bc7159e753b /tools/gst-element-maker-test.sh
parente32a6f947106382898750d4af77151cd42ce5886 (diff)
downloadgstreamer-plugins-bad-c1e91cb1685acb56d8a33290a27dcb8cbd3378c7.tar.gz
element-maker-test: try to run element-maker for all templates
Add an easy way to check the element-maker templates.
Diffstat (limited to 'tools/gst-element-maker-test.sh')
-rwxr-xr-xtools/gst-element-maker-test.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/gst-element-maker-test.sh b/tools/gst-element-maker-test.sh
new file mode 100755
index 000000000..fdd9bf3b3
--- /dev/null
+++ b/tools/gst-element-maker-test.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+tmpdir=`mktemp --tmpdir -d gst.XXXXXXXXXX`
+workdir=$PWD
+cd $tmpdir
+res=0
+
+for file in $TEMPLATE_FILES; do
+ name=`basename $file element-templates`
+ $SRC_DIR/gst-element-maker gst$name $name
+ if test $? -ne 0; then
+ res=1
+ break
+ fi
+done
+
+cd $workdir
+rm -rf $tmpdir
+exit $res;
+