Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sasa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
verimag
synchrone
sasa
Commits
c35cfd78
Commit
c35cfd78
authored
6 years ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
Test: factorize code in rdbg-session.ml
parent
474da75a
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
test/dfs/rdbg-session.ml
+11
-38
11 additions, 38 deletions
test/dfs/rdbg-session.ml
test/my-rdbg-tuning.ml
+47
-0
47 additions, 0 deletions
test/my-rdbg-tuning.ml
with
58 additions
and
38 deletions
test/dfs/rdbg-session.ml
+
11
−
38
View file @
c35cfd78
...
...
@@ -14,11 +14,11 @@ open Data;;
#
require
"lutin"
;;
let
plugin_0
=
let
args
=
[
"lutin"
;
"g.lut"
;
"-n"
;
"
synchronous
"
]
in
let
args
=
[
"lutin"
;
"g.lut"
;
"-n"
;
"
distributed
"
]
in
let
aargs
=
Array
.
of_list
args
in
let
plugin
=
LutinRun
.
make
aargs
in
let
skip_dbg
sl
e
cont
=
cont
(
plugin
.
step
sl
)
e
in
{
plugin
with
step_dbg
=
skip_dbg
}
{
plugin
with
step_dbg
=
skip_dbg
}
;;
let
plugin_1
=
...
...
@@ -30,46 +30,19 @@ let _ = args.envs <- [Ocaml(plugin_1)];;
let
_
=
args
.
oracles
<-
[]
;;
let
_
=
args
.
display_gnuplot
<-
false
;
args
.
display_sim2chro
<-
false
;
args
.
rdbg
<-
true
;
args
.
step_nb
<-
1000
;
args
.
output
<-
"g.rif"
;
args
.
cov_file
<-
"lurette.cov"
;
args
.
stop_on_oracle_error
<-
true
;
args
.
debug_rdbg
<-
false
;;
args
.
display_gnuplot
<-
false
;
args
.
display_sim2chro
<-
false
;
args
.
rdbg
<-
true
;
args
.
step_nb
<-
1000
;
args
.
output
<-
"g.rif"
;
args
.
cov_file
<-
"lurette.cov"
;
args
.
stop_on_oracle_error
<-
true
;
args
.
debug_rdbg
<-
false
;;
#
use
"my-rdbg-tuning.ml"
;;
let
_
=
print_string
"
--> type 'man' for online help
"
;;
(**********************************************************************)
#
require
"ocamlgraph"
;;
#
mod_use
"../../lib/algo/algo.ml"
;;
#
mod_use
"../../lib/sasacore/topology.ml"
;;
#
use
"../rdbg-utils/dot.ml"
;;
let
dotfile
=
"g.dot"
;;
let
p
=
Topology
.
read
dotfile
;;
let
d
()
=
dot
p
dotfile
!
e
;;
let
ne
()
=
neato
p
dotfile
!
e
;;
let
tw
()
=
twopi
p
dotfile
!
e
;;
let
ci
()
=
circo
p
dotfile
!
e
;;
let
fd
()
=
fdp
p
dotfile
!
e
;;
let
sf
()
=
sfdp
p
dotfile
!
e
;;
let
pa
()
=
patchwork
p
dotfile
!
e
;;
let
os
()
=
osage
p
dotfile
!
e
;;
#
use
"../my-rdbg-tuning.ml"
;;
let
sd
()
=
s
()
;
d
()
;;
let
nr
()
=
e
:=
next_round
p
.
nodes
dotfile
!
e
;
osage
p
dotfile
!
e
;;
let
_
=
n
()
;
d
()
;
ignore
(
Sys
.
command
(
"zathura sasa-g.dot.pdf&"
))
(* Convergence is reached when data does not change *)
let
rec
go
()
=
let
data
=
!
e
.
data
in
s
()
;
if
data
=
!
e
.
data
then
ci
()
else
go
()
;;
This diff is collapsed.
Click to expand it.
test/my-rdbg-tuning.ml
0 → 100644
+
47
−
0
View file @
c35cfd78
let
_
=
time_travel
true
;;
let
e
=
ref
(
RdbgStdLib
.
run
()
);;
let
s
()
=
e
:=
step
!
e
;;
let
si
i
=
e
:=
stepi
!
e
i
;;
let
n
()
=
e
:=
next
!
e
;;
let
ni
i
=
e
:=
nexti
!
e
i
;;
let
g
i
=
e
:=
goto
!
e
i
;;
let
b
()
=
e
:=
back
!
e
;;
let
bi
i
=
e
:=
backi
!
e
i
;;
let
r
()
=
e
:=
RdbgStdLib
.
run
()
;;
let
c
()
=
e
:=
continue
!
e
;;
let
bt
()
=
print_src
!
e
;;
let
finish
()
=
loopforever
!
e
;;
(**********************************************************************)
#
require
"ocamlgraph"
;;
#
mod_use
"../../lib/algo/algo.ml"
;;
#
mod_use
"../../lib/sasacore/topology.ml"
;;
#
use
"../rdbg-utils/dot.ml"
;;
let
p
=
Topology
.
read
dotfile
;;
let
d
()
=
dot
p
dotfile
!
e
;;
let
ne
()
=
neato
p
dotfile
!
e
;;
let
tw
()
=
twopi
p
dotfile
!
e
;;
let
ci
()
=
circo
p
dotfile
!
e
;;
let
fd
()
=
fdp
p
dotfile
!
e
;;
let
sf
()
=
sfdp
p
dotfile
!
e
;;
let
pa
()
=
patchwork
p
dotfile
!
e
;;
let
os
()
=
osage
p
dotfile
!
e
;;
(* Convergence is reached when data does not change *)
let
rec
go
()
=
let
data
=
!
e
.
data
in
s
()
;
if
data
=
!
e
.
data
then
ci
()
else
go
()
;;
let
sd
()
=
s
()
;
d
()
;;
let
nr
()
=
e
:=
next_round
p
.
nodes
dotfile
!
e
;
circo
p
dotfile
!
e
;;
let
_
=
print_string
"
--> type 'man' for online help
"
;;
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