mirror of
https://review.coreboot.org/cmocka
synced 2025-10-21 16:22:47 -04:00
No description
![]() CMP0048 was introduced in CMake 3.0 and thus is automatically set to NEW via the cmake_minimum_required(VERSION 3.10.0) command. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.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 | ||
ChangeLog | ||
CMakeLists.txt | ||
cmocka-build-tree-settings.cmake.in | ||
cmocka-config.cmake.in | ||
cmocka.pc.cmake | ||
CompilerChecks.cmake | ||
config.h.cmake | ||
ConfigureChecks.cmake | ||
CONTRIBUTING.md | ||
CPackConfig.cmake | ||
CTestConfig.cmake | ||
DefineOptions.cmake | ||
INSTALL.md | ||
LICENSE | ||
meson.build | ||
meson_options.txt | ||
NEWS | ||
README.md | ||
sbom.cdx.json |
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.