This document describes version 0.4.1-devel.1 of CCTests, a C11 language library implementing a framework to organise test suites. The library targets POSIX platforms.
This package depends upon the external packages: CCExceptions at least version
0.9.0; This package relies on pkg-config
to find the
dependency packages installed on the system.
CCTests installs the single header file cctests.h. All the function names
in the API are prefixed with cctests_
; all the preprocessor symbol
names are prefixed with CCTESTS_
; all the type names are prefixed with
cctests_
and suffixed with _t
. The header file
cctests.h appropriately includes the header file ccexceptions.h from the
package CCExceptions.
The library’s API uses both inline
functions and preprocessor macros to integrate some
common operations at the call site.
Notice that, before using the library, we need to call the global initialisation function
cctests_init()
.
IMPORTANT To use the library we must enable the POSIX features when including the standard header files; so either we include cctests.h as first header, or we include the following definitions before including all the header files:
#define _POSIX_C_SOURCE 200809L
• Linking code with the library | ||
• Handling exceptional conditions |
This document describes version 0.4.1-devel.1 of CCTests.