element-maker-test: try to run element-maker for all templates
[platform/upstream/gstreamer.git] / tools / gst-element-maker-test.sh
1 #!/bin/sh
2
3 tmpdir=`mktemp --tmpdir -d gst.XXXXXXXXXX`
4 workdir=$PWD
5 cd $tmpdir
6 res=0
7
8 for file in $TEMPLATE_FILES; do
9   name=`basename $file element-templates`
10   $SRC_DIR/gst-element-maker gst$name $name
11   if test $? -ne 0; then
12     res=1
13     break
14   fi
15 done
16
17 cd $workdir
18 rm -rf $tmpdir
19 exit $res;
20