alder_lake_bios/EDK2/UnitTestFrameworkPkg/Library/CmockaLib/cmocka
xinb f2e5d6c59f init 2026-06-18 00:35:57 +08:00
..
cmake init 2026-06-18 00:35:57 +08:00
coverity init 2026-06-18 00:35:57 +08:00
doc init 2026-06-18 00:35:57 +08:00
example init 2026-06-18 00:35:57 +08:00
include init 2026-06-18 00:35:57 +08:00
src init 2026-06-18 00:35:57 +08:00
tests init 2026-06-18 00:35:57 +08:00
.clang_complete init 2026-06-18 00:35:57 +08:00
.gitignore init 2026-06-18 00:35:57 +08:00
.gitlab-ci.yml init 2026-06-18 00:35:57 +08:00
.ycm_extra_conf.py init 2026-06-18 00:35:57 +08:00
AUTHORS init 2026-06-18 00:35:57 +08:00
CMakeLists.txt init 2026-06-18 00:35:57 +08:00
COPYING init 2026-06-18 00:35:57 +08:00
CPackConfig.cmake init 2026-06-18 00:35:57 +08:00
CTestConfig.cmake init 2026-06-18 00:35:57 +08:00
ChangeLog init 2026-06-18 00:35:57 +08:00
CompilerChecks.cmake init 2026-06-18 00:35:57 +08:00
ConfigureChecks.cmake init 2026-06-18 00:35:57 +08:00
DefineOptions.cmake init 2026-06-18 00:35:57 +08:00
INSTALL.md init 2026-06-18 00:35:57 +08:00
NEWS init 2026-06-18 00:35:57 +08:00
README.md init 2026-06-18 00:35:57 +08:00
cmocka-build-tree-settings.cmake.in init 2026-06-18 00:35:57 +08:00
cmocka-config.cmake.in init 2026-06-18 00:35:57 +08:00
cmocka.pc.cmake init 2026-06-18 00:35:57 +08:00
config.h.cmake init 2026-06-18 00:35:57 +08:00
meson.build init 2026-06-18 00:35:57 +08:00
meson_options.txt init 2026-06-18 00:35:57 +08:00

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 file.

Website

https://cmocka.org