Clone this repo:
  1. 5a4b158 cmake: Add C99 requirement to target properties by Alexander Dahl · 5 months ago master
  2. 93703d7 cmake: Combine target properties in a single statement by Alexander Dahl · 5 months ago
  3. 160dffe Don't use non-literal format strings by Wolfram Rösler · 10 months ago
  4. 65d69f7 Fix unexpanded %s in leftover values error messages by Wolfram Rösler · 10 months ago
  5. a4fc3dd cmocka: Use intmax_t for assert_return_code() by Andreas Schneider · 12 months ago


cmocka is an elegant unit testing framework for C with support for mock objects. It only requires the standard C library, works on a range of computing platforms (including embedded) and with different compilers.

For information about how to use the cmocka unit testing framework see doc/index.html or


To compile the cmocka library and example applications run, create a build dir, and in the build dir call 'cmake /path/to/cmocka' followed by 'make'. On Windows you can use the cmake gui. More details can be found in the INSTALL file.