Upstream software project

cmocka

An elegant unit testing framework for C with support for mock objects (development files)

About cmocka

An elegant unit testing framework for C with support for mock objects (development files)

This project links 35 native package records across 10 recorded operating-system releases. Compare the retained versions and architectures below, then open the package for your own release.

These are catalog observations, not a guarantee of installation, compatibility, or upstream support.

Project pictures and package coverage

Alpine Linux 3.21: 2 package records; Alpine Linux 3.22: 2 package records; Alpine Linux 3.23: 2 package records; Debian 12 (Bookworm): 3 package records; Debian 13 (Trixie): 3 package records; Fedora 43: 3 package records; Fedora 44: 4 package records; openSUSE Leap 15.6: 5 package records; openSUSE Leap 16.0: 4 package records; openSUSE Tumbleweed: 7 package records. Catalog coverage diagram, not an application screenshot.cmocka: recorded package coverageAlpine Linux 3.212 recordsAlpine Linux 3.222 recordsAlpine Linux 3.232 recordsDebian 12 (Bookworm)3 recordsDebian 13 (Trixie)3 recordsFedora 433 recordsFedora 444 recordsopenSUSE Leap 15.65 records
OpenFactory diagram of linked package records. The first eight releases are shown; all 10 appear below. It is not an application screenshot.

Project identity

Project
cmocka
Publisher
Not authoritatively mapped
Native package records
35
Operating systems
alpine-linux-3-21, alpine-linux-3-22, alpine-linux-3-23, debian-12, debian-13, fedora-43, fedora-44, opensuse-leap-15-6, opensuse-leap-16-0, opensuse-tumbleweed
License expression
Apache-2.0
Source repository
Not reported

Source-reported description

The fullest retained description is shown with its source. Distribution packaging descriptions may include downstream details.

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.

Description source

Packages by operating system

Compare recorded versions, then open a package for dependency, file, checksum, and repository evidence. Version strings are distribution-specific, not a ranking of newer software.

Alpine Linux 3.21

  1. Package cmocka

    v3.21 (Alpine Linux 3.21): An elegant unit testing framework for C with support for mock objects

    1.1.7-r2: aarch64 x86_64

    Source: cmocka

  2. Package cmocka-dev

    v3.21 (Alpine Linux 3.21): An elegant unit testing framework for C with support for mock objects (development files)

    1.1.7-r2: aarch64 x86_64

    Source: cmocka

Alpine Linux 3.22

  1. Package cmocka

    v3.22 (Alpine Linux 3.22): An elegant unit testing framework for C with support for mock objects

    1.1.7-r2: aarch64 x86_64

    Source: cmocka

  2. Package cmocka-dev

    v3.22 (Alpine Linux 3.22): An elegant unit testing framework for C with support for mock objects (development files)

    1.1.7-r2: aarch64 x86_64

    Source: cmocka

Alpine Linux 3.23

  1. Package cmocka

    v3.23 (Alpine Linux 3.23): An elegant unit testing framework for C with support for mock objects

    1.1.7-r2: aarch64 x86_64

    Source: cmocka

  2. Package cmocka-dev

    v3.23 (Alpine Linux 3.23): An elegant unit testing framework for C with support for mock objects (development files)

    1.1.7-r2: aarch64 x86_64

    Source: cmocka

Debian 12 (Bookworm)

  1. Package cmocka-doc

    bookworm (Debian 12 (Bookworm)) (doc): documentation for the CMocka unit testing framework

    1.1.5-2.1: all

    Source: cmocka

  2. Package libcmocka0

    bookworm (Debian 12 (Bookworm)) (libs): library for the CMocka unit testing framework

    1.1.5-2.1: amd64 arm64

    Source: cmocka

  3. Package libcmocka-dev

    bookworm (Debian 12 (Bookworm)) (libdevel): development files for the CMocka unit testing framework

    1.1.5-2.1: amd64 arm64

    Source: cmocka

Debian 13 (Trixie)

  1. Package cmocka-doc

    trixie (Debian 13 (Trixie)) (doc): documentation for the CMocka unit testing framework

    1.1.7-3: all

    Source: cmocka

  2. Package libcmocka0

    trixie (Debian 13 (Trixie)) (libs): library for the CMocka unit testing framework

    1.1.7-3+b1: amd64 arm64

    Source: cmocka

  3. Package libcmocka-dev

    trixie (Debian 13 (Trixie)) (libdevel): development files for the CMocka unit testing framework

    1.1.7-3+b1: amd64 arm64

    Source: cmocka

Fedora 43

  1. Package cmocka-doc

    43 (Fedora 43) (Unspecified): API documentation for the cmocka unit testing framework

    1.1.8-3.fc43: noarch

    Source: cmocka

  2. Package libcmocka

    43 (Fedora 43) (Unspecified): Lightweight library to simplify and generalize unit tests for C

    1.1.8-3.fc43: aarch64 i686 x86_64

    Source: cmocka

  3. Package libcmocka-devel

    43 (Fedora 43) (Unspecified): Development headers for the cmocka library

    1.1.8-3.fc43: aarch64 i686 x86_64

    Source: cmocka

