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
3b40afa0
Commit
3b40afa0
authored
1 year ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
test: add the ring-orientation in the test suite
nb : it currently fails as the legitimate predicate is wrong.
parent
a38d4757
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/Makefile
+3
-0
3 additions, 0 deletions
test/Makefile
test/ring-orientation/Makefile
+12
-6
12 additions, 6 deletions
test/ring-orientation/Makefile
test/ring-orientation/ring_orientation_oracle.lus
+26
-0
26 additions, 0 deletions
test/ring-orientation/ring_orientation_oracle.lus
with
41 additions
and
6 deletions
test/Makefile
+
3
−
0
View file @
3b40afa0
...
@@ -20,6 +20,7 @@ test:
...
@@ -20,6 +20,7 @@ test:
cd
k-clustering/
&&
make
test
cd
k-clustering/
&&
make
test
cd
ghosh/
&&
make
test
cd
ghosh/
&&
make
test
cd
wolfram-cellular-automaton/
&&
make
test
cd
wolfram-cellular-automaton/
&&
make
test
cd
ring-orientation/
&&
make
test
echo
"Every test went fine!"
echo
"Every test went fine!"
clean
:
clean
:
...
@@ -44,6 +45,7 @@ clean:
...
@@ -44,6 +45,7 @@ clean:
cd
k-clustering/
&&
make clean
cd
k-clustering/
&&
make clean
cd
ghosh/
&&
make clean
cd
ghosh/
&&
make clean
cd
wolfram-cellular-automaton/
&&
make clean
cd
wolfram-cellular-automaton/
&&
make clean
cd
ring-orientation/
&&
make clean
utest
:
utest
:
cd
skeleton/
&&
make
test
cd
skeleton/
&&
make
test
...
@@ -66,5 +68,6 @@ utest:
...
@@ -66,5 +68,6 @@ utest:
cd
k-clustering/
&&
make utest
cd
k-clustering/
&&
make utest
cd
ghosh/
&&
make utest
cd
ghosh/
&&
make utest
cd
wolfram-cellular-automaton/
&&
make utest
cd
wolfram-cellular-automaton/
&&
make utest
cd
ring-orientation/
&&
make utest
-include
Makefile.untracked
-include
Makefile.untracked
This diff is collapsed.
Click to expand it.
test/ring-orientation/Makefile
+
12
−
6
View file @
3b40afa0
# Time-stamp: <modified the
21/06
/2023 (at 1
2
:0
4
) by Erwan Jahier>
# Time-stamp: <modified the
18/10
/2023 (at 1
6
:0
6
) by Erwan Jahier>
DECO_PATTERN
=
"0-:p.ml"
DECO_PATTERN
=
"0-:p.ml"
-include
./Makefile.dot
-include
./Makefile.dot
...
@@ -7,17 +7,23 @@ DECO_PATTERN="0-:p.ml"
...
@@ -7,17 +7,23 @@ DECO_PATTERN="0-:p.ml"
##############################################################################
##############################################################################
# Non-regression tests
# Non-regression tests
test
:
g
ri
d
5.gm_test
g
ri
d
5.rdbg-test clean
test
:
ri
ng
5.gm_test ri
ng
5.rdbg-test
lurette
clean
# update golden-master tests (if necessary)
# update golden-master tests (if necessary)
utest
:
utest
:
make grid5.ugm_test
||
echo
"grid4 ok"
make ring5.ugm_test
||
echo
"ring5.ugm_test ok"
lurette
:
ring5.dot
lurette
-o
ring.rif
-l
10000
\
-sut
"sasa -rif ring5.dot -cd"
\
-oracle
"lv6 -2c-exec ring5_oracle.lus -n oracle"
##############################################################################
##############################################################################
# Other examples of use
# Other examples of use
rdbg
:
g
ri
d
5.dot
g
ri
d
5.ml
rdbg
:
ri
ng
5.dot ri
ng
5.ml
rdbg
--sasa
-sut
"sasa
g
ri
d
5.dot"
rdbg
--sasa
-sut
"sasa ri
ng
5.dot"
clean
:
genclean
clean
:
genclean
rm
-f
grid
*
.
*
diring
*
.
*
clique
*
.
*
er
*
.
*
This diff is collapsed.
Click to expand it.
test/ring-orientation/ring_orientation_oracle.lus
0 → 100644
+
26
−
0
View file @
3b40afa0
-- include "../lustre/oracle_utils.lus"
include
"../../salut/lib/utils.lus"
type
state
=
{
color_0
:
bool
;
phase_pos
:
bool
;
orient_left
:
bool
};
function
to_state
(
color_0
:
bool
;
phase_pos
:
bool
;
orient_left
:
bool
)
returns
(
res
:
state
);
let
res
=
state
{
color_0
=
color_0
;
phase_pos
=
phase_pos
;
orient_left
=
orient_left
};
tel
;
node
ring_orientation_oracle
<<
const
an
:
int
;
const
pn
:
int
>>
(
legitimate
:
bool
;
Enab
,
Acti
:
bool
^
an
^
pn
;
Config
:
state
^
card
;
round
:
bool
;
round_nb
:
int
)
returns
(
ok
:
bool
);
var
token_nb
:
int
;
converge_worst_case
:
bool
;
let
token_nb
=
count
<<
card
>>
(
map
<<
nary_or
<<
an
>>,
pn
>>
(
Enab
));
converge_worst_case
=
(
round_nb
>=
pn
*
pn
)
=>
(
token_nb
=
1
);
ok
=
converge_worst_case
;
tel
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