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