Commit 3d023950 authored by yoogx's avatar yoogx
Browse files

* Add script to call lcov

        For openaadl/ocarina#164
parent e41091da
...@@ -1493,7 +1493,7 @@ package body Ocarina.Backends.Build_Utils is ...@@ -1493,7 +1493,7 @@ package body Ocarina.Backends.Build_Utils is
Write_Line Write_Line
("###################################################"); ("###################################################");
Write_Eol; Write_Eol;
Write_Str Write_Line
("SUBDIRS = " & ("SUBDIRS = " &
"$(filter-out Makefile polyorb-hi-c, $(wildcard *))"); "$(filter-out Makefile polyorb-hi-c, $(wildcard *))");
Write_Eol; Write_Eol;
...@@ -1502,6 +1502,25 @@ package body Ocarina.Backends.Build_Utils is ...@@ -1502,6 +1502,25 @@ package body Ocarina.Backends.Build_Utils is
(ASCII.HT & (ASCII.HT &
"set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d ; done"); "set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d ; done");
Write_Eol; Write_Eol;
Write_Line ("coverage:");
Write_Line (ASCII.HT & "-rm lcov.args");
Write_Line (ASCII.HT & "touch lcov.args");
Write_Line (ASCII.HT & "for d in $(SUBDIRS); do \");
Write_Line (ASCII.HT & ASCII.HT &
"lcov -c -i -d $$d -o coverage.$$d ;\");
Write_Line (ASCII.HT & ASCII.HT &
"lcov -c -d $$d -o coverage.$$d ;\");
Write_Line (ASCII.HT & ASCII.HT &
"echo ""-a coverage.$$d "" >> lcov.args ;\");
Write_Line (ASCII.HT & "done");
Write_Line (ASCII.HT
& "lcov `cat lcov.args` -o coverage.total");
Write_Line (ASCII.HT &
"genhtml --no-branch-coverage " &
"-o ../gcov_output coverage.total");
Write_Line (ASCII.HT & "rm lcov.args coverage.*");
Write_Eol;
Write_Line ("clean:"); Write_Line ("clean:");
Write_Line Write_Line
(ASCII.HT & (ASCII.HT &
......
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