libcmocka - Lightweight library to simplify and generalize unit tests for C

Property Value
Distribution Fedora 27
Repository Fedora i386
Package name libcmocka
Package version 1.1.1
Package release 7.fc27
Package architecture i686
Package type rpm
Installed size 58.39 KB
Download size 37.00 KB
Official Mirror
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
This is the successor of Google's Cmockery.


Package Version Architecture Repository
libcmocka-1.1.1-7.fc27.x86_64.rpm 1.1.1 x86_64 Fedora
libcmocka-1.1.1-7.fc27.i686.rpm 1.1.1 i686 Fedora
libcmocka - - -


Name Value
/sbin/ldconfig - - - -
rtld(GNU_HASH) -


Name Value
libcmocka = 1.1.1-7.fc27
libcmocka(x86-32) = 1.1.1-7.fc27 -


Name Value
cmockery2 -


Type URL
Binary Package libcmocka-1.1.1-7.fc27.i686.rpm
Source Package cmocka-1.1.1-7.fc27.src.rpm

Install Howto

Install libcmocka rpm package:

# dnf install libcmocka




2017-08-02 - Fedora Release Engineering <> - 1.1.1-7
- Rebuilt for
2017-07-26 - Fedora Release Engineering <> - 1.1.1-6
- Rebuilt for
2017-03-28 - Than Ngo <> - 1.1.0-5
- added workaround for gcc7 bug on ppc64le temporary
2017-02-10 - Fedora Release Engineering <> - 1.1.0-4
- Rebuilt for
2016-09-21 - Jakub Hrozek <> - 1.1.0-1
- Update to version 1.1.0
* Added support to catch multiple exceptions
* Added support to verify call ordering
* Added support to pass initial data to test cases
* Added will_return_maybe() for ignoring mock returns
* Added subtests for groups using TAP output
* Added support to write multiple XML files for groups
* Improved documentation
* Fixed XML output generataion
* Fixed Windows builds with VS2015
2016-02-03 - Fedora Release Engineering <> - 1.0.1-3
- Rebuilt for
2015-06-17 - Fedora Release Engineering <> - 1.0.1-2
- Rebuilt for
2015-03-12 - Andreas Schneider <> - 1.0.1-1
- Update to version 1.0.1:
* Added a macro for assert_ptr_equal().
* Fixed test_realloc() if 0 size is passed.
* Fixed objects packaging bug.
* Fixed building with newer gcc versions.
2015-02-16 - Andreas Schneider <> - 1.0.0-1
- Update to version 1.0.0:
* Added new test runner with group fixtures. The old runner is deprecated
* Added an extensible message output formatter
* Added jUnit XML message output
* Added subunit message output
* Added Test Anything Protocol message output
* Added skip() command
* Added test_realloc()
* Added a cmockery compat header
* Fixed a lot of bugs on Windows
2014-08-16 - Fedora Release Engineering <> - 0.4.1-3
- Rebuilt for

See Also

Package Description
libcmocka-devel-1.1.1-7.fc27.i686.rpm Development headers for the cmocka library
libcmocka-static-1.1.1-7.fc27.i686.rpm Lightweight library to simplify and generalize unit tests for C
libcmpiCppImpl0-2.0.3-13.fc27.i686.rpm CMPI C++ wrapper library
libcmpiutil-0.5.7-10.fc27.i686.rpm CMPI Utility Library
libcmpiutil-devel-0.5.7-10.fc27.i686.rpm Libraries, includes, etc. to use the CMPI utility library
libcollectdclient-5.7.2-14.fc27.i686.rpm Collectd client library
libcollectdclient-devel-5.7.2-14.fc27.i686.rpm Development files for libcollectdclient
libcollection-0.7.0-33.fc27.i686.rpm Collection data-type for C
libcollection-devel-0.7.0-33.fc27.i686.rpm Development files for libcollection
libcom_err-1.43.5-2.fc27.i686.rpm Common error description library
libcom_err-devel-1.43.5-2.fc27.i686.rpm Common error description library
libcommuni-3.4.0-7.fc27.i686.rpm Cross-platform IRC client library written with Qt 4
libcommuni-devel-3.4.0-7.fc27.i686.rpm Cross-platform IRC client library written with Qt 4 (development files)
libcompizconfig-0.8.14-4.fc27.i686.rpm Configuration back end for compiz
libcompizconfig-devel-0.8.14-4.fc27.i686.rpm Development files for libcompizconfig