FreeRTOS-Kernel/FreeRTOS/Test/CMock
alfred gedeon 9b9011917a
Add Kernel Unit Tests Environment (#494)
* 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
2021-02-08 15:26:01 -08:00
..
CMock@afa294982e Inititial stub for cmock tests (#297) 2020-09-24 17:06:28 -07:00
config [AUTO][RELEASE]: Bump file header version to "202012.00" 2020-12-15 10:20:29 -07:00
doc Add Kernel Unit Tests Environment (#494) 2021-02-08 15:26:01 -08:00
queue Add Kernel Unit Tests Environment (#494) 2021-02-08 15:26:01 -08:00
Makefile Add Kernel Unit Tests Environment (#494) 2021-02-08 15:26:01 -08:00
makefile.in Add Kernel Unit Tests Environment (#494) 2021-02-08 15:26:01 -08:00
Readme.md Add Kernel Unit Tests Environment (#494) 2021-02-08 15:26:01 -08:00

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