Skip to content

Commit

Permalink
Adding needed flags for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Jun 6, 2024
1 parent 70bca74 commit 5d10b85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
DIR_UP := $(shell cd .. && pwd)

build:
docker build -t gvegayon/epiworld:latest .

run:
docker run -i --rm -w/home/ gvegayon/epiworld:latest
docker run -i --rm -v $(DIR_UP):/home -w /home gvegayon/epiworld:latest

push:
docker push gvegayon/epiworld:latest
3 changes: 2 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ main.a: main.cpp clean
g++ -std=c++14 -Wall -Wextra -O2 -g $(OPENMP) -pedantic 05-mixing.cpp -o 05-mixing.o

# Check coverage using the main.o target
coverage: main.o
coverage:
g++ -std=c++14 -Wall -Wextra -O2 -g -fprofile-arcs -ftest-coverage main.cpp -o main.o && \
gcov -r main.cpp && ls -allt && \
rm -f catch*.hpp.gcov && \
mkdir -p gcov-files && rm -f gcov-files/* && \
Expand Down

0 comments on commit 5d10b85

Please sign in to comment.