Commit 15907cdb authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix for test21

cant use cat directly to concatenate multiple asn1 files, because if
there is no newline at the end of the file, the last END keyword is
joined to the next word, provoking a parsing error from the ASN1
parent 7bc2d1d4
......@@ -62,10 +62,9 @@ build/deploymentview_final/Makefile: build/main.aadl
mkdir -p ${PROJECT_CACHE} && mkdir -p ${DATAVIEW_PATH}
@@-- Create dataview-uniq.asn
@@INLINE( )( )(\n)@@
cat $^ > $@
@@-- Create dataview-uniq.asn by concatenating all asn1 input files
@@-- Don't use cat, because files need newlines in between
sed -e '$$s/$$/\n/' -s $^ > $@
build/system_config.h: $(wildcard */*/wrappers/*_system_config.h)
cat $^ > $@
......@@ -3,22 +3,17 @@ KAZOO=../../kazoo
all: test-parse
test-parse: clean
$(KAZOO) --gw \
-o output \
--glue \
--debug && time $(MAKE) -C output dataview
$(KAZOO) --gw -p -o output.pohic --glue --debug
time $(MAKE) -C output.pohic dataview
gdb: clean
gdb --args $(KAZOO) --gw \
-o output \
-o output.pohic \
-p \
--glue \
--debug \
-i InterfaceView.aadl \
-c DeploymentView.aadl \
-d DataView.aadl \
../common/ocarina_components.aadl && $(MAKE) -C output dataview
rm -rf output
rm -rf output.pohic
.PHONY: clean test-parse gdb
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