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.
![]() |
2 days ago | |
---|---|---|
cmake | 1 month ago | |
coverity | 2 days ago | |
doc | 7 days ago | |
example | 4 days ago | |
include | 4 days ago | |
src | 4 days ago | |
tests | 4 days ago | |
.clang-format | 6 months ago | |
.clang_complete | 9 years ago | |
.editorconfig | 11 months ago | |
.gitignore | 11 months ago | |
.gitlab-ci.yml | 2 days ago | |
.ycm_extra_conf.py | 9 years ago | |
AUTHORS | 8 years ago | |
CMakeLists.txt | 2 weeks ago | |
COPYING | 12 years ago | |
CPackConfig.cmake | 4 years ago | |
CTestConfig.cmake | 5 years ago | |
ChangeLog | 4 years ago | |
CompilerChecks.cmake | 4 days ago | |
ConfigureChecks.cmake | 1 month ago | |
DefineOptions.cmake | 2 years ago | |
INSTALL.md | 7 days ago | |
NEWS | 15 years ago | |
README.md | 7 days ago | |
cmocka-build-tree-settings.cmake.in | 3 years ago | |
cmocka.pc.cmake | 2 months ago | |
config.h.cmake | 3 years ago | |
meson.build | 2 years ago | |
meson_options.txt | 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.