#!/bin/sh
# $Id: runtests,v 1.5 2003/12/09 21:43:32 ianb Exp $

echo Fixing links/permissions...
./fixtests
echo Running tests...
MP3LINTRC=./testrc ../bin/mp3lint  -i . | grep -v '/CVS' |grep -v '/fix/' > test.out

echo Comparing with expected results:
diff -u0 validresults.txt test.out

if [ $? -eq 0 ]
then
	echo Tests passed
	exitval=0
else
	echo Tests failed
	exitval=1
fi

rm -f  test.out

exit $exitval


