|
|
||
|---|---|---|
| .. | ||
| cmake | ||
| coverity | ||
| doc | ||
| example | ||
| include | ||
| src | ||
| tests | ||
| .clang_complete | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .ycm_extra_conf.py | ||
| AUTHORS | ||
| CMakeLists.txt | ||
| 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 file.