2007-02-05 20:15:03 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-07-10 23:49:05 +03:00
|
|
|
LC_ALL=C
|
|
|
|
export LC_ALL
|
|
|
|
|
2008-11-23 14:36:44 +02:00
|
|
|
target_exec=$2
|
|
|
|
target_path=$3
|
|
|
|
|
2007-06-08 01:36:39 +03:00
|
|
|
datadir="tests/data"
|
2007-02-05 20:15:03 +02:00
|
|
|
|
|
|
|
logfile="$datadir/seek.regression"
|
|
|
|
reffile="$1"
|
|
|
|
|
2008-02-03 21:26:22 +02:00
|
|
|
list=`grep '^tests/data/[ab]-' "$reffile"`
|
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
|
2008-11-23 14:36:44 +02:00
|
|
|
$target_exec $target_path/tests/seek_test $target_path/$i >> $logfile
|
2007-02-05 20:15:03 +02:00
|
|
|
done
|
|
|
|
|
2008-05-01 23:04:08 +03:00
|
|
|
if diff -u -w "$reffile" "$logfile" ; then
|
2007-02-05 20:15:03 +02:00
|
|
|
echo
|
2008-01-30 01:30:00 +02:00
|
|
|
echo seek regression test: success
|
2007-02-05 20:15:03 +02:00
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo
|
2008-01-30 01:30:00 +02:00
|
|
|
echo seek regression test: error
|
2007-02-05 20:15:03 +02:00
|
|
|
exit 1
|
|
|
|
fi
|