Skip to content

Commit 96aded8

Browse files
ruebotgreebie
authored andcommitted
Create coverage reports; resolve #58. (#65)
1 parent 1d9c65b commit 96aded8

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ OUT
1414
ana
1515
io
1616
qp
17+
*.gcno
18+
*.gcda
19+
*.gcov

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ install:
1414
script:
1515
- cd $TRAVIS_BUILD_DIR
1616
- make
17+
- gcov *.gcno
1718
- ./graphpass
1819

1920
after_success:

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ BUILD = build/
2525
all: clean test install
2626

2727
install: src/main/graphpass.c
28-
gcc src/main/*.c $(DEPS) -L$(IGRAPH_LIB) -ligraph -lm -o graphpass
28+
gcc src/main/*.c $(DEPS) -L$(IGRAPH_LIB) -ligraph -lm -o graphpass -fprofile-arcs -ftest-coverage
2929
- ./graphpass -qnv
3030

3131
release: src/main/graphpass.c
32-
gcc src/main/*.c $(DEPS) -L$(IGRAPH_LIB) -ligraph -lm -o graphpass
32+
gcc src/main/*.c $(DEPS) -L$(IGRAPH_LIB) -ligraph -lm -o graphpass -fprofile-arcs -ftest-coverage
3333
- ./graphpass -qgnv
3434

3535
debug: ./src/main/graphpass.c
36-
gcc -g -Wall src/main/*.c $(DEPS) -L$(IGRAPH_LIB) -ligraph -lm -o graphpass
36+
gcc -g -Wall src/main/*.c $(DEPS) -L$(IGRAPH_LIB) -ligraph -lm -o graphpass -fprofile-arcs -ftest-coverage
3737

3838
test: qp ana io run clean
3939

@@ -59,3 +59,7 @@ clean:
5959
rm -rf TEST_OUT_FOLDER
6060
rm -rf $(BUILD)
6161
rm -f graphpass
62+
rm -f *.gcno
63+
rm -f *.gcda
64+
rm -f *.c.gcov
65+
rm -f *.h.gcov

0 commit comments

Comments
 (0)