2007-02-05 20:15:03 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
datadir="./data"
|
|
|
|
|
|
|
|
logfile="$datadir/seek.regression"
|
|
|
|
reffile="$1"
|
|
|
|
|
|
|
|
list=`ls data/a-* data/b-* | sort`
|
2007-05-25 16:22:01 +03:00
|
|
|
rm -f $logfile
|
2007-02-05 20:15:03 +02:00
|
|
|
for i in $list ; do
|
2007-05-25 16:28:34 +03:00
|
|
|
echo ---------------- >> $logfile
|
|
|
|
echo $i >> $logfile
|
2007-05-25 16:27:08 +03:00
|
|
|
echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null &&
|
2007-02-05 20:15:03 +02:00
|
|
|
./seek_test $i >> $logfile
|
|
|
|
done
|
|
|
|
|
2007-05-02 15:03:34 +03:00
|
|
|
if diff -u "$reffile" "$logfile" ; then
|
2007-02-05 20:15:03 +02:00
|
|
|
echo
|
|
|
|
echo Regression test succeeded.
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo
|
|
|
|
echo Regression test: Error.
|
|
|
|
exit 1
|
|
|
|
fi
|