Wed, 18 Nov 2026 18:21:02 UTC Log in
An elegant unit testing framework for C with support for mock objects 5.95 MB built 2026-10-13 05:27:35 GMT

Description

There are a variety of C unit testing frameworks available however many of them are fairly complex and require the latest compiler technology. Some development requires the use of old compilers which makes it difficult to use some unit testing frameworks. In addition many unit testing frameworks assume the code being tested is an application or module that is targeted to the same platform that will ultimately execute the test. Because of this assumption many frameworks require the inclusion of standard C library headers in the code module being tested which may collide with the custom or incomplete implementation of the C library utilized by the code under test. Cmocka only requires a test application is linked with the standard C library which minimizes conflicts with standard C library headers. Also, CMocka tries to avoid the use of some of the newer features of C compilers. This results in CMocka being a relatively small library that can be used to test a variety of exotic code. If a developer wishes to simply test an application with the latest compiler then other unit testing frameworks may be preferable. This is the successor of Google's Cmockery.

Dependencies

11 total
Requires7
  • cmake
  • doxygen
  • gcc
  • glibc-devel
  • gpgverify
  • rpmlib(CompressedFileNames) <= 3.0.4-1
  • rpmlib(FileDigests) <= 4.6.0-1
Provides4
  • cmocka-doc = 2.0.2-4.fc45
  • libcmocka = 2.0.2-4.fc45
  • libcmocka-cmake-devel = 2.0.2-4.fc45
  • libcmocka-devel = 2.0.2-4.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances

Files

5
Files 1–5 of 5

Component of

buildroots that installed this RPM

No Buildroots