#### Linux From Scratch - Version 7.10

### Chapter 5. Constructing a Temporary System

- Prev

  DejaGNU-1.6

- Next

  Ncurses-6.0

- Up
- Home

# 5.14. Check-0.10.0

Check is a unit testing framework for C.

Approximate build time: 0.1 SBU
Required disk space: 9.5 MB

## 5.14.1. Installation of Check

Prepare Check for compilation:

    PKG_CONFIG= ./configure --prefix=/tools

The meaning of the configure parameter:

`PKG_CONFIG=`

  This tells the configure script to ignore any pkg-config options that may cause the system to try to link with libraries not in the `/tools` directory.

Build the package:

    make

Compilation is now complete. As discussed earlier, running the test suite is not mandatory for the temporary tools here in this chapter. To run the Check test suite anyway, issue the following command:

    make check

Note that the Check test suite may take a relatively long (up to 4 SBU) time.

Install the package:

    make install

## 5.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 Check unit testing framework
`libcheck.{a,so}` | Contains functions that allow Check to be called from a test program

- Prev

  DejaGNU-1.6

- Next

  Ncurses-6.0

- Up
- Home