2007-02-05 19:15:03 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-07-10 22:49:05 +02:00
|
|
|
LC_ALL=C
|
|
|
|
export LC_ALL
|
|
|
|
|
2007-06-08 00:36:39 +02:00
|
|
|
datadir="tests/data"
|
2007-02-05 19:15:03 +01:00
|
|
|
|
|
|
|
logfile="$datadir/seek.regression"
|
|
|
|
reffile="$1"
|
|
|
|
|
2007-06-08 00:36:39 +02:00
|
|
|
list=`ls tests/data/a-* tests/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
|
2007-05-25 15:28:34 +02:00
|
|
|
echo ---------------- >> $logfile
|
|
|
|
echo $i >> $logfile
|
2007-05-25 15:27:08 +02:00
|
|
|
echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null &&
|
2007-06-08 00:36:39 +02:00
|
|
|
tests/seek_test $i >> $logfile
|
2007-02-05 19:15:03 +01:00
|
|
|
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
|