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
ac3706ff
Commit
ac3706ff
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] run all provers for smoke tests
parent
e7433ce1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/plugins/wp/ProverTask.ml
+12
-5
12 additions, 5 deletions
src/plugins/wp/ProverTask.ml
src/plugins/wp/ProverTask.mli
+1
-1
1 addition, 1 deletion
src/plugins/wp/ProverTask.mli
src/plugins/wp/prover.ml
+4
-1
4 additions, 1 deletion
src/plugins/wp/prover.ml
with
17 additions
and
7 deletions
src/plugins/wp/ProverTask.ml
+
12
−
5
View file @
ac3706ff
...
...
@@ -314,18 +314,25 @@ let schedule task =
Task
.
spawn
server
(
Task
.
thread
task
)
let
silent
_
=
()
let
spawn
?
(
monitor
=
silent
)
?
pool
~
all
let
spawn
?
(
monitor
=
silent
)
?
pool
~
all
~
smoke
(
jobs
:
(
'
a
*
bool
Task
.
task
)
list
)
=
if
jobs
<>
[]
then
begin
let
step
=
ref
0
in
let
monitored
=
ref
[]
in
let
cancel
ed
=
ref
false
in
let
finaliz
ed
=
ref
false
in
let
callback
a
r
=
if
r
then
begin
if
not
all
&&
not
!
canceled
then
begin
if
smoke
then
begin
finalized
:=
true
;
monitor
(
Some
a
)
;
end
else
if
not
all
&&
not
!
finalized
then
begin
cancel
ed
:=
true
;
finaliz
ed
:=
true
;
monitor
(
Some
a
)
;
List
.
iter
Task
.
cancel
!
monitored
;
end
...
...
@@ -333,7 +340,7 @@ let spawn ?(monitor=silent) ?pool ~all
else
begin
decr
step
;
if
not
!
cancel
ed
&&
!
step
=
0
then
if
not
!
finaliz
ed
&&
!
step
=
0
then
monitor
None
;
end
in
let
pack
(
a
,
t
)
=
Task
.
thread
(
t
>>=
Task
.
call
(
callback
a
))
in
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/ProverTask.mli
+
1
−
1
View file @
ac3706ff
...
...
@@ -85,7 +85,7 @@ val schedule : 'a Task.task -> unit
val
spawn
:
?
monitor
:
(
'
a
option
->
unit
)
->
?
pool
:
Task
.
pool
->
all
:
bool
->
all
:
bool
->
smoke
:
bool
->
(
'
a
*
bool
Task
.
task
)
list
->
unit
(** Spawn all the tasks over the server and retain the first 'validated' one.
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/prover.ml
+
4
−
1
View file @
ac3706ff
...
...
@@ -112,7 +112,8 @@ let spawn wpo ~delayed
let
process
(
mode
,
prover
)
=
prove
wpo
?
config
~
mode
?
start
?
progress
?
result
prover
in
let
all
=
Wp_parameters
.
RunAllProvers
.
get
()
in
ProverTask
.
spawn
?
monitor
?
pool
~
all
let
smoke
=
Wpo
.
is_smoke_test
wpo
in
ProverTask
.
spawn
?
monitor
?
pool
~
all
~
smoke
(
List
.
map
(
fun
mp
->
let
prover
=
snd
mp
in
...
...
@@ -124,3 +125,5 @@ let spawn wpo ~delayed
let
thread
=
Task
.
thread
process
in
let
server
=
ProverTask
.
server
()
in
Task
.
spawn
server
?
pool
thread
(* -------------------------------------------------------------------------- *)
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