2007-02-05 18:15:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-07-10 20:49:05 +00:00
|
|
|
LC_ALL=C
|
|
|
|
export LC_ALL
|
|
|
|
|
2007-06-07 22:36:39 +00:00
|
|
|
datadir="tests/data"
|
2007-02-05 18:15:03 +00:00
|
|
|
|
|
|
|
logfile="$datadir/seek.regression"
|
|
|
|
reffile="$1"
|
|
|
|
|
2008-02-03 19:26:22 +00:00
|
|
|
list=`grep '^tests/data/[ab]-' "$reffile"`
|
2007-05-25 13:22:01 +00:00
|
|
|
rm -f $logfile
|
2007-02-05 18:15:03 +00:00
|
|
|
for i in $list ; do
|
2007-05-25 13:28:34 +00:00
|
|
|
echo ---------------- >> $logfile
|
|
|
|
echo $i >> $logfile
|
2007-06-07 22:36:39 +00:00
|
|
|
tests/seek_test $i >> $logfile
|
2007-02-05 18:15:03 +00:00
|
|
|
done
|
|
|
|
|
2008-05-01 20:04:08 +00:00
|
|
|
if diff -u -w "$reffile" "$logfile" ; then
|
2007-02-05 18:15:03 +00:00
|
|
|
echo
|
2008-01-29 23:30:00 +00:00
|
|
|
echo seek regression test: success
|
2007-02-05 18:15:03 +00:00
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo
|
2008-01-29 23:30:00 +00:00
|
|
|
echo seek regression test: error
|
2007-02-05 18:15:03 +00:00
|
|
|
exit 1
|
|
|
|
fi
|