Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenGEODE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
OpenGEODE
Commits
d6b776ab
Commit
d6b776ab
authored
Oct 04, 2020
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test case
parent
e35906f8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
9 deletions
+37
-9
tests/testsuite/test8/Makefile
tests/testsuite/test8/Makefile
+6
-3
tests/testsuite/test8/expected
tests/testsuite/test8/expected
+5
-5
tests/testsuite/test8/orchestrator_ri.ada
tests/testsuite/test8/orchestrator_ri.ada
+18
-0
tests/testsuite/test8/test_ada.ada
tests/testsuite/test8/test_ada.ada
+7
-0
tests/testsuite/test8/test_ada.c
tests/testsuite/test8/test_ada.c
+1
-1
No files found.
tests/testsuite/test8/Makefile
View file @
d6b776ab
...
...
@@ -25,9 +25,12 @@ test-qgen-gt-ada:
test-qgen-gt-c
:
$(TESTQGEN_GT_C)
$(ROOT_MODEL)
test-ada
:
orchestrator.ali dataview-uniq.o | test_ada.o
$(GNATBIND)
-n
orchestrator.ali
$(GNATLINK)
-o
test_ada test_ada.o orchestrator.ali
test-ada
:
dataview-uniq.o | test_ada.o
cp
orchestrator_ri.ada orchestrator_ri.adb
cp
test_ada.ada test_ada.adb
$(OPENGEODE)
orchestrator.pr system_structure.pr
--toAda
mono
$(ASN1SCC)
-Ada
-typePrefix
asn1Scc
-equal
*
.asn
gnat make
-g
test_ada
./test_ada | diff expected -
test-c
:
orchestrator.c test_c.o dataview-uniq.o
...
...
tests/testsuite/test8/expected
View file @
d6b776ab
[C Code] Running test
[SDL] Startup
Hello 2.00000000000000E+00
1 2.00000000000000E+00
1.00000000000000E+00
[C Code] Received T_GNC_LV_SIM_INPUTS
VESAT One Step called
2.00000000000000E+00
[C Code] Received T_GNC_LV_SIM_INPUTS
VESAT One Step called
3.00000000000000E+00
[C Code] Received T_GNC_LV_SIM_INPUTS
VESAT One Step called
4.00000000000000E+00
[C Code] Received T_GNC_LV_SIM_INPUTS
VESAT One Step called
1.00000000000000E+00
2.00000000000000E+00
3.00000000000000E+00
4.00000000000000E+00
2.00000000000000E+00
3.00000000000000E+00
End of test
tests/testsuite/test8/orchestrator_ri.ada
0 → 100644
View file @
d6b776ab
-- Stub generated by OpenGEODE.
-- You can edit this file, it will not be overwritten
with
Text_IO
;
use
Text_IO
;
package
body
orchestrator_RI
is
procedure
VESAT_one_step
(
vesat_input
:
in
out
asn1SccT_GNC_LV_SIM_INPUTS
)
is
-- procedure VESAT_one_step (vesat_input : in out asn1SccT_GNC_LV_SIM_INPUTS)
-- with Import;
begin
Put_Line
(
"VESAT One Step called"
);
end
VESAT_One_Step
;
procedure
plot
(
gnc_data
:
in
out
asn1SccT_Plot
)
is
null
;
procedure
jump_to_next_major_cycle
is
null
;
procedure
gnc_onestep
(
gnc_inputs
:
in
out
asn1SccT_GNC_LV_SIM_CONTEXT
;
gnc_outputs
:
out
asn1SccT_GNC_LV_SIM_INPUTS
)
is
null
;
procedure
gnc_init
is
null
;
end
orchestrator_RI
;
tests/testsuite/test8/test_ada.ada
0 → 100644
View file @
d6b776ab
with
orchestrator
;
with
Text_IO
;
procedure
test_ada
is
begin
Text_IO
.
Put_Line
(
"End of test"
);
end
test_ada
;
tests/testsuite/test8/test_ada.c
View file @
d6b776ab
...
...
@@ -4,7 +4,7 @@
extern
void
adainit
();
void
orchestrator_RI_VESAT
_one_step
(
asn1SccT_GNC_LV_SIM_INPUTS
*
inp
)
void
vesat
_one_step
(
asn1SccT_GNC_LV_SIM_INPUTS
*
inp
)
{
printf
(
"[C Code] Received T_GNC_LV_SIM_INPUTS
\n
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment