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 <asn@cryptomilk.org>
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
.ycm_extra_conf.py 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
INSTALL.md Improve INSTALL.md 4 months ago
NEWS Tue Aug 26 10:18:02 2008 Google Inc. <opensource@google.com> 15 years ago
README.md Improve INSTALL.md 4 months ago
cmocka-build-tree-settings.cmake.in cmake: Fix usage of cmocka with build tree 4 years ago
cmocka-config.cmake.in 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
meson.build Better integration of cmocka as meson-build git subprojects 3 years ago
meson_options.txt meson: Build and run unit tests 4 years ago

README.md

cmocka

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 https://api.cmocka.org/.

Compiling

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.md file.

Website

https://cmocka.org