Package cmocka: Information

  • Default inline alert: Version in the repository: 1.1.7-alt2

Source package: cmocka
Version: 1.1.5-alt1
Build time:  Mar 11, 2022, 02:50 PM
Report package bug
Home page: http://cmocka.org

License: Apache-2.0
Summary: Lightweight library to simplify and generalize unit tests for C
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.

List of rpms provided by this srpm:
cmocka-doc (noarch)
libcmocka (mipsel)
libcmocka-debuginfo (mipsel)
libcmocka-devel (mipsel)

Maintainer: Alexey Shabalin


    1. cmake
    2. glibc-devel
    3. ctest
    4. doxygen
    5. rpm-macros-cmake

Last changed


Nov. 6, 2021 Alexey Shabalin 1.1.5-alt1
- new version 1.1.5
- Split out a cmocka-doc package.
- Disabled LTO.
April 24, 2021 Arseny Maslennikov 1.1.3-alt2.1
- NMU: spec: adapt to new cmake macros.
April 6, 2019 Michael Shigorin 1.1.3-alt2
- introduce doc knob (on by default)