Makefile 739 Bytes
Newer Older
dbarbera's avatar
dbarbera committed
1
all: test-ada test-llvm
Maxime Perrotin's avatar
Maxime Perrotin committed
2

dbarbera's avatar
dbarbera committed
3
4
test-parse:
	../../../opengeode.py og.pr system_structure.pr --check
Maxime Perrotin's avatar
Maxime Perrotin committed
5

dbarbera's avatar
dbarbera committed
6
7
test-ada:
	../../../opengeode.py --toAda og.pr system_structure.pr
Maxime Perrotin's avatar
Maxime Perrotin committed
8
9
	asn1.exe -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
	gnatmake -c *.adb
dbarbera's avatar
dbarbera committed
10
	gcc -c test_ada.c
11
	gnatbind -n og.ali
dbarbera's avatar
dbarbera committed
12
	gnatlink -o testcase test_ada.o og.ali -lgnat
dbarbera's avatar
dbarbera committed
13
	./testcase | diff expected -
Maxime Perrotin's avatar
Maxime Perrotin committed
14

dbarbera's avatar
dbarbera committed
15
16
17
18
19
20
test-llvm:
	../../../opengeode.py og.pr system_structure.pr --llvm
	llc og.ll
	gcc -c og.s
	gcc -c test_llvm.c
	gcc og.o test_llvm.o -o testcase
21
	./testcase | diff expected -
dbarbera's avatar
dbarbera committed
22
23


Maxime Perrotin's avatar
Maxime Perrotin committed
24
25
26
27
coverage:
	coverage run -p ../../../opengeode.py og.pr system_structure.pr --toAda

clean:
dbarbera's avatar
dbarbera committed
28
29
	rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
	bin *.wrn *.gpr testcase *.ll *.s