An example of unit testing embedded C code using the cmocka framework
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
README.md

README.md

cmocka-embedded-example

Example code for using the cmocka framework to unit test embedded code.

More details can be found on the corresponding article on my blog.

Testing

To run the tests, clone this repo and:

cd test
make

make, cmake, gcc are all dependencies that you will need.