Statistics
| Branch: | Revision:

ffmpeg / tests / seek_test.sh @ 6d593d43

History | View | Annotate | Download (544 Bytes)

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 -f $logfile
11
for i in $list ; do
12
    echo ---------------- >>$logfile
13
    echo $i >>$logfile
14
    echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null &&
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