mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-15 01:07:47 -04:00
* Implement Kernel Unit Test Framework with CMock * Add Readme.md to unit tests * Add Posix build checker to git actions * Add Ruby requirement * Fix file header checks * Fix header checks * Add color output to test runs |
||
---|---|---|
.. | ||
CMock@afa294982e | ||
config | ||
doc | ||
queue | ||
Makefile | ||
makefile.in | ||
Readme.md |
FreeRTOS Kernel Unit Tests
Prerequisites as tested
GCC
gcc: gcc (GCC) 9.2.0
LCOV
lcov: LCOV version 1.14-6-g40580cd
Make
GNU Make 3.82
Ruby
ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
Doxygen (optional)
1.8.5
How to run
$ make help
Usage: $ make <unit>
where <unit> is one of: queue doc all run run_formatted run_col
run_col_formatted coverage
Explanation
$ make queue
Would build the kernel queue unit tests and put the executable in build/bin
$ make doc
Would generate the doxygen documentation in build/doc
$ make run | run_formatted | run_col | run_col_formatted
Would build all unit tests and runs them one after the other with different options between normal and formatted and colored for easily spotting errors
$ make coverage
Would build all unit tests, runs them one after the other, then generates html code coverage and places them in build/coverage with initial file index.html