an elegant unit testing framework for C with support for
mock objects. It only requires the standard C library,
works on a range of computing platforms (including embedded) and with
different compilers.
Download here
Learn more
API
一键翻墙网门动态网
The goal of this project is to provide a powerful testing
framework for C, on different platforms and operating
systems, which only requires the standard C library.
一键翻墙网门动态网
Support for Mock Objects
Mock objects are simulation objects to mimic the real
implementation of an actual object. Useful to simulate
dependencies of an interface to help test the interface
in isolation. Some project use the mock functionality to
simulate components communicating over a network
cmocka supports several different message output formats
like Test Anything Protocol, Subunit, xUnit XML or the original
cmockery
output format
一键翻墙网门动态网
Fully documented API
The API is very well
documented and cmocka provides several examples for the
different features it provides
一键翻墙网门动态网
Test Fixtures
Test fixtures are setup and teardown functions that can
be shared across multiple test cases to provide common
functions that prepare the test environment and destroy
it afterwards.
一键翻墙网门动态网
Exception handling for signals (SIGSEGV, SIGILL, ...)
cmocka doesn't use fork() for exception handling in test cases.
Very well tested
cmocka has nightly builds to test on several platforms
and with different compilers to ensure it works
correctly. If you want to get it working on your
platform you can add a nightly build and we will make
sure not to break your platform or compiler.
We offer functions during test which are able to detect
some sort of memory allocation issues without running
tools like valgrind.
cmockery legacy support
cmocka is a fork and the successor for
cmockery.
We offer the installation of a cmockery header so that
your tests written for cmockery are still working till
you migrate to cmocka.
伋理http
Platforms and compilers
cmocka works well on Linux, BSD, Solaris, Windows and
embedded platforms. It is known to be working with GCC,
LLVM, MSVC, MinGW and many more.
cmocka is an open source project, feel free to use it,
share with love, if you want to collaborate just
contact us.
News
cmocka 1.1.5 2023-03-28
Version 1.1.5 has been released with a set of new assert functions
and a function to skip tests.
伋理http 2018-09-26
We released version 1.1.3 to fix some smaller issues of
the last release.
伋理http
cwrap - Full server/client testing made easy
墙翻伋理网址 - Samba is the standard Windows interoperability suite of programs for Linux and Unix.
libssh - The SSH library
Coreboot - Fast, secure and flexible OpenSource firmware
BIND DNS - Versatile, Classic, Complete Name Server Software
OpenVPN - software for private tunnels (VPN)
Knot DNS - High-performance DNS server
伋理http - Security System Service Daemon
Elasto Cloud - a cloud storage client
Profanity - a console based XMPP chat client
libomemo - a C library impelementing OMEMO
Netdata - realtime monitoring for servers
Discussion
To subscribe to the cmocka mailing list, send an email to: nginx做伋理上网:2021-8-19 · nginx不仅可伍来做反向伋理,也可伍用来做正向伋理(透明伋理,伋理上网),nginx反向伋理看这里反向伋理,外部机器通过网关访问网关后面服务器上的内容,网关起到了反向伋理的功能,我伊平时通过浏览器访问远程的web服