Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VILLASnode
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACS
Public
VILLASframework
VILLASnode
Commits
afefc7f5
Commit
afefc7f5
authored
8 years ago
by
Steffen Vogel
Browse files
Options
Downloads
Patches
Plain Diff
added coverage information
parent
d8271f82
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
Dockerfile
+7
-0
7 additions, 0 deletions
Dockerfile
tests/Makefile.gcov.inc
+34
-0
34 additions, 0 deletions
tests/Makefile.gcov.inc
tests/Makefile.inc
+1
-1
1 addition, 1 deletion
tests/Makefile.inc
with
43 additions
and
2 deletions
.gitlab-ci.yml
+
1
−
1
View file @
afefc7f5
...
@@ -89,7 +89,7 @@ integration:
...
@@ -89,7 +89,7 @@ integration:
dependencies
:
dependencies
:
-
build
-
build
script
:
script
:
-
build/release/villas-node
-
"
build/release/villas-node
||
true"
image
:
$DOCKER_REGISTRY/$DOCKER_IMAGE
image
:
$DOCKER_REGISTRY/$DOCKER_IMAGE
tags
:
tags
:
-
docker
-
docker
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
7
−
0
View file @
afefc7f5
...
@@ -59,6 +59,13 @@ RUN dnf -y update && \
...
@@ -59,6 +59,13 @@ RUN dnf -y update && \
bison
\
bison
\
texinfo
texinfo
# Tools for coverage and profiling
RUN
dnf
-y
update
&&
\
dnf
-y
install
\
python-pip
&&
\
pip
install
\
gcovr
ENV
PKG_CONFIG_PATH /usr/local/lib/pkgconfig
ENV
PKG_CONFIG_PATH /usr/local/lib/pkgconfig
ENV
LD_LIBRARY_PATH /usr/local/lib
ENV
LD_LIBRARY_PATH /usr/local/lib
...
...
This diff is collapsed.
Click to expand it.
tests/Makefile.gcov.inc
0 → 100644
+
34
−
0
View file @
afefc7f5
COVERAGE_TESTS
=
$(
BUILDDIR
)
/testsuite
COVERAGE_OBJS
=
$(
LIB_OBJS
)
$(
SRC_OBJS
)
GCDAS
=
$(
COVERAGE_OBJS:.o
=
.gcda
)
GCNOS
=
$(
COVERAGE_OBJS:.o
=
.gcno
)
GCOVR_OPTS
=
--exclude
^include
--root
.
--sort-percentage
--print-summary
coverage
:
$(BUILDDIR)/coverage/index.html $(BUILDDIR)/coverage.xml $(BUILDDIR)/coverage.txt
$(BUILDDIR)/coverage.txt
:
$(addsuffix .gcdas
,
$(COVERAGE_TESTS)) | $$(dir $$@)
gcovr
$(
GCOVR_OPTS
)
-o
$@
$(BUILDDIR)/coverage.xml
:
$(addsuffix .gcdas
,
$(COVERAGE_TESTS)) | $$(dir $$@)
gcovr
$(
GCOVR_OPTS
)
--xml
--xml-pretty
-o
$@
$(BUILDDIR)/coverage/index.html
:
$(addsuffix .gcdas
,
$(COVERAGE_TESTS)) | $$(dir $$@)
gcovr
$(
GCOVR_OPTS
)
--html
--html-details
-o
$@
# This is an intermediate target. It is used to run the test only once for all gcovr rules.
%.gcdas
:
%
@
echo
"Delete previous coverage information"
rm
-f
$(
GCDAS
)
@
echo
"Run
$<
for collecting coverage information (.gcda)"
$^
clean-coverage
:
rm
-rf
$(
BUILDDIR
)
/coverage
$(
BUILDDIR
)
/coverage.txt
$(
BUILDDIR
)
/coverage.xml
rm
-f
$(
GCDAS
)
install-coverage
:
.INTERMEDIATE
:
$(addsuffix .gcdas
,
$(COVERAGE_TESTS))
.PHONY
:
coverage gcda clean-coverage install-coverage
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tests/Makefile.inc
+
1
−
1
View file @
afefc7f5
...
@@ -16,7 +16,7 @@ $(BUILDDIR)/testsuite: $(TEST_OBJS) | $(LIBS)
...
@@ -16,7 +16,7 @@ $(BUILDDIR)/testsuite: $(TEST_OBJS) | $(LIBS)
$(
CC
)
$(
TEST_LDFLAGS
)
$(
TEST_LDLIBS
)
$^
-o
$@
$(
CC
)
$(
TEST_LDFLAGS
)
$(
TEST_LDLIBS
)
$^
-o
$@
ifdef
COVERAGE
ifdef
COVERAGE
-include
Makefile.gcov.inc
-include
tests/
Makefile.gcov.inc
endif
endif
# Tests are not installed
# Tests are not installed
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment