Example code for using the cmocka framework to unit test embedded code.
More details can be found on the corresponding article on my blog.
To run the tests, clone this repo and:
cd test
make
make
, cmake
, gcc
are all dependencies that you will need.