Commit 9b53f7f79b39a122399fac12201c45a25d2d21f8

Authored by Georg Hopp
1 parent dfb9a8a6

change on coverage generation...i still don't get any branch info, and i am not …

…sure what it would describe
@@ -16,13 +16,14 @@ @@ -16,13 +16,14 @@
16 $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html 16 $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
17 17
18 init-coverage-html: 18 init-coverage-html:
19 - $(LCOV) -d $(top_builddir) -c -i -o coverage.base --no-checksum --compat-libtool 19 + $(LCOV) -d $(top_builddir) -z
  20 + $(LCOV) -d $(top_builddir) -c -i -o coverage.base
20 21
21 generate-coverage-html: 22 generate-coverage-html:
22 @echo Collecting coverage data 23 @echo Collecting coverage data
23 - $(LCOV) -d $(top_builddir) -c -o coverage.run --no-checksum --compat-libtool  
24 - $(LCOV) -d $(top_builddir) -a ./coverage.base -a ./coverage.run -o coverage.info --no-checksum --compat-libtool  
25 - LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --branch-coverage --show-details coverage.info 24 + $(LCOV) -d $(top_builddir) -c -o coverage.run --gcov-tool /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3/gcov
  25 + $(LCOV) -d $(top_builddir) -a ./coverage.base -a ./coverage.run -o coverage.info
  26 + LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --branch-coverage --show-details coverage.run
26 27
27 clean-coverage-html: clean-gcda 28 clean-coverage-html: clean-gcda
28 -$(LCOV) --directory $(top_builddir) -z 29 -$(LCOV) --directory $(top_builddir) -z
@@ -42,20 +42,20 @@ SERVER = $(SOCKET) \ @@ -42,20 +42,20 @@ SERVER = $(SOCKET) \
42 mock/mock_worker.c 42 mock/mock_worker.c
43 43
44 classTest_SOURCES = $(CLASS) classTest.c 44 classTest_SOURCES = $(CLASS) classTest.c
45 -classTest_CFLAGS = -Wall -ggdb -O0 -fprofile-arcs -ftest-coverage -I ../include -I .. -I .  
46 -classTest_LDFLAGS = -lgcov 45 +classTest_CFLAGS = -Wall -ggdb -O0 -fprofile-arcs -ftest-coverage -pg -I ../include -I .. -I .
  46 +classTest_LDFLAGS = -lgcov -pg
47 47
48 loggerTest_SOURCES = $(LOGGER) loggerTest.c 48 loggerTest_SOURCES = $(LOGGER) loggerTest.c
49 -loggerTest_CFLAGS = -Wall -ggdb -O0 -fprofile-arcs -ftest-coverage -I ../include -I .. -I .  
50 -loggerTest_LDFLAGS = -lgcov 49 +loggerTest_CFLAGS = -Wall -ggdb -O0 -fprofile-arcs -ftest-coverage -pg -I ../include -I .. -I .
  50 +loggerTest_LDFLAGS = -lgcov -pg
51 51
52 socketTest_SOURCES = $(SOCKET) socketTest.c 52 socketTest_SOURCES = $(SOCKET) socketTest.c
53 -socketTest_CFLAGS = -Wall -ggdb -O0 -fprofile-arcs -ftest-coverage -I ../include -I .. -I .  
54 -socketTest_LDFLAGS = -lgcov 53 +socketTest_CFLAGS = -Wall -ggdb -O0 -fprofile-arcs -ftest-coverage -pg -I ../include -I .. -I .
  54 +socketTest_LDFLAGS = -lgcov -pg
55 55
56 serverTest_SOURCES = $(SERVER) serverTest.c 56 serverTest_SOURCES = $(SERVER) serverTest.c
57 -serverTest_CFLAGS = -Wall -ggdb -O0 -fprofile-arcs -ftest-coverage -I ../include -I .. -I .  
58 -serverTest_LDFLAGS = $(STREAM_OBJ) -lgcov 57 +serverTest_CFLAGS = -Wall -ggdb -O0 -fprofile-arcs -ftest-coverage -pg -I ../include -I .. -I .
  58 +serverTest_LDFLAGS = $(STREAM_OBJ) -lgcov -pg
59 59
60 EXTRA_DIST = runtest.h mock/mock_class.h mock/mock_logger.h 60 EXTRA_DIST = runtest.h mock/mock_class.h mock/mock_logger.h
61 61
Please register or login to post a comment