aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-07-20 15:40:42 +0300
committerJack Humbert <jack.humb@gmail.com>2017-07-20 10:17:31 -0400
commita5b0f4de35608431f235f3da0a4e087db6671300 (patch)
tree5a7e441d910d113229dd450593e436734f2499ab
parent20696a9efef4455f1589e6b37ed2177120a92161 (diff)
downloadfirmware-a5b0f4de35608431f235f3da0a4e087db6671300.tar.gz
firmware-a5b0f4de35608431f235f3da0a4e087db6671300.tar.bz2
firmware-a5b0f4de35608431f235f3da0a4e087db6671300.zip
Add SRC and OPT_DEFS when building tests
-rw-r--r--build_full_test.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/build_full_test.mk b/build_full_test.mk
index 94356d575..170020b96 100644
--- a/build_full_test.mk
+++ b/build_full_test.mk
@@ -21,12 +21,13 @@ $(TEST)_SRC= \
$(TEST_PATH)/keymap.c \
$(TMK_COMMON_SRC) \
$(QUANTUM_SRC) \
+ $(SRC) \
tests/test_common/matrix.c \
tests/test_common/test_driver.cpp \
tests/test_common/keyboard_report_util.cpp \
tests/test_common/test_fixture.cpp
$(TEST)_SRC += $(patsubst $(ROOTDIR)/%,%,$(wildcard $(TEST_PATH)/*.cpp))
-$(TEST)_DEFS=$(TMK_COMMON_DEFS)
+$(TEST)_DEFS=$(TMK_COMMON_DEFS) $(OPT_DEFS)
$(TEST)_CONFIG=$(TEST_PATH)/config.h
VPATH+=$(TOP_DIR)/tests/test_common \ No newline at end of file