Break out unit tests #2627

This commit is contained in:
rusefillc 2021-05-06 16:33:10 -04:00
parent ac6fe4131f
commit e26f2215d5
2 changed files with 13 additions and 25 deletions

View File

@ -6,14 +6,6 @@
PROJECT_DIR = ../firmware
UNIT_TESTS_DIR=$(PROJECT_DIR)/../unit_tests
ifeq ("$(wildcard $(UNIT_TESTS_DIR)/googletest/LICENSE)","")
$(info Invoking "git submodule update --init")
$(shell git submodule update --init)
$(info Invoked "git submodule update --init")
# make is not happy about newly checked out module for some reason but next invocation would work
$(error Please run 'make' again. Please make sure you have 'git' command in PATH)
endif
include $(PROJECT_DIR)/rusefi_rules.mk
@ -81,23 +73,6 @@ endif
# List all default C defines here, like -D_DEBUG=1
DDEFS =
#
# Architecture or project specific options
##############################################################################
##############################################################################
# Project, sources and paths
#
# Define project name here
PROJECT = rusefi_test
#PROJECT_BOARD = OLIMEX_STM32_E407
#ifneq ($(PROJECT_BOARD),OLIMEX_STM32_E407)
# PROJECT_BOARD = ST_STM32F4_DISCOVERY
#endif
#DDEFS += -D$(PROJECT_BOARD)
# Imported source files and paths
include $(PROJECT_DIR)/config/engines/engines.mk
include $(PROJECT_DIR)/controllers/controllers.mk
@ -303,4 +278,6 @@ ULIBS += --coverage
# End of user defines
##############################################################################
include $(UNIT_TESTS_DIR)/unit_test_rules.mk
include $(UNIT_TESTS_DIR)/rules.mk

View File

@ -0,0 +1,11 @@
# Define project name here
PROJECT = rusefi_test
ifeq ("$(wildcard $(UNIT_TESTS_DIR)/googletest/LICENSE)","")
$(info Invoking "git submodule update --init")
$(shell git submodule update --init)
$(info Invoked "git submodule update --init")
# make is not happy about newly checked out module for some reason but next invocation would work
$(error Please run 'make' again. Please make sure you have 'git' command in PATH)
endif