add parenthesis, fix warning: qtrleenc.c:257: warning: suggest parentheses around...
[ffmpeg.git] / tests / seek_test.sh
1 #!/bin/sh
2
3 LC_ALL=C
4 export LC_ALL
5
6 datadir="tests/data"
7
8 logfile="$datadir/seek.regression"
9 reffile="$1"
10
11 list=`ls tests/data/a-* tests/data/b-* | sort`
12 rm -f $logfile
13 for i in $list ; do
14     echo ---------------- >> $logfile
15     echo $i >> $logfile
16     echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null &&
17     tests/seek_test $i >> $logfile
18 done
19
20 if diff -u "$reffile" "$logfile" ; then
21     echo
22     echo seek regression test: success
23     exit 0
24 else
25     echo
26     echo seek regression test: error
27     exit 1
28 fi