error running unittest

8 views
Skip to first unread message

subhasankari sargururaj

unread,
Aug 13, 2024, 2:50:11 AM8/13/24
to cpputest
I am using cpputest for my unittest.And i have different projects for example 455 481.I have created the branches for those projects and written tests.Individually it is working fine but when i merged the branch 481 with 455 .,455 not supporting 481 viceversa since i have create the makefile correctly and also i have single testfile for both the projects provided problem.how to resolve it here i have attached the makefile

COMPONENT_NAME = unit_error

CONFIG=481

ifeq ($(CONFIG), 455)

CONFIG_DIR = configuration/455_config_data

$(PROJECT_HOME_DIR)/mtdlib/ha/stm32f0xx/source/ha_stm32f0xx_output.c \

else ifeq ($(CONFIG), 481)

CONFIG_DIR = configuration/481_config_data

SRC_FILES += $(PROJECT_HOME_DIR)/mtdlib/driver/source/pca9632.c

else

$(error Unsupported CONFIG value)

endif

COMMON_SRC_FILES = \

CONFIG_SRC_FILES = \

$(PROJECT_HOME_DIR)/$(CONFIG_DIR)/source/globals.c \

$(PROJECT_HOME_DIR)/$(CONFIG_DIR)/source/initialize.c\

TEST_SRC_FILES = \

$(PROJECT_HOME_DIR)/tests/unittest_main.cpp \

$(PROJECT_HOME_DIR)/tests/src/error_c_TEST.cpp

INCLUDE_DIRS = \


# Combine all source files

SRC_FILES = $(COMMON_SRC_FILES) $(CONFIG_SRC_FILES)

include makefile_config.mk

Reply all
Reply to author
Forward
0 new messages