mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 16:57:41 -04:00
* Fix one typical misusage of CMock. CMock has three policies when dealing with pointer: 1. compare_ptr : compare the pointer itself; 2. compare_data : compare the data which is pointed by pointer; 3. smart : compare the pointer itself, or compare the data; By default, CMock use compare_data policy. Most test cases in FreeRTOS need to compare the pointer itself, and we haven't use CMock properly. For example, one test case of vTaskResume is wrong, because current CMock compares the data pointed by pointer, so the error didn't exposed. There are so many misusage need to fix, it will take a lot of work. I'm here to fix one typical misusage first. * Try to fix formatting syntax. |
||
---|---|---|
.. | ||
CBMC | ||
CMock | ||
Target | ||
VeriFast | ||
README.md |
Testing in FreeRTOS
FreeRTOS kernel consists of common code and porting layer. Extensive static analysis and dynamic analysis are done on both to ensure functional correctness of FreeRTOS kernel.
For more information on FreeRTOS testing please refer to https://www.freertos.org/FreeRTOS-Coding-Standard-and-Style-Guide.html.
Directory structure
This directory is in working progress -- we are migrating scattered test cases to this directory. Here only lists what's currently under this directory.
./CBMC
: This directory contains automated proofs of the memory safety of various parts of the FreeRTOS code base../CMock
: This directory contains unit tests for verification of functional correctness of FreeRTOS Kernel APIs../Target
: This directory contains integration tests which run on target devices to verify functional correctness of FreeRTOS Kernel APIs../VeriFast
: This directory contains automated proofs of the functional correctness of various parts of the FreeRTOS code base.