diff --git a/tutorials/Allclean b/tutorials/Allclean index dc5e15eb376bd223c8bf01e53b694feb1b0b4f5c..40e6631bd39c501e4b1456b1fa64ace283e335d1 100755 --- a/tutorials/Allclean +++ b/tutorials/Allclean @@ -1,18 +1,11 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/LogFunctions # Tutorial log-file functions echo "--------" -echo "Cleaning tutorials ..." -echo "Removing backup files" - -find . \( \ - -name '*~' -o -name '*.bak' \ - -name core -o -name 'core.[1-9]*' \ - -name '*.pvs' -o -name '*.OpenFOAM' -name '*.foam' \ - \) -type f -delete - -rm -f logs testLoopReport > /dev/null 2>&1 +removeLogs +echo "Cleaning tutorials" foamCleanTutorials cases echo "--------" diff --git a/tutorials/Allrun b/tutorials/Allrun index e5e15b2993f2342f7c9f3bf55b255209ede6669c..4e923da6123d541f1c96095c8a1570a9bd647932 100755 --- a/tutorials/Allrun +++ b/tutorials/Allrun @@ -1,15 +1,77 @@ #!/bin/sh +#------------------------------------------------------------------------------ +# ========= | +# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox +# \\ / O peration | +# \\ / A nd | Copyright (C) 2017 OpenCFD Ltd. +# \\/ M anipulation | +#------------------------------------------------------------------------------ +# License +# This file is part of OpenFOAM, licensed under GNU General Public License +# . +# +# Script +# Allrun +# +# Description +# Run tutorial cases and summarize the outcome as 'testLoopReport' +# +#------------------------------------------------------------------------------ cd ${0%/*} || exit 1 # Run from this directory +usage() +{ + exec 1>&2 + while [ "$#" -ge 1 ]; do echo "$1"; shift; done + cat<