2453c23475
Implements: assert_ptr_equal with assert_ptr_equal_msg assert_ptr_not_equal with assert_ptr_not_equal_msg assert_null with assert_null_msg assert_non_null with assert_non_null_msg Signed-off-by: Friedrich Schwedler <fschwedler@emlix.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> |
||
---|---|---|
cmake | ||
coverity | ||
doc | ||
example | ||
include | ||
src | ||
tests | ||
.clang-format | ||
.clang_complete | ||
.editorconfig | ||
.gitignore | ||
.gitlab-ci.yml | ||
.ycm_extra_conf.py | ||
AUTHORS | ||
CMakeLists.txt | ||
CONTRIBUTING.md | ||
COPYING | ||
CPackConfig.cmake | ||
CTestConfig.cmake | ||
ChangeLog | ||
CompilerChecks.cmake | ||
ConfigureChecks.cmake | ||
DefineOptions.cmake | ||
INSTALL.md | ||
NEWS | ||
README.md | ||
cmocka-build-tree-settings.cmake.in | ||
cmocka-config.cmake.in | ||
cmocka.pc.cmake | ||
config.h.cmake | ||
meson.build | ||
meson_options.txt |
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.