mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: add Alltest for IO/dictionary
- runs in non-verbose mode to avoid spurious detection of FatalError
This commit is contained in:
@ -4,24 +4,24 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
echo "dictionary input tests"
|
||||
|
||||
verbose=true
|
||||
verbose=false
|
||||
npass=0
|
||||
nwarn=0
|
||||
nfail=0
|
||||
|
||||
# Increase verbosity on demand, with the -verbose flag
|
||||
for i in "$@"
|
||||
do
|
||||
case "$i" in (-verbose*) verbose=true ;; esac
|
||||
done
|
||||
|
||||
|
||||
foamDictionary -help > /dev/null 2>&1 || {
|
||||
echo "Error: non-functional foamDictionary"
|
||||
exit 2
|
||||
}
|
||||
|
||||
|
||||
# Reduced verbosity in test mode?
|
||||
if isTest "$@"
|
||||
then
|
||||
verbose=false
|
||||
fi
|
||||
|
||||
|
||||
for dict in \
|
||||
good*.dict \
|
||||
warn*.dict \
|
||||
@ -104,6 +104,7 @@ then
|
||||
echo End
|
||||
echo
|
||||
else
|
||||
echo "Found $nfail FatalErrors"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user