Statistics
| Branch: | Revision:

ffmpeg / tests / seek_test.sh @ f97b7e66

History | View | Annotate | Download (481 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 $logfile
11
for i in $list ; do
12
    echo ---------------- >>$logfile
13
    echo $i >>$logfile
14
    ./seek_test $i >> $logfile
15
done
16

    
17
if diff -u "$logfile" "$reffile" ; then
18
    echo
19
    echo Regression test succeeded.
20
    exit 0
21
else
22
    echo
23
    echo Regression test: Error.
24
    exit 1
25
fi