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
8c5ef850
Commit
8c5ef850
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] make wp-qualif-env
parent
f7a74ede
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/wp/Makefile.in
+4
-0
4 additions, 0 deletions
src/plugins/wp/Makefile.in
src/plugins/wp/tests/README.md
+9
-2
9 additions, 2 deletions
src/plugins/wp/tests/README.md
with
13 additions
and
2 deletions
src/plugins/wp/Makefile.in
+
4
−
0
View file @
8c5ef850
...
...
@@ -174,6 +174,10 @@ wp-qualif: ./bin/toplevel.opt ./bin/ptests.opt $(WP_QUALIF_CACHE)
FRAMAC_WP_CACHEDIR
=
$(
WP_QUALIF_CACHE
)
\
./bin/ptests.opt src/plugins/wp/tests
-config
qualif
-error-code
wp-qualif-env
:
echo
"FRAMAC_WP_CACHE=update"
echo
"FRAMAC_WP_CACHEDIR=
$(
WP_QUALIF_CACHE
)
"
wp-qualif-update
:
./bin/toplevel.opt ./bin/ptests.opt $(WP_QUALIF_CACHE)
@
echo
"[CACHE] pull cache"
@
echo
"[CACHE]
$(
WP_QUALIF_CACHE
)
"
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/tests/README.md
+
9
−
2
View file @
8c5ef850
...
...
@@ -41,6 +41,7 @@ The WP makefile provides several targets to automate cache management. It is hig
recommanded to use them most of the time:
-
`make wp-qualif`
re-runs qualif tests; no new cache entry is created, though.
-
`make wp-qualif-env`
prints the environment variables for wp-qualif.
-
`make wp-qualif-update`
re-runs and create missing cache entries.
-
`make wp-qualif-upgrade`
creates missing cache entries _and_ update tests scripts is necessary.
-
`make wp-qualif-push`
commits and pushes all new cache entries to the GitLab repository.
...
...
@@ -51,7 +52,7 @@ commands in a _local_ shell:
$ export FRAMAC_WP_CACHE=update
$ export FRAMAC_WP_CACHEDIR=<path-to-wp-cache>
$ ./bin/ptests.opt src/plugins/wp/tests/xxx/yyy.i [-show|-update]
$ ./bin/ptests.opt src/plugins/wp/tests/xxx/yyy.i
-config qualif
[-show|-update]
It is _highly_ recommanded to _not_ set the
`FRAMAC_WP_xxx`
variables globally;
doing so would causing WP to add new cache entries to the global « qualif » cache
...
...
@@ -83,7 +84,13 @@ environment. To run individual tests, you may now use:
$ export FRAMAC_WP_CACHE=update
$ export FRAMAC_WP_CACHEDIR=$WP_QUALIF_CACHE
$ ./bin/ptests.opt src/plugins/wp/tests/xxx/yyy.i [-show|-update]
$ ./bin/ptests.opt src/plugins/wp/tests/xxx/yyy.i -config qualif [-show|-update]
The necessary environment variables can also be displayed by the makefile:
$ make wp-qualif-env
FRAMAC_WP_CACHE=update
FRAMAC_WP_CACHEDIR=$WP_QUALIF_CACHE
As mentionned above, it is _not_ recommanded to globally set the
`FRAMAC_WP_XXX`
variables in your default shell environment, because WP will
...
...
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