ENH: foamRunTutorials -dry-run option

- for tracing tutorials execution
This commit is contained in:
Mark Olesen
2022-06-14 12:38:33 +02:00
parent 601f541091
commit 96ece1ef35
3 changed files with 46 additions and 13 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/LogFunctions # Tutorial log-file functions
. "${WM_PROJECT_DIR:?}"/bin/tools/LogFunctions # Tutorial log-file functions
#------------------------------------------------------------------------------
echo "--------"
@ -10,7 +10,7 @@ buildDir="${WM_PROJECT_DIR}/build/${WM_OPTIONS}/${PWD##*/}"
if [ -d "$buildDir" ]
then
echo "Removing old build directory: $buildDir" 1>&2
rm -rf $buildDir
rm -rf -- "$buildDir"
fi
removeLogs

View File

@ -1,6 +1,6 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/LogFunctions # Tutorial log-file functions
. "${WM_PROJECT_DIR:?}"/bin/tools/LogFunctions # Tutorial log-file functions
#------------------------------------------------------------------------------
# Collect log files as 'testLoopReport'