Fedora 44

  1. Package cmocka-doc

    44 (Fedora 44) (Unspecified): API documentation for the cmocka unit testing framework

    2.0.2-3.fc44: noarch

    Source: cmocka

  2. Package libcmocka

    44 (Fedora 44) (Unspecified): Lightweight library to simplify and generalize unit tests for C

    2.0.2-3.fc44: aarch64 i686 x86_64

    Source: cmocka

  3. Package libcmocka-cmake-devel

    44 (Fedora 44) (Unspecified): CMake support for the cmocka library

    2.0.2-3.fc44: aarch64 i686 x86_64

    Source: cmocka

  4. Package libcmocka-devel

    44 (Fedora 44) (Unspecified): Development headers for the cmocka library

    2.0.2-3.fc44: aarch64 i686 x86_64

    Source: cmocka

openSUSE Leap 15.6

  1. Package libcmocka0

    leap-15.6 (openSUSE Leap 15.6) (System/Libraries): Lightweight library to simplify and generalize unit tests for C

    1.1.5-150400.3.2.3: aarch64 ppc64le s390x x86_64

    Source: cmocka

  2. Package libcmocka0-32bit

    leap-15.6 (openSUSE Leap 15.6) (System/Libraries): Lightweight library to simplify and generalize unit tests for C

    1.1.5-150400.3.2.3: x86_64

    Source: cmocka

  3. Package libcmocka-devel

    leap-15.6 (openSUSE Leap 15.6) (Development/Libraries/C and C++): Development headers for the cmocka library

    1.1.5-150400.3.2.3: aarch64 ppc64le s390x x86_64

    Source: cmocka

  4. Package libcmocka-devel-32bit

    leap-15.6 (openSUSE Leap 15.6) (Development/Libraries/C and C++): Development headers for the cmocka library

    1.1.5-150400.3.2.3: x86_64

    Source: cmocka

  5. Package libcmocka-devel-static

    leap-15.6 (openSUSE Leap 15.6) (Development/Libraries/C and C++): Static cmocka library

    1.1.5-150400.3.2.3: aarch64 ppc64le s390x x86_64

    Source: cmocka

openSUSE Leap 16.0

  1. Package libcmocka0

    leap-16.0 (openSUSE Leap 16.0) (System/Libraries): Lightweight library to simplify and generalize unit tests for C

    1.1.7-160000.2.2: aarch64 ppc64le s390x x86_64

    Source: cmocka

  2. Package libcmocka0-32bit

    leap-16.0 (openSUSE Leap 16.0) (System/Libraries): Lightweight library to simplify and generalize unit tests for C

    1.1.7-160000.2.2: x86_64

    Source: cmocka

  3. Package libcmocka-devel

    leap-16.0 (openSUSE Leap 16.0) (Development/Libraries/C and C++): Development headers for the cmocka library

    1.1.7-160000.2.2: aarch64 ppc64le s390x x86_64

    Source: cmocka

  4. Package libcmocka-devel-32bit

    leap-16.0 (openSUSE Leap 16.0) (Development/Libraries/C and C++): Development headers for the cmocka library

    1.1.7-160000.2.2: x86_64

    Source: cmocka

openSUSE Tumbleweed

  1. Package libcmocka0

    tumbleweed (openSUSE Tumbleweed) (System/Libraries): Lightweight library to simplify and generalize unit tests for C

    2.0.2-1.5: x86_64

    Source: cmocka

  2. Package libcmocka0-32bit

    tumbleweed (openSUSE Tumbleweed) (System/Libraries): Lightweight library to simplify and generalize unit tests for C

    2.0.2-1.5: x86_64

    Source: cmocka

  3. Package libcmocka-cmake-devel

    tumbleweed (openSUSE Tumbleweed) (Development/Libraries/C and C++): CMake support for the cmocka library

    2.0.2-1.5: x86_64

    Source: cmocka

  4. Package libcmocka-cmake-devel-32bit

    tumbleweed (openSUSE Tumbleweed) (Development/Libraries/C and C++): CMake support for the cmocka library

    2.0.2-1.5: x86_64

    Source: cmocka

  5. Package libcmocka-devel

    tumbleweed (openSUSE Tumbleweed) (Development/Libraries/C and C++): Development headers for the cmocka library

    2.0.2-1.5: x86_64

    Source: cmocka

  6. Package libcmocka-devel-32bit

    tumbleweed (openSUSE Tumbleweed) (Development/Libraries/C and C++): Development headers for the cmocka library

    2.0.2-1.5: x86_64

    Source: cmocka

  7. Package libcmocka-doc

    tumbleweed (openSUSE Tumbleweed) (Development/Libraries/C and C++): Documentation for the cmocka library

    2.0.2-1.5: noarch

    Source: cmocka

Project resources and further reading

Mapping provenance

Only source-backed identity signals create public cross-OS links. A reviewer can later approve or dispute an inferred relationship without rewriting native package history.

No field-level source record is published yet.