Statistics
| Branch: | Revision:

ffmpeg / tests / seek-regression.sh @ cc3e2472

History | View | Annotate | Download (520 Bytes)

1
#!/bin/sh
2

    
3
LC_ALL=C
4
export LC_ALL
5

    
6
target_exec=$2
7
target_path=$3
8

    
9
datadir="tests/data"
10

    
11
logfile="$datadir/seek.regression"
12
reffile="$1"
13

    
14
list=$(grep '^tests/data/' "$reffile")
15
rm -f $logfile
16
for i in $list ; do
17
    echo ---------------- >> $logfile
18
    echo $i >> $logfile
19
    $target_exec $target_path/tests/seek_test $target_path/$i >> $logfile
20
done
21

    
22
if diff -u -w "$reffile" "$logfile" ; then
23
    echo
24
    echo seek regression test: success
25
    exit 0
26
else
27
    echo
28
    echo seek regression test: error
29
    exit 1
30
fi