Skip to content

Commit

Permalink
pass j option for run-unit-test with coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zigen committed Feb 15, 2023
1 parent 27a0cc2 commit e0d3e3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quisp/makefrag
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ TEST_SRCS=$(filter %_test.cc,$(SRCS)) $(test_utils/%.cc) ./unit_test_main.cc
TEST_OBJS=$(foreach obj,$(TEST_SRCS:.cc=.o),$O/$(obj))
TEST_INCLUDE=-I$(PROJ_ROOT)/googletest/googletest/include/ -I$(PROJ_ROOT)/googletest/googlemock/include/
TEST_LIBS=-L$(PROJ_ROOT)/googletest/build/lib -lgtest -lgmock
NPROC?=$(shell nproc)

ifneq (,$(ENABLE_COVERAGE))
CXXFLAGS+=-ftest-coverage -fprofile-instr-generate -fcoverage-mapping
Expand Down Expand Up @@ -50,7 +51,7 @@ run-unit-test: $(TARGET_DIR)/run_unit_test

$(TARGET_DIR)/coverage.profraw:
rm -rf coverage*
ENABLE_COVERAGE=true make run-unit-test
ENABLE_COVERAGE=true make run-unit-test -j$(NPROC)
LLVM_PROFILE_FILE=$(TARGET_DIR)/coverage.profraw $(TARGET_DIR)/run_unit_test

$(TARGET_DIR)/coverage.profdata: $(TARGET_DIR)/coverage.profraw
Expand Down

0 comments on commit e0d3e3c

Please sign in to comment.