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
aade3a7f
Commit
aade3a7f
authored
5 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[wp/tests] how to add a test
parent
6e692507
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/tests/README.md
+42
-0
42 additions, 0 deletions
src/plugins/wp/tests/README.md
src/plugins/wp/tests/wp_gallery/oracle_qualif/find.res.oracle
+12
-16
12 additions, 16 deletions
...plugins/wp/tests/wp_gallery/oracle_qualif/find.res.oracle
with
54 additions
and
16 deletions
src/plugins/wp/tests/README.md
0 → 100644
+
42
−
0
View file @
aade3a7f
# How to add a new test
```
cd src/plugins/wp
git add tests/wp_gallery/find.i
```
## Update oracle for default configuration
1.
generate oracle files
```
ptests.opt tests/wp_gallery/find.i -show
ptests.opt tests/wp_gallery/find.i -update
```
2.
check again (for a final validation) before adding the oracle files
```
ptests.opt tests/wp_gallery/find.i
git add tests/wp_gallery/oracle/find.*
```
## Update oracle for 'qualif' configuration (if there is such)
1.
generate oracle files and updated cache files
```
FRAMAC_WP_CACHE=update ptests.opt -config qualif tests/wp_gallery/find.i -show
ptests.opt -config qualif tests/wp_gallery/find.i -update
```
Note: cleaning the cache is _not_ recommanded when updating or modifying an
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/
```
2.
check again (for a final validation) before adding the oracle and cache files
```
ptests.opt -config qualif tests/wp_gallery/find.i
git add tests/wp_gallery/oracle_qualif/find.*
```
This diff is collapsed.
Click to expand it.
src/plugins/wp/tests/wp_gallery/oracle_qualif/find.res.oracle
+
12
−
16
View file @
aade3a7f
...
@@ -48,14 +48,12 @@
...
@@ -48,14 +48,12 @@
[wp] Proved goals: 41 / 41
[wp] Proved goals: 41 / 41
Qed: 15
Qed: 15
Alt-Ergo 2.0.0: 26
Alt-Ergo 2.0.0: 26
[wp] Report in: 'tests/wp_gallery/oracle_qualif/find.0.report.json'
------------------------------------------------------------
[wp] Report out: 'tests/wp_gallery/result_qualif/find.0.report.json'
Functions WP Alt-Ergo Total Success
-------------------------------------------------------------
find 7 9 16 100%
Functions WP Alt-Ergo Total Success
find_ptr 6 11 17 100%
find 7 9 (56..80) 16 100%
iter_ptr 2 6 8 100%
find_ptr 6 11 (192..240) 17 100%
------------------------------------------------------------
iter_ptr 2 6 (72..96) 8 100%
-------------------------------------------------------------
[wp] Running WP plugin...
[wp] Running WP plugin...
[rte] annotating function find
[rte] annotating function find
[rte] annotating function find_ptr
[rte] annotating function find_ptr
...
@@ -108,11 +106,9 @@ iter_ptr 2 6 (72..96) 8 100%
...
@@ -108,11 +106,9 @@ iter_ptr 2 6 (72..96) 8 100%
[wp] Proved goals: 29 / 44
[wp] Proved goals: 29 / 44
Qed: 0
Qed: 0
Alt-Ergo 2.0.0: 29
Alt-Ergo 2.0.0: 29
[wp] Report in: 'tests/wp_gallery/oracle_qualif/find.0.report.json'
------------------------------------------------------------
[wp] Report out: 'tests/wp_gallery/result_qualif/find.0.report.json'
Functions WP Alt-Ergo Total Success
-------------------------------------------------------------
find 7 11 18 100%
Functions WP Alt-Ergo Total Success
find_ptr 6 12 18 100%
find 7 11 (56..80) 18 100%
iter_ptr 2 6 8 100%
find_ptr 6 12 (192..240) 18 100%
------------------------------------------------------------
iter_ptr 2 6 (72..96) 8 100%
-------------------------------------------------------------
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