Skip to content

Commit 1dfb997

Browse files
author
Soren Ptak
committed
Update the FreeRTOS-Kernel submodule to v10.6.0, update the tests to account for this, include the manifest checker as well
1 parent 34148c3 commit 1dfb997

File tree

91 files changed

+202
-60
lines changed

Some content is hidden

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

91 files changed

+202
-60
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
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"
@@ -11,3 +13,10 @@ dependencies:
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 674 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: 2 additions & 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
@@ -58,6 +58,7 @@ list(APPEND real_include_directories
5858
list(APPEND test_include_directories
5959
.
6060
${CMOCK_DIR}/vendor/unity/src
61+
${MODULE_ROOT_DIR}/test/unit-test/ConfigFiles
6162
${TCP_INCLUDE_DIRS}
6263
)
6364

test/unit-test/FreeRTOS_BitConfig/ut.cmake

Lines changed: 2 additions & 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

@@ -61,6 +61,7 @@ set(test_include_directories "")
6161
list(APPEND test_include_directories
6262
.
6363
${CMOCK_DIR}/vendor/unity/src
64+
${MODULE_ROOT_DIR}/test/unit-test/ConfigFiles
6465
${TCP_INCLUDE_DIRS}
6566
${MODULE_ROOT_DIR}/test/unit-test/${project_name}
6667
${CMAKE_BINARY_DIR}/Annexed_TCP_Sources

test/unit-test/FreeRTOS_DHCP/ut.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ list(APPEND real_include_directories
5555
list(APPEND test_include_directories
5656
.
5757
${CMOCK_DIR}/vendor/unity/src
58+
${MODULE_ROOT_DIR}/test/unit-test/ConfigFiles
5859
${TCP_INCLUDE_DIRS}
5960
${MODULE_ROOT_DIR}/test/unit-test/${project_name}
6061
)

test/unit-test/FreeRTOS_DHCPv6/FreeRTOS_DHCPv6_utest.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#include <string.h>
3434
#include <stdint.h>
3535

36+
#include "portmacro.h"
37+
3638
#include "mock_task.h"
3739
#include "mock_list.h"
3840
#include "mock_FreeRTOS_Sockets.h"

test/unit-test/FreeRTOS_DHCPv6/ut.cmake

Lines changed: 2 additions & 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

@@ -71,6 +71,7 @@ set(test_include_directories "")
7171
list(APPEND test_include_directories
7272
.
7373
${CMOCK_DIR}/vendor/unity/src
74+
${MODULE_ROOT_DIR}/test/unit-test/ConfigFiles
7475
${TCP_INCLUDE_DIRS}
7576
${MODULE_ROOT_DIR}/test/unit-test/${project_name}
7677
${CMAKE_BINARY_DIR}/Annexed_TCP_Sources

0 commit comments

Comments
 (0)