Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
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
Show more breadcrumbs
pub
frama-c
Commits
62c1ed61
Commit
62c1ed61
authored
2 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[tests] adds option -n <alias-name> to bin/test.sh
parent
2c6c42fe
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
bin/test.sh
+9
-3
9 additions, 3 deletions
bin/test.sh
with
9 additions
and
3 deletions
bin/test.sh
+
9
−
3
View file @
62c1ed61
...
@@ -32,6 +32,7 @@ SAVE=
...
@@ -32,6 +32,7 @@ SAVE=
DUNE_ALIAS
=
DUNE_ALIAS
=
DUNE_OPT
=
DUNE_OPT
=
DUNE_LOG
=
./.test-errors.log
DUNE_LOG
=
./.test-errors.log
ALIAS_NAME
=
ptests
CACHEDIR
=
$(
pwd
-P
)
/.wp-cache
CACHEDIR
=
$(
pwd
-P
)
/.wp-cache
FRAMAC_WP_CACHE_GIT
=
git@git.frama-c.com:frama-c/wp-cache.git
FRAMAC_WP_CACHE_GIT
=
git@git.frama-c.com:frama-c/wp-cache.git
...
@@ -61,6 +62,7 @@ function Usage
...
@@ -61,6 +62,7 @@ function Usage
echo
""
echo
""
echo
"OPTIONS"
echo
"OPTIONS"
echo
""
echo
""
echo
" -n|--name <alias> set dune alias name (default to ptests)"
echo
" -r|--clean clean (remove all) test results (includes -p)"
echo
" -r|--clean clean (remove all) test results (includes -p)"
echo
" -p|--ptests prepare (all) dune files"
echo
" -p|--ptests prepare (all) dune files"
echo
" -w|--wp-cache prepare (pull) WP-cache"
echo
" -w|--wp-cache prepare (pull) WP-cache"
...
@@ -206,15 +208,15 @@ function TestDir
...
@@ -206,15 +208,15 @@ function TestDir
CloneCache
CloneCache
case
"
$CONFIG
"
in
case
"
$CONFIG
"
in
"<all>"
)
"<all>"
)
ALIAS
=
$1
/
ptests
ALIAS
=
$1
/
${
ALIAS_NAME
}
CFG
=
"(all configs)"
CFG
=
"(all configs)"
;;
;;
"<default>"
)
"<default>"
)
ALIAS
=
$1
/
ptests
_config
ALIAS
=
$1
/
${
ALIAS_NAME
}
_config
CFG
=
"(default config)"
CFG
=
"(default config)"
;;
;;
*
)
*
)
ALIAS
=
$1
/
ptests
_config_
$CONFIG
ALIAS
=
$1
/
${
ALIAS_NAME
}
_config_
$CONFIG
CFG
=
"(config
$CONFIG
)"
CFG
=
"(config
$CONFIG
)"
;;
;;
esac
esac
...
@@ -355,6 +357,10 @@ do
...
@@ -355,6 +357,10 @@ do
CONFIG
=
$2
CONFIG
=
$2
shift
shift
;;
;;
"-n"
|
"--name"
)
ALIAS_NAME
=
$2
shift
;;
"-a"
|
"--all"
)
"-a"
|
"--all"
)
TESTS
=
""
TESTS
=
""
for
dir
in
$TEST_DIRS
;
do
for
dir
in
$TEST_DIRS
;
do
...
...
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