Revision d7096d6f tests/seek-regression.sh

View differences:

tests/seek-regression.sh
3 3
LC_ALL=C
4 4
export LC_ALL
5 5

  
6
src_path=$1
6 7
target_exec=$2
7 8
target_path=$3
8 9

  
10
refdir="$src_path/tests/ref/seek"
9 11
datadir="tests/data"
10 12

  
11
logfile="$datadir/seek.regression"
12
reffile="$1"
13
list=$(ls -1 $datadir/vsynth2/* $datadir/acodec/*)
14
err=0
13 15

  
14
list=$(grep '^tests/data/' "$reffile")
15
rm -f $logfile
16 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
17
    base=$(basename $i)
18
    logfile="$datadir/$base.seek.regression"
19
    reffile="$refdir/$base.ref"
20
    $target_exec $target_path/tests/seek_test $target_path/$i > $logfile
21
    diff -u -w "$reffile" "$logfile" || err=1
20 22
done
21 23

  
22
if diff -u -w "$reffile" "$logfile" ; then
24
if [ $err = 0 ]; then
23 25
    echo
24 26
    echo seek regression test: success
25 27
    exit 0

Also available in: Unified diff