all: test-ada

test-parse:
	../../../opengeode.py og.pr system_structure.pr --check

test-ada:
	../../../opengeode.py --toAda og.pr system_structure.pr
	asn1.exe -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
	gnatmake -c *.adb
	gcc -c test.c
	gnatbind -n og.ali
	gnatlink -o testcase test.o og.ali -lgnat
	./testcase | diff expected -

coverage:
	coverage run -p ../../../opengeode.py og.pr system_structure.pr --toAda

clean:
	rm -rf result *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner bin *.wrn *.gpr testcase
