6.13. Check-0.11.0

The Check package is a unit testing framework for C.

6.13.1. Installation of Check

We will install Check into /tools to satisfy a dependency on it for Kbd and Libpipeline in the final system.

Prepare Check for compilation:

./configure \
    --prefix=/tools \
    --build=${CLFS_HOST} \
    --host=${CLFS_TARGET}

Build the package:

make

Install the package:

make install

6.13.2. Contents of Check

Installed program: checkmk
Installed library: libcheck.{a,so}

Short Descriptions

checkmk

Awk script for generating C unit tests for use with the C the Check unit testing framework

libcheck.{a,so}

Contains functions that allow Check to be called from a test program