Skip to content

Commit

Permalink
Adding the clean routine to coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Jun 6, 2024
1 parent a2434ce commit f24240b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ 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:
coverage: clean
g++ -std=c++14 -O2 -g -fprofile-arcs -ftest-coverage main.cpp -o main.o && \
./main.o && \
mv main.o-main.gcda main.gcda && \
Expand All @@ -44,11 +44,7 @@ clean:
mkdir -p "$${file%.cpp}-saves"; \
done



# What's the -ftest-coverage flag?
# https://stackoverflow.com/questions/9842759/what-is-ftest-coverage-option-in-gcov



.PHONY: all clean coverage

0 comments on commit f24240b

Please sign in to comment.