Added the possibility for filtering of the error files associated with

the tests run through test.sh.
This commit is contained in:
kolev 2007-11-28 22:31:38 +00:00
parent afa1afb4c0
commit e4e15996ff
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,2 @@
configure: WARNING: Disabling F90 Support
configure: WARNING: Configuration for Python failed. Support for Python disabled!

5
AUTOTEST/make.filters Normal file
View File

@ -0,0 +1,5 @@
autoconf has been disabled
automake has been disabled
configure: WARNING: Disabling F90 Support
configure: WARNING: Configuration for Python failed.
warning: warning: feupdateenv is not implemented and will always fail

View File

@ -65,7 +65,19 @@ EOF
esac
done
# Run the test and capture stdout, stderr
testname=`basename $1 .sh`
shift
echo "Running test [$testname]"
./$testname.sh $@ 1>"$testname.out" 2>"$testname.err"
# Filter misleading error messages
if [ -e $testname.filters ]; then
if (egrep -f $testname.filters $testname.err > /dev/null) ; then
echo "This file contains the original copy of $testname.err before filtering" > $testname.fil
cat $testname.err >> $testname.fil
mv $testname.err $testname.tmp
egrep -v -f $testname.filters $testname.tmp > $testname.err
rm -f $testname.tmp
fi
fi