Statistics
| Branch: | Revision:

ffmpeg / tests / seek_test.sh @ 3251f24b

History | View | Annotate | Download (451 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 4fbd52f0 Diego Biurrun
    tests/seek_test $i >> $logfile
17 f97b7e66 Michael Niedermayer
done
18
19 be47dad7 Benoit Fouet
if diff -u "$reffile" "$logfile" ; then
20 f97b7e66 Michael Niedermayer
    echo
21 76de4ea6 Diego Biurrun
    echo seek regression test: success
22 f97b7e66 Michael Niedermayer
    exit 0
23
else
24
    echo
25 76de4ea6 Diego Biurrun
    echo seek regression test: error
26 f97b7e66 Michael Niedermayer
    exit 1
27
fi