Lightweight library to simplify and generalize unit tests for C
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.
-
Checkout Package
osc checkout SUSE:SLE-15:GA/cmocka && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
baselibs.conf | 0000000220 220 Bytes | |
cmocka-1.1.1.tar.xz | 0000085648 83.6 KB | |
cmocka.changes | 0000005255 5.13 KB | |
cmocka.spec | 0000004162 4.06 KB |
Revision 1 (latest revision is 3)
osc copypac from project:SUSE:SLE-15:GA package:cmocka revision:1, using expand, using client side copy
Comments 0