You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Alexander Courtis 1b019882ba 89 add deprecated cm_print_error
Reviewed-by: Andreas Schneider <>
4 weeks ago
cmake build: improve AddCMockaTest `LINK_OPTIONS` docs 5 months ago
coverity coverity: Add missing functions to model file 4 months ago
doc doc: Link to the examples for mocking 4 months ago
example cmake: Use C99 and define GNU and POSIX flags directly at source files 4 months ago
include 89 add deprecated cm_print_error 4 weeks ago
src cmocka: Add overflow check for test_calloc() 2 months ago
tests tests: Add test for test_calloc() 2 months ago
.clang-format Add clang-format file 10 months ago
.clang_complete Add obj directory for config.h to .clang_complete. 10 years ago
.editorconfig Update editorconfig 1 year ago
.gitignore gitignore: Add .cache directory 1 year ago
.gitlab-ci.yml gitlab-ci: Add code coverage 2 months ago Add YouCompleteMe config. 9 years ago
AUTHORS cmocka: Implement a new test runner. 8 years ago
CMakeLists.txt cmake: Set CMOCKA_LIBRARIES in package config for backwards compatibility 2 months ago
COPYING misc: Fix license in COPYING. 12 years ago
CPackConfig.cmake cpack: Update ignore files for source package generation 3 months ago
CTestConfig.cmake ctest: Move to new dashboard 5 years ago
ChangeLog Bump version to 1.1.5 4 years ago
CompilerChecks.cmake cmake: Add more compiler warnings 4 months ago
ConfigureChecks.cmake src: use __builtin_align_down, if available 5 months ago
DefineOptions.cmake cmocka: Remove deprecated functions and cmockery legacy support 3 years ago Improve 4 months ago
NEWS Tue Aug 26 10:18:02 2008 Google Inc. <> 15 years ago Improve 4 months ago cmake: Fix usage of cmocka with build tree 4 years ago cmake: Set CMOCKA_LIBRARIES in package config for backwards compatibility 2 months ago
cmocka.pc.cmake cmake: Fix path relocation in pkgconfig file for mingw 6 months ago
config.h.cmake Don't redefine uintptr_t 4 years ago Better integration of cmocka as meson-build git subprojects 3 years ago
meson_options.txt meson: Build and run unit tests 4 years 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 file.