Statistics
| Branch: | Revision:

ffmpeg / tests / seek_test.sh @ d2e40fe5

History | View | Annotate | Download (511 Bytes)

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