]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - build_full_test.mk
convert to unix line-endings [skip ci]
[qmk_firmware.git] / build_full_test.mk
index 8b04cc3a4f960e3152d6bbac45be9e7a0f2fbd7a..170020b968550ed7428e03578d89bdd17b753214 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-include tests/$(TEST)/rules.mk
 #include $(TMK_PATH)/protocol.mk
 
 TEST_PATH=tests/$(TEST)
 
-$(TEST)_SRC=$(TEST_PATH)/test.c $(TMK_COMMON_SRC)
-$(TEST)_DEFS=$(TMK_COMMON_DEFS)
+$(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) $(OPT_DEFS)
 $(TEST)_CONFIG=$(TEST_PATH)/config.h
+VPATH+=$(TOP_DIR)/tests/test_common
\ No newline at end of file