Skip to content

Commit 64ac7f2

Browse files
author
Sebastiano Merlino
committed
calculating coverage from test
1 parent 22b9b72 commit 64ac7f2

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ script:
2727
- make
2828
- make check
2929
after_success:
30-
- cp src/.libs/*.gcda ./src/
3130
- cp -R ../src/* ./src/
3231
- cp -R ../src/details/* ./src/details/
3332
- cp -R ../src/httpserver/* ./src/httpserver/

ci-report-coverage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ export EXCLUDE_COVERAGE="--exclude .libs"
44

55
find ../ -name *.gcda
66
echo "Sending coveralls json report"
7-
coveralls $EXCLUDE_COVERAGE --gcov-options '\-lp' -b ./src
7+
coveralls $EXCLUDE_COVERAGE --gcov-options '\-lp'

src/Makefile.am

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ nobase_include_HEADERS = httpserver.hpp httpserver/create_webserver.hpp httpserv
2525

2626
AM_CXXFLAGS += -fPIC -Wall
2727

28-
if COND_GCOV
29-
AM_CFLAGS += -O0 --coverage
30-
AM_CXXFLAGS += -O0 --coverage
31-
AM_LDFLAGS += -O0 --coverage -lgcov
32-
endif
33-
3428
libhttpserver_la_LIBADD = -lmicrohttpd
3529
libhttpserver_la_CFLAGS = $(AM_CFLAGS)
3630
libhttpserver_la_CXXFLAGS = $(AM_CXXFLAGS)

test/Makefile.am

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ http_utils_SOURCES = unit/http_utils_test.cpp
2929
noinst_HEADERS = littletest.hpp
3030
AM_CXXFLAGS += -lcurl -Wall -fPIC
3131

32+
if COND_GCOV
33+
AM_CFLAGS += -O0 --coverage
34+
AM_CXXFLAGS += -O0 --coverage
35+
AM_LDFLAGS += -O0 --coverage -lgcov
36+
endif
37+
3238
TESTS = $(check_PROGRAMS)

0 commit comments

Comments
 (0)