You can not 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
Andreas Schneider a79b97cb92
coverity: Add missing functions to model file
2 days ago
cmake build: improve AddCMockaTest `LINK_OPTIONS` docs 1 month ago
coverity coverity: Add missing functions to model file 2 days ago
doc doc: Link to the examples for mocking 7 days ago
example cmake: Use C99 and define GNU and POSIX flags directly at source files 4 days ago
include include: Improve expect_check() documentation 4 days ago
src cmake: Use C99 and define GNU and POSIX flags directly at source files 4 days ago
tests cmake: Use C99 and define GNU and POSIX flags directly at source files 4 days ago
.clang-format Add clang-format file 6 months ago
.clang_complete Add obj directory for config.h to .clang_complete. 9 years ago
.editorconfig Update editorconfig 11 months ago
.gitignore gitignore: Add .cache directory 11 months ago
.gitlab-ci.yml gitlab-ci: Build also the coverity model files 2 days ago
.ycm_extra_conf.py Add YouCompleteMe config. 9 years ago
AUTHORS cmocka: Implement a new test runner. 8 years ago
CMakeLists.txt Wrapped test and example build in project test 2 weeks ago
COPYING misc: Fix license in COPYING. 12 years ago
CPackConfig.cmake cmake: Set the project version 4 years 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 days ago
ConfigureChecks.cmake src: use __builtin_align_down, if available 1 month ago
DefineOptions.cmake cmocka: Remove deprecated functions and cmockery legacy support 2 years ago
INSTALL.md Improve INSTALL.md 7 days ago
NEWS Tue Aug 26 10:18:02 2008 Google Inc. <opensource@google.com> 15 years ago
README.md Improve INSTALL.md 7 days ago
cmocka-build-tree-settings.cmake.in cmake: Fix usage of cmocka with build tree 3 years ago
cmocka.pc.cmake cmake: Fix path relocation in pkgconfig file for mingw 2 months ago
config.h.cmake Don't redefine uintptr_t 3 years ago
meson.build Better integration of cmocka as meson-build git subprojects 2 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