Commit 69d39e6d authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add gcov to the test suite

parent f4e69d15
......@@ -4,7 +4,7 @@ CC=gcc
LLC=llc
GNATMAKE=gnatmake
GNATBIND=gnatbind
GNATLINK=gnatlink
GNATLINK=gnatlink -lgcov -coverage
O=0
clean:
......@@ -21,7 +21,7 @@ clean:
%.ali: %.pr FORCE
$(OPENGEODE) $< system_structure.pr --toAda
$(ASN1SCC) -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
$(GNATMAKE) -O$(O) -gnat2012 -c -g *.adb
$(GNATMAKE) -O$(O) -gnat2012 -c -g -fprofile-arcs -ftest-coverage *.adb
%.o: %.asn FORCE
$(ASN1SCC) -c $< -typePrefix asn1Scc -equal
......
......@@ -12,6 +12,7 @@ test-ada: og.ali dataview-uniq.o | test_ada.o
$(GNATBIND) -n og.ali
$(GNATLINK) -o test_ada test_ada.o og.ali -lgnat
./test_ada
gcov og.adb
test-llvm: og.o dataview-uniq.o | test_llvm.o
......
......@@ -12,6 +12,7 @@ test-ada: orchestrator.ali dataview-uniq.o | test_ada.o
$(GNATBIND) -n orchestrator.ali
$(GNATLINK) -o test_ada test_ada.o orchestrator.ali -lgnat
./test_ada
gcov orchestrator.adb
test-llvm: orchestrator.o
......
Markdown is supported
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