Add entry for AVFilterPicRef interlaced and top_field_first fields
[libav.git] / tests / seek-regression.sh
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 [ "${V-0}" -gt 0 ] && echov=echo || echov=:
11 [ "${V-0}" -gt 1 ] || exec 2>/dev/null
12
13 refdir="$src_path/tests/ref/seek"
14 datadir="tests/data"
15
16 list=$(ls -1 $datadir/vsynth2/* $datadir/acodec/* $datadir/lavf/*)
17 imgs=$(for i in $datadir/images/*; do echo "$i/%02d.${i##*/}"; done)
18 err=0
19
20 for i in $list $imgs; do
21 base=$(basename $i)
22 logfile="$datadir/$base.seek.regression"
23 reffile="$refdir/$base.ref"
24 echo "TEST SEEK $base"
25 $echov $target_exec $target_path/tests/seek_test $target_path/$i
26 $target_exec $target_path/tests/seek_test $target_path/$i > $logfile
27 diff -u -w "$reffile" "$logfile" || err=1
28 done
29
30 if [ $err = 0 ]; then
31 echo
32 echo seek regression test: success
33 exit 0
34 else
35 echo
36 echo seek regression test: error
37 exit 1
38 fi