gstreamer/tools/gst-element-maker-test.sh
Stefan Kost c1e91cb168 element-maker-test: try to run element-maker for all templates
Add an easy way to check the element-maker templates.
2011-04-26 15:17:30 +03:00

20 lines
298 B
Bash
Executable file

#!/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;