Statistics
| Branch: | Revision:

ffmpeg / tests / seek_test.sh @ 46a7e3ec

History | View | Annotate | Download (524 Bytes)

1 f97b7e66 Michael Niedermayer
#!/bin/sh
2
3 1e56c151 Måns Rullgård
LC_ALL=C
4
export LC_ALL
5
6 9a5771e9 Måns Rullgård
target_exec=$2
7
target_path=$3
8
9 4fbd52f0 Diego Biurrun
datadir="tests/data"
10 f97b7e66 Michael Niedermayer
11
logfile="$datadir/seek.regression"
12
reffile="$1"
13
14 d2e40fe5 Måns Rullgård
list=`grep '^tests/data/[ab]-' "$reffile"`
15 f1f836fd Diego Biurrun
rm -f $logfile
16 f97b7e66 Michael Niedermayer
for i in $list ; do
17 dc75f7ee Diego Biurrun
    echo ---------------- >> $logfile
18
    echo $i >> $logfile
19 9a5771e9 Måns Rullgård
    $target_exec $target_path/tests/seek_test $target_path/$i >> $logfile
20 f97b7e66 Michael Niedermayer
done
21
22 25060fdf Ramiro Polla
if diff -u -w "$reffile" "$logfile" ; then
23 f97b7e66 Michael Niedermayer
    echo
24 76de4ea6 Diego Biurrun
    echo seek regression test: success
25 f97b7e66 Michael Niedermayer
    exit 0
26
else
27
    echo
28 76de4ea6 Diego Biurrun
    echo seek regression test: error
29 f97b7e66 Michael Niedermayer
    exit 1
30
fi