Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
3d023950
Commit
3d023950
authored
Jun 24, 2018
by
yoogx
Browse files
* Add script to call lcov
For openaadl/ocarina#164
parent
e41091da
Changes
1
Show whitespace changes
Inline
Side-by-side
src/backends/ocarina-backends-build_utils.adb
View file @
3d023950
...
...
@@ -1493,7 +1493,7 @@ package body Ocarina.Backends.Build_Utils is
Write_Line
(
"###################################################"
);
Write_Eol
;
Write_
Str
Write_
Line
(
"SUBDIRS = "
&
"$(filter-out Makefile polyorb-hi-c, $(wildcard *))"
);
Write_Eol
;
...
...
@@ -1502,6 +1502,25 @@ package body Ocarina.Backends.Build_Utils is
(
ASCII
.
HT
&
"set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d ; done"
);
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
(
ASCII
.
HT
&
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment