|
Packit |
79ec17 |
cmocka
|
|
Packit |
79ec17 |
======
|
|
Packit |
79ec17 |
|
|
Packit |
79ec17 |
cmocka is an elegant unit testing framework for C with support for mock
|
|
Packit |
79ec17 |
objects. It only requires the standard C library, works on a range of computing
|
|
Packit |
79ec17 |
platforms (including embedded) and with different compilers.
|
|
Packit |
79ec17 |
|
|
Packit |
79ec17 |
For information about how to use the cmocka unit testing framework see
|
|
Packit |
79ec17 |
doc/index.html or https://api.cmocka.org/.
|
|
Packit |
79ec17 |
|
|
Packit |
79ec17 |
Compiling
|
|
Packit |
79ec17 |
---------
|
|
Packit |
79ec17 |
|
|
Packit |
79ec17 |
To compile the cmocka library and example applications run, create a build dir,
|
|
Packit |
79ec17 |
and in the build dir call 'cmake /path/to/cmocka' followed by 'make'. On
|
|
Packit |
79ec17 |
Windows you can use the cmake gui. More details can be found in the INSTALL file.
|
|
Packit |
79ec17 |
|
|
Packit |
79ec17 |
Website
|
|
Packit |
79ec17 |
-------
|
|
Packit |
79ec17 |
|
|
Packit |
79ec17 |
https://cmocka.org
|