modify order in which files are diff'd
[ffmpeg.git] / tests / seek_test.sh
1 #!/bin/sh
2 #feel free to clean this up ive made no attempt to write this overly portable ...
3
4 datadir="./data"
5
6 logfile="$datadir/seek.regression"
7 reffile="$1"
8
9 list=`ls data/a-* data/b-* | sort`
10 rm $logfile
11 for i in $list ; do
12     echo ---------------- >>$logfile
13     echo $i >>$logfile
14     echo $i | grep -vq 'b-libav[01][0-9][.]' &&
15     ./seek_test $i >> $logfile
16 done
17
18 if diff -u "$reffile" "$logfile" ; then
19     echo
20     echo Regression test succeeded.
21     exit 0
22 else
23     echo
24     echo Regression test: Error.
25     exit 1
26 fi