Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
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
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
730ac180
Commit
730ac180
authored
13 years ago
by
andy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Added -root option to tutorial Alltest to initiate test from specifoed root folder
parent
a420f79b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorials/Alltest
+12
-2
12 additions, 2 deletions
tutorials/Alltest
with
12 additions
and
2 deletions
tutorials/Alltest
+
12
−
2
View file @
730ac180
...
@@ -39,6 +39,7 @@ usage()
...
@@ -39,6 +39,7 @@ usage()
usage:
${
0
##*/
}
[OPTION]
usage:
${
0
##*/
}
[OPTION]
options:
options:
-root <dir> specify root folder to run tests from
-default sets up a default scheme on all schemes
-default sets up a default scheme on all schemes
-help print the usage
-help print the usage
...
@@ -52,16 +53,22 @@ USAGE
...
@@ -52,16 +53,22 @@ USAGE
unset
DEFAULT_SCHEMES
unset
DEFAULT_SCHEMES
ROOT
=
"./"
# parse options
# parse options
while
[
"$#"
-gt
0
]
while
[
"$#"
-gt
0
]
do
do
case
"
$1
"
in
case
"
$1
"
in
-r
|
-root
)
[
"$#"
-ge
2
]
||
usage
"'
$1
' option requires an argument"
ROOT
=
"
$2
"
shift
;;
-h
|
-help
)
-h
|
-help
)
usage
usage
;;
;;
-d
|
-default
)
-d
|
-default
)
DEFAULT_SCHEMES
=
true
DEFAULT_SCHEMES
=
true
shift
;;
;;
-
*
)
-
*
)
usage
"unknown option: '
$*
'"
usage
"unknown option: '
$*
'"
...
@@ -70,6 +77,7 @@ do
...
@@ -70,6 +77,7 @@ do
break
break
;;
;;
esac
esac
shift
done
done
...
@@ -123,7 +131,7 @@ done
...
@@ -123,7 +131,7 @@ done
[
-f
"
$MAIN_CONTROL_DICT
"
]
||
usage
"main controlDict not found"
[
-f
"
$MAIN_CONTROL_DICT
"
]
||
usage
"main controlDict not found"
TUTORIALS_DIR
=
.
TUTORIALS_DIR
=
$ROOT
TEST_RUN_DIR
=
../tutorialsTest
TEST_RUN_DIR
=
../tutorialsTest
FV_SCHEMES
=
\
FV_SCHEMES
=
\
"
\
"
\
...
@@ -198,8 +206,10 @@ then
...
@@ -198,8 +206,10 @@ then
done
done
fi
fi
cp
-f
$FOAM_TUTORIALS
/Allrun
.
./Allrun
./Allrun
sed
-e
:a
-e
'/\\$/N; s/\\\n//; ta'
Allrun
>
temp
sed
-e
:a
-e
'/\\$/N; s/\\\n//; ta'
Allrun
>
temp
APPLICATIONS
=
\
APPLICATIONS
=
\
`
grep
"applications="
temp |
sed
's/applications=\"\([A-Za-z \t]*\)\"/\1/g'
`
`
grep
"applications="
temp |
sed
's/applications=\"\([A-Za-z \t]*\)\"/\1/g'
`
...
...
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