mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-09 13:15:15 -05:00
* Test: add multi config ability to build system * Remove Tests that are not implemented yet from the makefile * Fix header check * Test: Unit Test tasks.c * UnitTest: tasks.c Save progress * saving some work 70% coverage * coverage 77% * tasks.c coverage 90% * tasks.c coverage 95% * Cleanup and common header * Cover some extra branches, no_mutex +stack growth * Fix Makefile not to use modified version of c-preprocessor * Remove c-preprocessor errros * Rebase and add some tests * Fortify_source=1 and O0 are mutually exclusive * Style: Uncrustify code * Style: Fix indent * Fix Header checks * Add prototypes * Build: use unifdef instead of the c-preprocessor to generate different configurations * Build: fix makefile cflags * Fix UT after upgrading kernel version * Resolve conflicts and test failures * Comment fix version number * Fix build error * Update FreeRTOS/Test/CMock/Makefile Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com> Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
51 lines
1.7 KiB
Makefile
51 lines
1.7 KiB
Makefile
# indent with spaces
|
|
.RECIPEPREFIX := $(.RECIPEPREFIX) $(.RECIPEPREFIX)
|
|
|
|
# Do not move this line below the include
|
|
MAKEFILE_ABSPATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
include ../makefile.in
|
|
|
|
# PROJECT_SRC lists the .c files under test
|
|
PROJECT_SRC := event_groups.c
|
|
|
|
# PROJECT_DEPS_SRC list the .c file that are dependencies of PROJECT_SRC files
|
|
# Files in PROJECT_DEPS_SRC are excluded from coverage measurements
|
|
PROJECT_DEPS_SRC :=
|
|
|
|
# PROJECT_HEADER_DEPS: headers that should be excluded from coverage measurements.
|
|
PROJECT_HEADER_DEPS := FreeRTOS.h
|
|
|
|
# SUITE_UT_SRC: .c files that contain test cases (must end in _utest.c)
|
|
SUITE_UT_SRC := event_groups_utest.c
|
|
|
|
# SUITE_SUPPORT_SRC: .c files used for testing that do not contain test cases.
|
|
# Paths are relative to PROJECT_DIR
|
|
SUITE_SUPPORT_SRC :=
|
|
|
|
# List the headers used by PROJECT_SRC that you would like to mock
|
|
MOCK_FILES_FP += $(KERNEL_DIR)/include/task.h
|
|
MOCK_FILES_FP += $(KERNEL_DIR)/include/list.h
|
|
MOCK_FILES_FP += $(KERNEL_DIR)/include/timers.h
|
|
MOCK_FILES_FP += $(UT_ROOT_DIR)/config/fake_assert.h
|
|
MOCK_FILES_FP += $(UT_ROOT_DIR)/config/fake_port.h
|
|
MOCK_FILES_FP += $(PROJECT_DIR)/list_macros.h
|
|
|
|
|
|
# List any addiitonal flags needed by the preprocessor
|
|
CPPFLAGS += -DportUSING_MPU_WRAPPERS=0
|
|
CPPFLAGS += -include list_macros.h
|
|
CFLAGS += -include list_macros.h
|
|
|
|
# List any addiitonal flags needed by the compiler
|
|
CFLAGS += -Wno-incompatible-pointer-types
|
|
|
|
# Try not to edit beyond this line unless necessary.
|
|
|
|
# Project is determined based on path: $(UT_ROOT_DIR)/$(PROJECT)
|
|
PROJECT := $(lastword $(subst /, ,$(dir $(abspath $(MAKEFILE_ABSPATH)))))
|
|
|
|
export
|
|
|
|
include ../testdir.mk
|
|
|
|
|