8.54. Check-0.15.2

Check is a unit testing framework for C.

Approximate build time: 0.1 SBU (about 4.1 SBU with tests)
Required disk space: 12 MB

8.54.1. Installation of Check

Update helper scripts to allow compilation on loongarch:

tar xf ../config-20210826.tar.xz --strip-components=1

Prepare Check for compilation:

./configure --prefix=/usr --disable-static

Build the package:

make

Compilation is now complete. To run the Check test suite, issue the following command:

make check

Install the package:

make docdir=/usr/share/doc/check-0.15.2 install

8.54.2. Contents of Check

Installed program: checkmk
Installed library: libcheck.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