6.14. Check-0.9.12

The Check package is a unit testing framework for C.

6.14.1. Installation of Check

Prepare Check for compilation:

CC="${CC} ${BUILD64}" PKG_CONFIG= ./configure --prefix=/tools \
    --build=${CLFS_HOST} --host=${CLFS_TARGET}  --libdir=/tools/lib64

The meaning of the new configure option:

PKG_CONFIG=

Prevents check from using pkg-config to search for additional packages that may be on the host but won't exist inside the temporary build environment.

Build the package:

make

Install the package:

make install

6.14.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