Makefile 820 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 myfunction.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 myfunction.pr system_structure.pr
Maxime Perrotin's avatar
Maxime Perrotin committed
8
	asn1.exe -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
dbarbera's avatar
dbarbera committed
9
	gnatmake -c myfunction.adb
dbarbera's avatar
dbarbera committed
10
	gcc -c test_ada.c
11
	gnatbind -n myfunction.ali
dbarbera's avatar
dbarbera committed
12
	gnatlink -o testcase test_ada.o myfunction.ali -lgnat
13
	./testcase | diff expected -
Maxime Perrotin's avatar
Maxime Perrotin committed
14

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

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

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