Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenFOAM-plus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Development
OpenFOAM-plus
Commits
847adca6
Commit
847adca6
authored
7 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Allrun: run in non-test mode. Handle ./Alltest correctly
parent
e6ac4035
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bin/foamRunTutorials
+8
-3
8 additions, 3 deletions
bin/foamRunTutorials
tutorials/Allrun
+1
-1
1 addition, 1 deletion
tutorials/Allrun
tutorials/Alltest
+1
-1
1 addition, 1 deletion
tutorials/Alltest
tutorials/IO/fileHandler/Alltest
+16
-0
16 additions, 0 deletions
tutorials/IO/fileHandler/Alltest
with
26 additions
and
5 deletions
bin/foamRunTutorials
+
8
−
3
View file @
847adca6
...
...
@@ -51,6 +51,7 @@ do
case
"
$1
"
in
-t
|
-test
)
passArgs
=
"-test"
runTests
=
true
shift
;;
-s
|
-skipFirst
)
...
...
@@ -64,10 +65,14 @@ do
done
# If an argument is supplied do not execute ./Allrun to avoid recursion
if
!
$skipFirst
&&
[
-f
"./Allrun"
]
if
!
$skipFirst
&&
$runTests
&&
[
-f
"./Alltest"
]
then
# Run speciallised Alltest script.
./Alltest
$passArgs
$*
elif
!
$skipFirst
&&
[
-f
"./Allrun"
]
then
# Run specialised Allrun script.
./Allrun
$passArgs
./Allrun
$passArgs
$*
elif
[
-d
system
]
then
# Run normal case.
...
...
@@ -89,7 +94,7 @@ else
# Run all cases which have not already been run
$make
-k
-f
$WM_PROJECT_DIR
/bin/tools/MakefileDirs
\
FOAM_TARGETS
=
"
$FOAM_TARGETS
"
\
FOAM_APP
=
"
$thisScript
"
FOAM_ARGS
=
"
$passArgs
"
FOAM_APP
=
"
$thisScript
"
FOAM_ARGS
=
"
$passArgs
$*
"
fi
#------------------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
tutorials/Allrun
+
1
−
1
View file @
847adca6
...
...
@@ -124,7 +124,7 @@ logReport()
if
[
-z
"
$optCollectOnly
"
]
then
# Recursively run all tutorials
foamRunTutorials
-test
-skipFirst
foamRunTutorials
-skipFirst
$*
fi
...
...
This diff is collapsed.
Click to expand it.
tutorials/Alltest
+
1
−
1
View file @
847adca6
...
...
@@ -244,7 +244,7 @@ fi
cp
-f
$FOAM_TUTORIALS
/Allrun
.
./Allrun
./Allrun
-test
sed
-e
:a
-e
'/\\$/N; s/\\\n//; ta'
Allrun
>
temp
APPLICATIONS
=
\
...
...
This diff is collapsed.
Click to expand it.
tutorials/IO/fileHandler/Alltest
0 → 100755
+
16
−
0
View file @
847adca6
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
# Source tutorial run functions
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Reset the controlDict
if
[
-f
system/controlDict.orig
]
then
echo
"
$0
: restoring the controlDict from controlDict.orig"
mv
system/controlDict.orig system/controlDict
fi
./Allrun
#------------------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment