Skip to content

Commit

Permalink
Create coverage reports; resolve #58. (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruebot authored and greebie committed Oct 4, 2018
1 parent 1d9c65b commit 96aded8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ OUT
ana
io
qp
*.gcno
*.gcda
*.gcov
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ install:
script:
- cd $TRAVIS_BUILD_DIR
- make
- gcov *.gcno
- ./graphpass

after_success:
Expand Down
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ BUILD = build/
all: clean test install

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

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

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

test: qp ana io run clean

Expand All @@ -59,3 +59,7 @@ clean:
rm -rf TEST_OUT_FOLDER
rm -rf $(BUILD)
rm -f graphpass
rm -f *.gcno
rm -f *.gcda
rm -f *.c.gcov
rm -f *.h.gcov

0 comments on commit 96aded8

Please sign in to comment.