Commit 6e4820ee authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add script for simulatin test-save

parent 24e4aa48
......@@ -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)
......
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment