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
d13dca80
Commit
d13dca80
authored
5 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] cache update manual
parent
ca3be03a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/wp/Makefile.in
+1
-0
1 addition, 0 deletions
src/plugins/wp/Makefile.in
src/plugins/wp/tests/README.md
+16
-9
16 additions, 9 deletions
src/plugins/wp/tests/README.md
with
17 additions
and
9 deletions
src/plugins/wp/Makefile.in
+
1
−
0
View file @
d13dca80
...
@@ -188,6 +188,7 @@ wp-qualif-push:
...
@@ -188,6 +188,7 @@ wp-qualif-push:
git
-C
$(
WP_CACHE_DIR
)
push
-f
git
-C
$(
WP_CACHE_DIR
)
push
-f
wp-qualif-cleanup
:
wp-qualif-update
wp-qualif-cleanup
:
wp-qualif-update
find
$(
WP_CACHE_DIR
)
-atime
2h
-delete
$(WP_CACHE_DIR)
:
$(WP_CACHE_DIR)
:
git clone
"git@git.frama-c.com:frama-c/wp-cache.git"
$(
WP_CACHE_DIR
)
git clone
"git@git.frama-c.com:frama-c/wp-cache.git"
$(
WP_CACHE_DIR
)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/tests/README.md
+
16
−
9
View file @
d13dca80
...
@@ -21,22 +21,29 @@ git add tests/wp_gallery/oracle/find.*
...
@@ -21,22 +21,29 @@ git add tests/wp_gallery/oracle/find.*
## Update oracle for 'qualif' configuration (if there is such)
## Update oracle for 'qualif' configuration (if there is such)
1.
generate oracle files and updated cache files
1.
update the cache
```
git -C src/plugins/wp/cache pull --rebase --prune
```
2.
generate oracle files and updated cache files
```
```
FRAMAC_WP_CACHE=update ptests.opt -config qualif tests/wp_gallery/find.i -show
FRAMAC_WP_CACHE=update ptests.opt -config qualif tests/wp_gallery/find.i -show
ptests.opt -config qualif tests/wp_gallery/find.i -update
ptests.opt -config qualif tests/wp_gallery/find.i -update
```
```
Note: cleaning the cache is _not_ recommanded when updating or modifying an
3.
publish the new cache
existing test; actually it might introduce git merge conflicts that are
annoying to resolve. But the cleaning can be usefull when adding a new test.
It can be done using the command (before those of the step 1):
```
```
rm -rf tests/wp_gallery/oracle_qualif/find.[0-9]*.session/cache/
git -C src/plugins/wp/cache add -A
git -C src/plugins/wp/cache commit -m "[wp] cache updates"
git -C src/plugins/wp/cache push -f
```
```
2.
check again (for a final validation) before adding the oracle and cache files
## Using Makefile
```
```
ptests.opt -config qualif tests/wp_gallery/find.i
make wp-qualif # Run qualif tests (clone cache if necessary)
git add tests/wp_gallery/oracle_qualif/find.*
make wp-qualif-update # Run with cache updates (git access)
make wp-qualif-push # Push cache updates (git access)
make wp-qualif-cleanup # Remove old cache entries (no access since 2h)
```
```
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