mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-18 03:19:31 +02:00
d7096d6fdd
Originally committed as revision 22158 to svn://svn.ffmpeg.org/ffmpeg/trunk
33 lines
584 B
Bash
Executable File
33 lines
584 B
Bash
Executable File
#!/bin/sh
|
|
|
|
LC_ALL=C
|
|
export LC_ALL
|
|
|
|
src_path=$1
|
|
target_exec=$2
|
|
target_path=$3
|
|
|
|
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"
|
|
$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
|