Skip to content

Commit efa435e

Browse files
authored
Merge branch 'main' into TCP_ZeroCopyFix_PR
2 parents 0df5929 + a3413d2 commit efa435e

File tree

52 files changed

+97
-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.

52 files changed

+97
-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:

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ set(FREERTOS_PLUS_TCP_NETWORK_IF_LIST
5858
DRIVER_SAM
5959
ESP32
6060
KSZ8851SNL
61+
LIBSLIRP
6162
LPC17xx LPC18xx LPC54018
6263
M487
6364
MPS2_AN385
@@ -96,6 +97,7 @@ if(NOT FREERTOS_PLUS_TCP_NETWORK_IF IN_LIST FREERTOS_PLUS_TCP_NETWORK_IF_LIST )
9697
" DRIVER_SAM Target: Driver SAM Tested: TODO\n"
9798
" ESP32 Target: ESP-32 Tested: TODO\n"
9899
" KSZ8851SNL Target: ksz8851snl Tested: TODO\n"
100+
" LIBSLIRP Target: libslirp Tested: TODO\n"
99101
" POSIX Target: linux/Posix\n"
100102
" LPC17xx Target: LPC17xx Tested: TODO\n"
101103
" LPC18xx Target: LPC18xx Tested: TODO\n"

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

0 commit comments

Comments
 (0)