blob: 84b6d3245c7834dd9079dc41688bf9ce9d246482 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
LC_ALL=C
export LC_ALL
src_path=$1
target_exec=$2
target_path=$3
[ "${V-0}" -gt 0 ] && echov=echo || echov=:
[ "${V-0}" -gt 1 ] || exec 2>/dev/null
refdir="$src_path/tests/ref/seek"
datadir="tests/data"
list=$(ls -1 $datadir/vsynth2/* $datadir/acodec/*)
err=0
for i in $list ; do
base=$(basename $i)
logfile="$datadir/$base.seek.regression"
reffile="$refdir/$base.ref"
echo "TEST SEEK $base"
$echov $target_exec $target_path/tests/seek_test $target_path/$i
$target_exec $target_path/tests/seek_test $target_path/$i > $logfile
diff -u -w "$reffile" "$logfile" || err=1
done
if [ $err = 0 ]; then
echo
echo seek regression test: success
exit 0
else
echo
echo seek regression test: error
exit 1
fi
|