MadBerry58 / pico_trials

0 stars 0 forks source link

Set up continuous integration build chain #2

Open MadBerry58 opened 1 year ago

MadBerry58 commented 1 year ago
Camelaru35 commented 1 year ago

The unit test framework will be based on Cmocka.

Further documentation about the tool can be found at: https://cmocka.org/talks/cmocka_unit_testing_and_mocking.pdf

Specific APIs and their functionalities can be found at: https://api.cmocka.org/group__cmocka.html

Useful examples: https://git.cryptomilk.org/projects/cmocka.git/tree/example/mock

Important NOTE: It is possible that some embedded platforms do not provide definitions for required types or that the guards to protect them are not defined. To address this issue, you can create a header file name 'cmocka_platform.h' with the required types and definitions. After that point, cmake to the include directory using:

cmake -DCMOCKA_PLATFORM_INCLUDE=/home/compiler/my/include_directory