TUT: skip some tutorials when dynamicCode is not available

- silence failed restoration of controlDict from controlDict.orig
  (idempotent?)
This commit is contained in:
Mark Olesen
2020-08-06 18:25:56 +02:00
parent 9ef144118d
commit 44052de594
24 changed files with 77 additions and 5 deletions

View File

@ -23,6 +23,10 @@ foamDictionary -help > /dev/null 2>&1 || {
}
# Some tests may need #calc
unset noDynamicCode
canCompile || noDynamicCode=true
for dict in \
good*.dict \
warn*.dict \
@ -31,6 +35,11 @@ for dict in \
do
[ -f "$dict" ] || continue # protect against bad globs
if [ "$noDynamicCode" = true ] && grep -q '#calc' "$dict"
then
continue
fi
# capture stderr, ignore stdout
stderr=$(foamDictionary -keywords $dict 2>&1 >/dev/null)
exitCode=$?