Statistics
| Branch: | Revision:

ffmpeg / tests / seek-regression.sh @ d7096d6f

History | View | Annotate | Download (584 Bytes)

1
#!/bin/sh
2

    
3
LC_ALL=C
4
export LC_ALL
5

    
6
src_path=$1
7
target_exec=$2
8
target_path=$3
9

    
10
refdir="$src_path/tests/ref/seek"
11
datadir="tests/data"
12

    
13
list=$(ls -1 $datadir/vsynth2/* $datadir/acodec/*)
14
err=0
15

    
16
for i in $list ; do
17
    base=$(basename $i)
18
    logfile="$datadir/$base.seek.regression"
19
    reffile="$refdir/$base.ref"
20
    $target_exec $target_path/tests/seek_test $target_path/$i > $logfile
21
    diff -u -w "$reffile" "$logfile" || err=1
22
done
23

    
24
if [ $err = 0 ]; then
25
    echo
26
    echo seek regression test: success
27
    exit 0
28
else
29
    echo
30
    echo seek regression test: error
31
    exit 1
32
fi