check_simulation.sh 885 Bytes
Newer Older
1
2
3
#!/bin/bash -e
rm -rf testsc_simu
mkdir -p testsc_simu
4
cp testsc.pr dataview.asn testsc_simu
5
6
7
8
9
cd testsc_simu
opengeode testsc.pr --shared
cat dataview.asn >> dataview-uniq.asn 
asn1.exe -Ada -typePrefix asn1Scc -equal dataview.asn
asn1.exe -c -typePrefix asn1Scc -equal dataview.asn
10
gnatmake -gnat2012 -fPIC -c *.adb
11
gnatbind -n -Llibtestsc testsc
12
gnatmake -c -fPIC -gnat2012 b~testsc.adb
13
14
15
16
17
18
19
20
gcc -shared -fPIC -o libtestsc.so b~testsc.o testsc.o ccsdssoissubnetwork.o ccsdssoissubnetworkinterfaces.o demo.o demointerfaces.o environment.o environmentinterfaces.o adaasn1rtl.o -lgnat
rm -f dataview-uniq.c dataview-uniq.h
asn2aadlPlus dataview-uniq.asn DataView.aadl
aadl2glueC DataView.aadl testsc_interface.aadl
asn2dataModel -toPython dataview-uniq.asn
make -f Makefile.python
echo "errCodes=$(taste-asn1-errCodes ./dataview-uniq.h)" >>datamodel.py
#LD_LIBRARY_PATH=. opengeode-simulator