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:
7
tutorials/IO/dictionary/Allclean
Executable file
7
tutorials/IO/dictionary/Allclean
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# No application, so need to clean manually
|
||||||
|
rm log.*
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -2,6 +2,6 @@
|
|||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
||||||
|
|
||||||
runApplication ./TestParsing "$@"
|
runApplication ./TestParsing -verbose "$@"
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
7
tutorials/IO/dictionary/Alltest
Executable file
7
tutorials/IO/dictionary/Alltest
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
||||||
|
|
||||||
|
runApplication ./TestParsing "$@"
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -4,24 +4,24 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
|
|
||||||
echo "dictionary input tests"
|
echo "dictionary input tests"
|
||||||
|
|
||||||
verbose=true
|
verbose=false
|
||||||
npass=0
|
npass=0
|
||||||
nwarn=0
|
nwarn=0
|
||||||
nfail=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 || {
|
foamDictionary -help > /dev/null 2>&1 || {
|
||||||
echo "Error: non-functional foamDictionary"
|
echo "Error: non-functional foamDictionary"
|
||||||
exit 2
|
exit 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Reduced verbosity in test mode?
|
|
||||||
if isTest "$@"
|
|
||||||
then
|
|
||||||
verbose=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
for dict in \
|
for dict in \
|
||||||
good*.dict \
|
good*.dict \
|
||||||
warn*.dict \
|
warn*.dict \
|
||||||
@ -104,6 +104,7 @@ then
|
|||||||
echo End
|
echo End
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
|
echo "Found $nfail FatalErrors"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user