diff options
author | QMK Bot <hello@qmk.fm> | 2021-07-25 16:18:46 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-07-25 16:18:46 +0000 |
commit | d90897052243808863bcab3b07e16d5b6a0b08f0 (patch) | |
tree | fafe06bc2c7302c836fc35954eacaa1f2225344d /build_test.mk | |
parent | 71e9f8fc11f617278497611e169bf2ddccd2211c (diff) | |
parent | fc9fb2c77505cf1dcf5d1f50dd61a980471b3494 (diff) | |
download | qmk_firmware-d90897052243808863bcab3b07e16d5b6a0b08f0.tar.gz qmk_firmware-d90897052243808863bcab3b07e16d5b6a0b08f0.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'build_test.mk')
-rw-r--r-- | build_test.mk | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/build_test.mk b/build_test.mk index 5171c58c3..4c09bf027 100644 --- a/build_test.mk +++ b/build_test.mk | |||
@@ -24,7 +24,6 @@ GTEST_INTERNAL_INC :=\ | |||
24 | 24 | ||
25 | $(GTEST_OUTPUT)_SRC :=\ | 25 | $(GTEST_OUTPUT)_SRC :=\ |
26 | googletest/src/gtest-all.cc\ | 26 | googletest/src/gtest-all.cc\ |
27 | googletest/src/gtest_main.cc\ | ||
28 | googlemock/src/gmock-all.cc | 27 | googlemock/src/gmock-all.cc |
29 | 28 | ||
30 | $(GTEST_OUTPUT)_DEFS := | 29 | $(GTEST_OUTPUT)_DEFS := |
@@ -35,7 +34,8 @@ CREATE_MAP := no | |||
35 | 34 | ||
36 | VPATH +=\ | 35 | VPATH +=\ |
37 | $(LIB_PATH)/googletest\ | 36 | $(LIB_PATH)/googletest\ |
38 | $(LIB_PATH)/googlemock | 37 | $(LIB_PATH)/googlemock\ |
38 | $(LIB_PATH)/printf | ||
39 | 39 | ||
40 | all: elf | 40 | all: elf |
41 | 41 | ||
@@ -43,6 +43,10 @@ VPATH += $(COMMON_VPATH) | |||
43 | PLATFORM:=TEST | 43 | PLATFORM:=TEST |
44 | PLATFORM_KEY:=test | 44 | PLATFORM_KEY:=test |
45 | 45 | ||
46 | ifeq ($(strip $(DEBUG)), 1) | ||
47 | CONSOLE_ENABLE = yes | ||
48 | endif | ||
49 | |||
46 | ifneq ($(filter $(FULL_TESTS),$(TEST)),) | 50 | ifneq ($(filter $(FULL_TESTS),$(TEST)),) |
47 | include tests/$(TEST)/rules.mk | 51 | include tests/$(TEST)/rules.mk |
48 | endif | 52 | endif |
@@ -56,6 +60,11 @@ ifneq ($(filter $(FULL_TESTS),$(TEST)),) | |||
56 | include build_full_test.mk | 60 | include build_full_test.mk |
57 | endif | 61 | endif |
58 | 62 | ||
63 | $(TEST)_SRC += \ | ||
64 | tests/test_common/main.c \ | ||
65 | $(LIB_PATH)/printf/printf.c \ | ||
66 | $(COMMON_DIR)/printf.c | ||
67 | |||
59 | $(TEST_OBJ)/$(TEST)_SRC := $($(TEST)_SRC) | 68 | $(TEST_OBJ)/$(TEST)_SRC := $($(TEST)_SRC) |
60 | $(TEST_OBJ)/$(TEST)_INC := $($(TEST)_INC) $(VPATH) $(GTEST_INC) | 69 | $(TEST_OBJ)/$(TEST)_INC := $($(TEST)_INC) $(VPATH) $(GTEST_INC) |
61 | $(TEST_OBJ)/$(TEST)_DEFS := $($(TEST)_DEFS) | 70 | $(TEST_OBJ)/$(TEST)_DEFS := $($(TEST)_DEFS) |