8.58. Check-0.15.2

Check is a unit testing framework for C.

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

8.58.1. Installation of Check

Update the auxilary scripts of the building system to allow building this package for LoongArch:

tar -xvf ../autoconf-2.72.tar.xz --strip-components=2 \
    autoconf-2.72/build-aux/config.{guess,sub}

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.58.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.so

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