summaryrefslogtreecommitdiff
path: root/tools/gst-element-maker-test.sh
blob: fdd9bf3b3584aa95e2f611a0a09d57b958ebbef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;