No description
Find a file
Yegor Yefremov 5912a32c42 CMakeLists.txt: remove an obsolete policy
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>
2025-06-25 09:52:20 +02:00
cmake cmake: Add address sanitizer flags for msvc 2025-02-04 17:01:50 +01:00
coverity coverity: Add missing functions to model file 2023-02-03 12:47:42 +01:00
doc doc: Fix pre-defined macro definition 2024-07-08 10:55:57 +02:00
example feat(output-overrides): refactor to use structure parameter 2025-02-20 10:07:08 +01:00
include cmocka.h: Fix spelling 2025-04-11 11:12:04 +02:00
src cmocka.c: Fix cppcheck issues 2025-04-11 11:12:04 +02:00
tests Add tests for int_range 2025-04-11 11:12:04 +02:00
.clang-format clang-format: Update to reflect coding style 2024-02-06 11:07:06 +01:00
.clang_complete Add obj directory for config.h to .clang_complete. 2013-12-13 10:55:40 +01:00
.editorconfig Update editorconfig 2022-02-26 20:42:14 +01:00
.gitignore gitignore: Add .cache directory 2022-03-02 09:04:01 +01:00
.gitlab-ci.yml gitlab-ci: Fix mingw test runs 2025-02-04 17:33:05 +01:00
.ycm_extra_conf.py Add YouCompleteMe config. 2014-04-11 15:09:12 +02:00
AUTHORS cmocka: Implement a new test runner. 2015-02-08 10:29:09 +01:00
ChangeLog Bump version to 1.1.5 2019-03-28 13:33:38 +01:00
CMakeLists.txt CMakeLists.txt: remove an obsolete policy 2025-06-25 09:52:20 +02:00
cmocka-build-tree-settings.cmake.in cmake: Fix usage of cmocka with build tree 2019-10-22 09:09:06 +02:00
cmocka-config.cmake.in cmake: Set CMOCKA_LIBRARIES in package config for backwards compatibility 2023-03-22 15:38:32 +01:00
cmocka.pc.cmake cmake: Fix path relocation in pkgconfig file for mingw 2022-12-01 19:16:08 +01:00
CompilerChecks.cmake cmake: Add more compiler warnings 2023-02-01 08:38:44 +01:00
config.h.cmake Don't redefine uintptr_t 2019-11-19 15:41:58 +01:00
ConfigureChecks.cmake treewide: Use bool intead of int wherever possible 2024-02-12 15:57:02 +01:00
CONTRIBUTING.md Add initial CONTRIBUTING.md 2024-02-12 15:56:37 +01:00
CPackConfig.cmake Rename COPYING to LICENSE 2025-02-01 10:11:15 +01:00
CTestConfig.cmake ctest: Move to new dashboard 2018-07-05 10:18:59 +02:00
DefineOptions.cmake cmocka: Remove deprecated functions and cmockery legacy support 2020-10-12 08:25:26 +02:00
INSTALL.md Improve INSTALL.md 2023-01-29 14:42:25 +01:00
LICENSE Rename COPYING to LICENSE 2025-02-01 10:11:15 +01:00
meson.build meson.build: install library if not a subproject 2023-08-01 11:05:44 +02:00
meson_options.txt meson: Build and run unit tests 2019-08-22 11:41:49 +02:00
NEWS Tue Aug 26 10:18:02 2008 Google Inc. <opensource@google.com> 2008-08-26 17:51:56 +00:00
README.md Improve INSTALL.md 2023-01-29 14:42:25 +01:00
sbom.cdx.json Add a SBOM template in CycloneDX format 2025-02-05 09:34:25 +01:00

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.

Website

https://cmocka.org