Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
6e4820ee
Commit
6e4820ee
authored
Apr 29, 2016
by
Maxime Perrotin
Browse files
Add script for simulatin test-save
parent
24e4aa48
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/regression/test-save/Makefile
View file @
6e4820ee
...
...
@@ -19,6 +19,15 @@ test-c:
$(ASN1SCC)
-c
dataview.asn
-typePrefix
asn1Scc
-equal
$(CC)
-O
$(O)
-c
*
.c
test-python
:
$(OPENGEODE)
og.pr
--shared
$(ASN1SCC)
-Ada
dataview.asn
-typePrefix
asn1Scc
-equal
$(ASN1SCC)
-c
dataview.asn
-typePrefix
asn1Scc
-equal
$(GNATMAKE)
-O
$(O)
-gnat2012
-fPIC
-c
*
.adb
$(GNATBIND)
-n
-Llibog
og
$(GNATMAKE)
-c
-fPIC
-gnat2012
b~og.adb
$(CC)
-shared
-fPIC
-o
libog.so b~og.o og.o taste_dataview.o adaasn1rtl.o
-lgnat
python
-c
"from ctypes import *; test=CDLL('./libog.so'); test.liboginit()"
test-llvm
:
$(OPENGEODE)
og.pr
--llvm
-O
$(O)
...
...
tests/regression/test-save/simu.sh
0 → 100755
View file @
6e4820ee
#!/bin/bash -e
make test-python
rm
-rf
simu
mkdir
-p
simu
asn2aadlPlus dataview.asn simu/DataView.aadl
cp
libog.so dataview.asn
*
.pr simu
mv
*
.aadl simu
cd
simu
aadl2glueC DataView.aadl og_interface.aadl
asn2dataModel
-toPython
dataview.asn
make
-f
Makefile.python
echo
"errCodes=
$(
taste-asn1-errCodes ./dataview.h
)
"
>>
datamodel.py
LD_LIBRARY_PATH
=
.
opengeode-simulator
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment