1
0
mirror of https://github.com/FreeRTOS/FreeRTOS-Plus-TCP synced 2025-10-23 18:38:33 +08:00
Commit Graph

21 Commits

Author SHA1 Message Date
ActoryOu
ded3f24ff9 Add unit test cases for TCP_UTils_IPv6 (#876) 2023-05-26 17:06:18 +08:00
ActoryOu
a494eeacd1 [IPv6] Add Unit Test for FreeRTOS_TCP_State_Handling_IPV6 (#875)
* TCP_State_Handling_IPV6 basic UT framework

* Add input check in function.

* Add unit test for TCP_State_Handling_IPV6

* Update Monika's comment
2023-05-26 16:44:53 +08:00
Monika Singh
1496d573ab Add Unit Test for FreeRTOS_TCP_Transmission_IPV6 (#871)
* Initial changes

* In between changes

* Add UTs

* Add UTs

* Fix spell check and uncrustify
2023-05-25 21:28:29 +05:30
ActoryOu
36173b61c3 [IPv6] Add Unit Test for FreeRTOS_UDP_IPv6. (#869)
* UDPv6 UT basic framework

* xProcessReceivedUDPPacket_IPv6: NULL socket

* xProcessReceivedUDPPacket_IPv6

* vProcessGeneratedUDPPacket_IPv6

* Code beautify

* Spelling
2023-05-23 09:40:10 +08:00
Monika Singh
61e929fe6d Add Unit Test for FreeRTOS_Bitconfig (#865)
* Initial Change

* Add UTs

* Remove macro file as it is not needed

* Initialise local vars

* Update comment
2023-05-18 15:02:13 +05:30
ActoryOu
8c86e2be02 [IPv6] Add Unit Test for FreeRTOS_DHCPv6. (#857)
* Basic DHCPv6 UT framework.

* Add test cases for eGetDHCPv6State

* Add reset test case

* Add test cases for solicit happy path.

* Refine test flow

* Add test cases for advertise.

* Add final timeout & test case on waiting reply.

* Add DHCP address lease unit test case

* Add test case for socket creation failed.

* Disable debug print

* Fix coverage scan

* Add test cases for wrong msg type & transaction ID.

* Add more error handling case.

* Add test cases for prvIsOptionLengthValid

* Rename test case

* Add test case for prvDHCPv6_handleStatusCode

* Add test cases for vDHCPv6ProcessEndPoint_HandleReply

* Add test case for xDHCPv6ProcessEndPoint_HandleAdvertise

* Add test case for xDHCPv6ProcessEndPoint_HandleState

* Refine again.

* Refine again.

* Remove fall back function, not implemented for IPv6.

* Remove unnecessary check

* Add expect state mismatch test.

* Add test cases for create/close sockets.

* Add error handling and UT

* Ignore unknown sub-option.

* Add coverage for prvStateName

* Fix corner case for sub-option.

* Fix spelling & build

* Code beautify and remove unnecessary define

* Remove list_macros.h in DHCPv6 unit test.
2023-05-17 14:33:58 +08:00
Monika Singh
ef5f4cd431 Add Unit Test for FreeRTOS_IPv6_Utils (#822)
* Add UT for FreeRTOS_IPv6_Utils

* Fix build issue

* Update comments for each function

* Update variable name

* Remove FreeRTOS_inet_pton6 changes

* Update pdFALSE

* Add the unit-test directory to main CMake

* Enable coverage check

* Updated comments
2023-05-17 11:12:58 +05:30
ActoryOu
a9c6f266d7 [IPv6] Add Unit Test for FreeRTOS_IPv6. (#860)
* Add FreeRTOS_IPv6 unit test framework

* Add test cases for prvAllowIPPacketIPv6

* Add test cases for eHandleIPv6ExtensionHeaders

* Add test cases for IPv6 for first configuration

* AddIPv6 different configuration framework

* Add test cases for xCheckIPv6SizeFields
2023-05-16 12:31:13 +08:00
Tony Josi
0639fd45a0 Fix unit test build issues and test failures for IP Utils (#699)
* Fix seg fault

* Remove ipconfigUSE_IPV6

* Add change for FreeRTOS_IP_Utils unit test case

* Fix  comments

* Uncrustify: triggered by comment.

* Fixed build issue with IP utils unit test build.

* Removed calculation of checksum being done twice for debug printf

---------

Co-authored-by: Monika Singh <moninom@amazon.com>
Co-authored-by: Monika Singh <108652024+moninom1@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
2023-02-07 10:19:09 +05:30
Monika Singh
b922775946 Fix unit test cases for FreeRTOS_Sockets (#651)
* Fix unit test cases for FreeRTOS_Sockets_TCP_API_utest
* Fix unit test case for FreeRTOS_Sockets_privates_utest
* Fix unit test case for FreeRTOS_Sockets_GenericAPI_utest
* Fix unit test case for FreeRTOS_Sockets_UDP_API_utest
* Update ucASCIIToHex
2023-01-06 17:35:28 +05:30
Tony Josi
02b9e0da5f Fixed failing unit test cases for TCP state handling (#656) 2023-01-06 12:37:03 +05:30
Tony Josi
e8bec09103 Fix tcp transmission test cases (#657)
* WIP fix tcp transmission utests

* WIP fixing failing test cases for TCP transmission unittests

* Fix issue with tcp test case arguments getting changed when passed to functions

* Fixed failing unit tests for TCP transmission unit tests
2023-01-06 12:35:29 +05:30
Tony Josi
206b43f259 Fixed failing test cases for TCP utils unit tests (#658) 2023-01-06 12:33:44 +05:30
Tony Josi
b3d41fb58e Fix TCP IP failing unit test cases (#649)
* WIP fix failing test cases for tcp ip utests

* Fixed TCP IP failing unit test cases

* Fixed failing unit tests for TCP IP diffconfig unit tests
2023-01-06 12:28:34 +05:30
Tony Josi
5ff68c779c Fix udp ip failing unit test cases (#647)
* WIP fix failing test cases

* Fixed failing tests for UDP IP unit tests

* Fixed unit tests failures after combining v4 specific source with main udp ip source

* Removing unused code
2023-01-06 12:26:44 +05:30
Tony Josi
575425866e Fixes the build issue with unit tests for IP timers (#603)
* WIP Fix build for IP ttimers

* Fixed build for IP timers

* removed global config settings specific to ip timers test

* Updating the branch with latestt target branch changes

* Uncrustify: triggered by comment.

Co-authored-by: GitHub Action <action@github.com>
2022-12-22 12:43:54 +05:30
Tony Josi
2e4c5a116a Ut build fixes for FreeRTOS_IP file (#623)
Fixed build failure for FreeRTOS_IP unit tests for IPv4
2022-12-19 15:22:21 +05:30
Tony Josi
2b0c174b0c Ut build fix ip utils ipv4 (#605)
* WIP fix build issues

* Edit unit test files to ake it buuildable

* WIP build issues fix

* Fixed IP utils ut build

* Removed update made on the global freertos ip config used by the unit tests

* Updating branch to the latest target branch

* Running uncrustify
2022-12-16 20:53:13 +05:30
Aniruddha Kanhere
a4124602cc Merge changes to main.
This commit brings in the refactoring and restructuring changes
from IntegrationTesting1 branch to the main branch.
It also includes additional unit tests for 100% coverage.
The rationale behind not creating a PR is that the conflicts were too
huge to be resolved correctly. Thus, a force push to the main branch is
being done.
2022-05-26 12:42:45 -07:00
Aniruddha Kanhere
b819157f19 Remove function defs from header files (#190)
* Add entropy

* remove warning

* Remove function defs from headers

* Some corrections

* More fixes and uncrustify

* Remove the BaseType min function

* Doxygen

* Fix one CBMC proof

* More cbmc proof fixes

* More cbmc fixes

* Some doxygen additions

* Update last CBMC proof

* Doxygen comments

* Doxygen updates

* Doxygen and spell check

* Spell check and unit-test

* Unit test fix

* Update after comments

* Update 2 after comments

* Move function around

* Uncrustify

* Update after comments

Co-authored-by: Gary Wicker <14828980+gkwicker@users.noreply.github.com>
2021-02-08 20:49:28 -05:00
AniruddhaKanhere
a51170153f Clean up the CMake files 2020-09-16 11:57:19 -07:00