Added the possibility for filtering of the error files associated with
the tests run through test.sh.
This commit is contained in:
parent
afa1afb4c0
commit
e4e15996ff
2
AUTOTEST/configure.filters
Normal file
2
AUTOTEST/configure.filters
Normal 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
5
AUTOTEST/make.filters
Normal 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
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user