Added ATRAC1 id
[FFMpeg-mirror/ordered_chapters.git] / tests / seek-regression.sh
blob3074d708b8be18c277e0849df756a26c002ba21f
1 #!/bin/sh
3 LC_ALL=C
4 export LC_ALL
6 target_exec=$2
7 target_path=$3
9 datadir="tests/data"
11 logfile="$datadir/seek.regression"
12 reffile="$1"
14 list=`grep '^tests/data/[ab]-' "$reffile"`
15 rm -f $logfile
16 for i in $list ; do
17 echo ---------------- >> $logfile
18 echo $i >> $logfile
19 $target_exec $target_path/tests/seek_test $target_path/$i >> $logfile
20 done
22 if diff -u -w "$reffile" "$logfile" ; then
23 echo
24 echo seek regression test: success
25 exit 0
26 else
27 echo
28 echo seek regression test: error
29 exit 1