Skip to content

Commit 7340a72

Browse files
committed
Revert "UT: Add streambuffer test to make PR FreeRTOS#391 pass (FreeRTOS#690)"
This reverts commit a32ab34.
1 parent dd28c8c commit 7340a72

File tree

6 files changed

+37
-464
lines changed

6 files changed

+37
-464
lines changed
Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,43 @@
1-
# Indent with spaces
1+
# indent with spaces
22
.RECIPEPREFIX := $(.RECIPEPREFIX) $(.RECIPEPREFIX)
3+
34
# Do not move this line below the include
4-
MAKEFILE_ABSPATH := $(abspath $(lastword $(MAKEFILE_LIST)))
5+
MAKEFILE_ABSPATH := $(abspath $(lastword $(MAKEFILE_LIST)))
56
include ../makefile.in
67

7-
# SUITES lists the suites contained in subdirectories of this directory
8-
SUITES += size_mismatch
9-
SUITES += message_buffer
8+
# PROJECT_SRC lists the .c files under test
9+
PROJECT_SRC := stream_buffer.c
10+
11+
# PROJECT_DEPS_SRC list the .c file that are dependencies of PROJECT_SRC files
12+
# Files in PROJECT_DEPS_SRC are excluded from coverage measurements
13+
PROJECT_DEPS_SRC :=
14+
15+
# PROJECT_HEADER_DEPS: headers that should be excluded from coverage measurements.
16+
PROJECT_HEADER_DEPS := FreeRTOS.h
17+
18+
# SUITE_UT_SRC: .c files that contain test cases (must end in _utest.c)
19+
SUITE_UT_SRC := message_buffer_utest.c
20+
21+
# SUITE_SUPPORT_SRC: .c files used for testing that do not contain test cases.
22+
# Paths are relative to PROJECT_DIR
23+
SUITE_SUPPORT_SRC :=
24+
25+
# List the headers used by PROJECT_SRC that you would like to mock
26+
MOCK_FILES_FP := $(KERNEL_DIR)/include/task.h
27+
MOCK_FILES_FP += $(UT_ROOT_DIR)/config/fake_assert.h
28+
MOCK_FILES_FP += $(UT_ROOT_DIR)/config/fake_port.h
29+
30+
# List any addiitonal flags needed by the preprocessor
31+
CPPFLAGS += -DportUSING_MPU_WRAPPERS=0
32+
33+
# List any addiitonal flags needed by the compiler
34+
CFLAGS +=
35+
36+
# Try not to edit beyond this line unless necessary.
37+
38+
# Project is determined based on path: $(UT_ROOT_DIR)/$(PROJECT)
39+
PROJECT := $(lastword $(subst /, ,$(dir $(abspath $(MAKEFILE_ABSPATH)))))
1040

11-
# PROJECT and SUITE variables are determined based on path like so:
12-
# $(UT_ROOT_DIR)/$(PROJECT)/$(SUITE)
13-
PROJECT := $(lastword $(subst /, ,$(dir $(abspath $(MAKEFILE_ABSPATH)))))
41+
export
1442

15-
include ../subdir.mk
43+
include ../testdir.mk

FreeRTOS/Test/CMock/message_buffer/message_buffer/Makefile

Lines changed: 0 additions & 45 deletions
This file was deleted.

FreeRTOS/Test/CMock/message_buffer/size_mismatch/FreeRTOSConfig.h

Lines changed: 0 additions & 142 deletions
This file was deleted.

FreeRTOS/Test/CMock/message_buffer/size_mismatch/Makefile

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)