Commit e6ffde6e authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Update test build scripts

parent 4d613f34
#!/bin/bash
#!/bin/bash -e
# needs generic InterfaceEnum.i
# needs interface_enum.h from the project
......@@ -6,44 +6,36 @@
rm -rf build python
mkdir -p build
mkdir -p build/python
EDITORPATH=$(taste-config --prefix)/share/asn1-editor
cd build
# Manual build of the Dataview and call to the B mapper
asn2aadlPlus.py ../dataview-uniq.asn DataView.aadl
aadl2glueC.py DataView.aadl ../dspace-connector.aadl
ls python
# rm -f My* telecmds.* gnuplot
asn2aadlPlus ../dataview-uniq.asn DataView.aadl
aadl2glueC DataView.aadl ../dspace-connector.aadl
# Python mappers (normally done by the orchestrator):
asn2dataModel.py -toPython ../dataview-uniq.asn -o python
export ASN2DATAMODEL=asn2dataModel.py
asn2dataModel -toPython ../dataview-uniq.asn -o python
export ASN2DATAMODEL=asn2dataModel
cd python && make -f Makefile.python || exit -1
# Generate the .py file with the error codes (to be done in the orchestrator)
echo "errCodes = $($EDITORPATH/errCode.py dataview-uniq.h)" >> ../datamodel.py && cd ..
echo "errCodes = $(taste-asn1-errCodes dataview-uniq.h)" >> ../datamodel.py && cd ..
#the following statements only apply if there is a BB device in the system:
cp $EDITORPATH/InterfaceEnum.i .
cp ../../../InterfaceEnum.i .
cp ../interface_enum.h .
swig -includeall -outdir . -python ./InterfaceEnum.i && \
gcc -g -shared -fPIC `python-config --includes` -o _InterfaceEnum.so InterfaceEnum_wrap.c
# also copy speedometer:
cp $(taste-config --prefix)/share/speedometer/content . -r
cp $(taste-config --prefix)/share/speedometer/*.qml . -r
rm -rf ../dspace-connector-GUI
mkdir -p ../dspace-connector-GUI
# copy taste logo
cp $EDITORPATH/*.png .
mv *.py *.ui *.so *.qml *.png content python/*.so python/*.py ../dspace-connector-GUI
mv *.py *.ui *.so python/*.so python/*.py ../dspace-connector-GUI
cd ..
cp InterfaceView.aadl dspace-connector-GUI
cp dataview-uniq.asn dspace-connector-GUI
echo 'cd dspace-connector-GUI && $(taste-config --prefix)/share/asn1-editor/gui.py --udp 127.0.0.1:7756:7755 $@ && cd ..
echo 'cd dspace-connector-GUI && taste-gui --udp 127.0.0.1:7756:7755 $@ && cd ..
' > GUI-dspace-connector.sh && chmod +x GUI-dspace-connector.sh
......@@ -21,7 +21,6 @@ cd python && make -f Makefile.python || exit -1
echo "errCodes = $(taste-asn1-errCodes dataview-uniq.h)" >> ../datamodel.py && cd ..
#the following statements only apply if there is a BB device in the system:
pwd
cp ../../../InterfaceEnum.i .
cp ../interface_enum.h .
swig -includeall -outdir . -python ./InterfaceEnum.i && \
......@@ -34,7 +33,7 @@ mv *.py *.ui *.so python/*.so python/*.py ../dspace-sender-GUI
cd ..
cp InterfaceView.aadl dspace-sender-GUI
cp dataview-uniq.asn dspace-sender-GUI
echo 'cd dspace-sender-GUI && $(taste-gui --udp 127.0.0.1:7755:7756 -v $@) && cd ..
echo 'cd dspace-sender-GUI && taste-gui --udp 127.0.0.1:7755:7756 -v $@ && cd ..
' > GUI-dspace-sender.sh && chmod +x GUI-dspace-sender.sh
Supports Markdown
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