Commit 489f848e authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add simulation script in test-aggregation2

parent 5bff2503
......@@ -25,6 +25,16 @@ test-llvm:
$(LLC) *.ll
$(CC) -O$(O) -c *.s
test-python:
$(OPENGEODE) og.pr --shared
$(ASN1SCC) -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
$(ASN1SCC) -c dataview-uniq.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 adaasn1rtl.o -lgnat
#python -c "from ctypes import *; test=CDLL('./libog.so'); test.liborchestratorinit()"
coverage:
coverage run -p $(OPENGEODE) og.pr --toAda
......
#!/bin/bash -e
make test-python
rm -rf simu
mkdir -p simu
asn2aadlPlus dataview-uniq.asn simu/DataView.aadl
cp libog.so dataview-uniq.asn *.pr simu
mv *.aadl simu
cd simu
aadl2glueC DataView.aadl orchestrator_interface.aadl
asn2dataModel -toPython dataview-uniq.asn
make -f Makefile.python
echo "errCodes=$(taste-asn1-errCodes ./dataview-uniq.h)" >>datamodel.py
LD_LIBRARY_PATH=. taste-gui -l
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