Skip to content

Commit a3413d2

Browse files
kar-rahul-awsmoninom1Skptak
authored
Fix FreeRTOS+TCP unit tests for latest Kernel V10.6.1 (#1015)
* Fix unit tests for latest FreeRTOS-Kernel V10.6.1 * Update the FreeRTOS-Kernel submodule to V10.6.1 * Update the Coverage-Cop action to use new parameter name --------- Co-authored-by: Monika Singh <[email protected]> Co-authored-by: Soren Ptak <[email protected]>
1 parent 34148c3 commit a3413d2

File tree

51 files changed

+95
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+95
-61
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Check Coverage
3838
uses: FreeRTOS/CI-CD-Github-Actions/coverage-cop@main
3939
with:
40-
path: ./test/unit-test/build/coverage.info
40+
coverage-file: ./test/unit-test/build/coverage.info
4141

4242
spell-check:
4343
runs-on: ubuntu-latest
@@ -86,6 +86,27 @@ jobs:
8686
with:
8787
path: ./
8888

89+
verify-manifest:
90+
runs-on: ubuntu-latest
91+
steps:
92+
- uses: actions/checkout@v3
93+
with:
94+
submodules: true
95+
fetch-depth: 0
96+
97+
# At time of writing the gitmodules are set not to pull
98+
# Even when using fetch submodules. Need to run this command
99+
# To force it to grab them.
100+
- name: Perform Recursive Clone
101+
shell: bash
102+
run: git submodule update --checkout --init --recursive
103+
104+
- name: Run manifest verifier
105+
uses: FreeRTOS/CI-CD-GitHub-Actions/manifest-verifier@v2
106+
with:
107+
path: ./
108+
fail-on-incorrect-version: true
109+
89110
build-checks:
90111
runs-on: ubuntu-latest
91112
steps:
@@ -192,6 +213,7 @@ jobs:
192213
run: |
193214
git-secrets --register-aws
194215
git-secrets --scan
216+
195217
proof_ci:
196218
runs-on: cbmc_ubuntu-latest_16-core
197219
steps:

lexicon.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ chextochar
134134
cli
135135
clk
136136
cmd
137+
cmock
137138
co
138139
col
139140
com
@@ -2073,6 +2074,7 @@ xtaskcreate
20732074
xtaskcreatestatic
20742075
xtaskgenericnotify
20752076
xtaskgetcurrenttaskhandle
2077+
xtaskgetmpusettings
20762078
xtaskgettickcount
20772079
xtaskhandle
20782080
xtasknotifygive

manifest.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1-
name : "FreeRTOS-Plus-TCP"
1+
name: "FreeRTOS-Plus-TCP"
22
version: "V4.0.0"
3-
description: "Thread safe FreeRTOS TCP/IP stack working on top of the FreeRTOS-Kernel to implement the TCP/IP protocol. Suitable for microcontrollers."
3+
description:
4+
"Thread safe FreeRTOS TCP/IP stack working on top of the FreeRTOS-Kernel to
5+
implement the TCP/IP protocol. Suitable for microcontrollers."
46
license: "MIT"
57
dependencies:
68
- name: "FreeRTOS-Kernel"
7-
version: "V10.6.0"
9+
version: "V10.6.1"
810
license: "MIT"
911
repository:
1012
type: "git"
1113
url: "https://github.com/FreeRTOS/FreeRTOS-Kernel.git"
1214
path: "test/FreeRTOS-Kernel"
1315
branch: "main"
16+
17+
- name: "CMock"
18+
version: "afa2949"
19+
repository:
20+
type: "git"
21+
url: " https://github.com/ThrowTheSwitch/CMock.git"
22+
path: "tools/CMock"

test/FreeRTOS-Kernel

Submodule FreeRTOS-Kernel updated 676 files

test/unit-test/ConfigFiles/portmacro.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@
113113
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
114114
/*-----------------------------------------------------------*/
115115

116+
/** We need to define it here because CMock does not recognize the
117+
* #if ( portUSING_MPU_WRAPPERS == 1 ) guard around xTaskGetMPUSettings
118+
* and then complains about the missing xMPU_SETTINGS type in the
119+
* generated mocks. */
120+
typedef struct MPU_SETTINGS
121+
{
122+
uint32_t ulDummy;
123+
} xMPU_SETTINGS;
124+
125+
116126
/*
117127
* Tasks run in their own pthreads and context switches between them
118128
* are always a full memory barrier. ISRs are emulated as signals

test/unit-test/FreeRTOS_ARP/ut.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ list(APPEND mock_include_list
2727
.
2828
${TCP_INCLUDE_DIRS}
2929
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/include
30-
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
3130
${MODULE_ROOT_DIR}/test/unit-test/ConfigFiles
31+
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
3232
)
3333

3434
#list the definitions of your mocks to control what to be included

test/unit-test/FreeRTOS_BitConfig/ut.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ list(APPEND mock_include_list
2323
.
2424
${TCP_INCLUDE_DIRS}
2525
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/include
26-
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
2726
${MODULE_ROOT_DIR}/test/unit-test/ConfigFiles
27+
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
2828
${MODULE_ROOT_DIR}/test/unit-test/${project_name}
2929
)
3030

test/unit-test/FreeRTOS_DHCPv6/ut.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ list(APPEND mock_include_list
3232
.
3333
${TCP_INCLUDE_DIRS}
3434
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/include
35-
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
3635
${MODULE_ROOT_DIR}/test/unit-test/ConfigFiles
36+
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
3737
${MODULE_ROOT_DIR}/test/unit-test/${project_name}
3838
)
3939

test/unit-test/FreeRTOS_ICMP/ut.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ list(APPEND mock_include_list
3737
.
3838
${TCP_INCLUDE_DIRS}
3939
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/include
40-
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
4140
${MODULE_ROOT_DIR}/test/unit-test/ConfigFiles
41+
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
4242
${MODULE_ROOT_DIR}/test/unit-test/${project_name}
4343
)
4444

test/unit-test/FreeRTOS_ICMP_wo_assert/ut.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ list(APPEND mock_include_list
3636
.
3737
${TCP_INCLUDE_DIRS}
3838
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/include
39-
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
4039
${MODULE_ROOT_DIR}/test/unit-test/ConfigFiles
40+
${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
4141
${MODULE_ROOT_DIR}/test/unit-test/${project_name}
4242
)
4343

0 commit comments

Comments
 (0)