2007-02-05 19:15:03 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#feel free to clean this up ive made no attempt to write this overly portable ...
|
|
|
|
|
|
|
|
datadir="./data"
|
|
|
|
|
|
|
|
logfile="$datadir/seek.regression"
|
|
|
|
reffile="$1"
|
|
|
|
|
|
|
|
list=`ls data/a-* data/b-* | sort`
|
2007-05-25 15:22:01 +02:00
|
|
|
rm -f $logfile
|
2007-02-05 19:15:03 +01:00
|
|
|
for i in $list ; do
|
|
|
|
echo ---------------- >>$logfile
|
|
|
|
echo $i >>$logfile
|
2007-04-22 20:41:11 +02:00
|
|
|
echo $i | grep -vq 'b-libav[01][0-9][.]' &&
|
2007-02-05 19:15:03 +01:00
|
|
|
./seek_test $i >> $logfile
|
|
|
|
done
|
|
|
|
|
2007-05-02 14:03:34 +02:00
|
|
|
if diff -u "$reffile" "$logfile" ; then
|
2007-02-05 19:15:03 +01:00
|
|
|
echo
|
|
|
|
echo Regression test succeeded.
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo
|
|
|
|
echo Regression test: Error.
|
|
|
|
exit 1
|
|
|
|
fi
|