Break out unit tests #2627

This commit is contained in:
rusefillc 2021-05-07 22:14:22 -04:00
parent cf65acb888
commit 9032730700
3 changed files with 12 additions and 5 deletions

View File

@ -19,10 +19,12 @@ include $(PROJECT_DIR)/util/util.mk
include $(PROJECT_DIR)/init/init.mk
include $(UNIT_TESTS_DIR)/test.mk
include $(UNIT_TESTS_DIR)/tests/tests.mk
include $(PROJECT_DIR)/../unit_tests/tests/util/test_util.mk
# C sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
CSRC = $(ALLCSRC) \
CSRC += $(ALLCSRC) \
$(UTILSRC) \
$(CONTROLLERS_ALGO_SRC) \
$(CONTROLLERS_CORE_SRC) \
@ -34,7 +36,7 @@ CSRC = $(ALLCSRC) \
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
CPPSRC = $(ALLCPPSRC) \
CPPSRC += $(ALLCPPSRC) \
$(UTILSRC_CPP) \
$(CONTROLLERS_ALGO_SRC_CPP) \
$(TRIGGER_DECODERS_SRC_CPP) \
@ -58,7 +60,7 @@ CPPSRC = $(ALLCPPSRC) \
$(PROJECT_DIR)/console/binary/tooth_logger.cpp \
$(PROJECT_DIR)/console/binary_log/log_field.cpp \
INCDIR = $(UNIT_TESTS_DIR) \
INCDIR += $(UNIT_TESTS_DIR) \
$(ALLINC) \
$(UTIL_INC) \
$(PROJECT_DIR)/config/engines \

View File

@ -18,8 +18,6 @@ TESTS_SRC_CPP = \
tests/lua/test_lua_basic.cpp \
tests/lua/test_lua_hooks.cpp \
tests/sensor/test_cj125.cpp \
tests/util/test_buffered_writer.cpp \
tests/util/test_error_accumulator.cpp \
tests/util/test_timer.cpp \
tests/test_util.cpp \
tests/test_start_stop.cpp \

View File

@ -0,0 +1,7 @@
CPPSRC += $(PROJECT_DIR)/../unit_tests/tests/util/test_buffered_writer.cpp \
$(PROJECT_DIR)/../unit_tests/tests/util/test_error_accumulator.cpp \
INCDIR += $(PROJECT_DIR)/controllers/system