diff --git a/.gitignore b/.gitignore index 40e8846..eca7c6f 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ OUT ana io qp +*.gcno +*.gcda +*.gcov diff --git a/.travis.yml b/.travis.yml index 23f5359..c551c9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ install: script: - cd $TRAVIS_BUILD_DIR - make + - gcov *.gcno - ./graphpass after_success: diff --git a/Makefile b/Makefile index 6049c98..7a3ca1c 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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