mirror of https://github.com/FFmpeg/FFmpeg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
524 B
31 lines
524 B
18 years ago
|
#!/bin/sh
|
||
|
|
||
18 years ago
|
LC_ALL=C
|
||
|
export LC_ALL
|
||
|
|
||
16 years ago
|
target_exec=$2
|
||
|
target_path=$3
|
||
|
|
||
18 years ago
|
datadir="tests/data"
|
||
18 years ago
|
|
||
|
logfile="$datadir/seek.regression"
|
||
|
reffile="$1"
|
||
|
|
||
17 years ago
|
list=`grep '^tests/data/[ab]-' "$reffile"`
|
||
18 years ago
|
rm -f $logfile
|
||
18 years ago
|
for i in $list ; do
|
||
18 years ago
|
echo ---------------- >> $logfile
|
||
|
echo $i >> $logfile
|
||
16 years ago
|
$target_exec $target_path/tests/seek_test $target_path/$i >> $logfile
|
||
18 years ago
|
done
|
||
|
|
||
17 years ago
|
if diff -u -w "$reffile" "$logfile" ; then
|
||
18 years ago
|
echo
|
||
17 years ago
|
echo seek regression test: success
|
||
18 years ago
|
exit 0
|
||
|
else
|
||
|
echo
|
||
17 years ago
|
echo seek regression test: error
|
||
18 years ago
|
exit 1
|
||
|
fi
|