2007-02-05 19:15:03 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-07-10 22:49:05 +02:00
|
|
|
LC_ALL=C
|
|
|
|
export LC_ALL
|
|
|
|
|
2010-03-02 22:59:16 +01:00
|
|
|
src_path=$1
|
2008-11-23 13:36:44 +01:00
|
|
|
target_exec=$2
|
|
|
|
target_path=$3
|
|
|
|
|
2010-03-02 22:59:27 +01:00
|
|
|
[ "${V-0}" -gt 0 ] && echov=echo || echov=:
|
|
|
|
[ "${V-0}" -gt 1 ] || exec 2>/dev/null
|
|
|
|
|
2010-03-02 22:59:16 +01:00
|
|
|
refdir="$src_path/tests/ref/seek"
|
2007-06-08 00:36:39 +02:00
|
|
|
datadir="tests/data"
|
2007-02-05 19:15:03 +01:00
|
|
|
|
2010-03-02 22:59:16 +01:00
|
|
|
list=$(ls -1 $datadir/vsynth2/* $datadir/acodec/*)
|
|
|
|
err=0
|
2007-02-05 19:15:03 +01:00
|
|
|
|
|
|
|
for i in $list ; do
|
2010-03-02 22:59:16 +01:00
|
|
|
base=$(basename $i)
|
|
|
|
logfile="$datadir/$base.seek.regression"
|
|
|
|
reffile="$refdir/$base.ref"
|
2010-03-02 22:59:27 +01:00
|
|
|
echo "TEST SEEK $base"
|
|
|
|
$echov $target_exec $target_path/tests/seek_test $target_path/$i
|
2010-03-02 22:59:16 +01:00
|
|
|
$target_exec $target_path/tests/seek_test $target_path/$i > $logfile
|
|
|
|
diff -u -w "$reffile" "$logfile" || err=1
|
2007-02-05 19:15:03 +01:00
|
|
|
done
|
|
|
|
|
2010-03-02 22:59:16 +01:00
|
|
|
if [ $err = 0 ]; then
|
2007-02-05 19:15:03 +01:00
|
|
|
echo
|
2008-01-30 00:30:00 +01:00
|
|
|
echo seek regression test: success
|
2007-02-05 19:15:03 +01:00
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo
|
2008-01-30 00:30:00 +01:00
|
|
|
echo seek regression test: error
|
2007-02-05 19:15:03 +01:00
|
|
|
exit 1
|
|
|
|
fi
|