#!/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`
rm -f $logfile
for i in $list ; do
    echo ---------------- >> $logfile
    echo $i >> $logfile
    echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null &&
    ./seek_test $i >> $logfile
done

if diff -u "$reffile" "$logfile" ; then
    echo
    echo Regression test succeeded.
    exit 0
else
    echo
    echo Regression test: Error.
    exit 1
fi

#!/bin/sh

datadir="./data"

logfile="$datadir/seek.regression"
reffile="$1"

list=`ls data/a-* data/b-* | sort`
rm -f $logfile
for i in $list ; do
    echo ---------------- >> $logfile
    echo $i >> $logfile
    echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null &&
    ./seek_test $i >> $logfile
done

if diff -u "$reffile" "$logfile" ; then
    echo
    echo Regression test succeeded.
    exit 0
else
    echo
    echo Regression test: Error.
    exit 1
fi

Remove portability comment, it should be pure POSIX now.
Remove portability comment, it should be pure POSIX now.


git-svn-id: a4d7c1866f8397a4106e0b57fc4fbf792bbdaaaf@9130 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
