libcheck - Unit testing framework for C ChangeLog

HOWTO


# Check 0.15.2 (2020-08-09)
# ============
# Slackware 15.0: libcheck 0.15.2

# Some things that use Check that I have howtos for are:
# gstreamer
# libxcb
# Cyrus IMAP
# There is a list of others on the web site.

# [Check-announce] Subject: check-0.15.2 released
# GitHub Releases 0.15.2
# Installing Check
# Check Reference
# Check 0.15.2 NEWS

# Prerequisites:
# pkg-config >= 0.9.0
# texinfo

# Get the tarball
cd
test -f installed/check-0.15.2.tar.gz &&
mv -f installed/check-0.15.2.tar.gz .
test ! -f check-0.15.2.tar.gz &&
wget https://github.com/libcheck/check/releases/download/0.15.2/\
check-0.15.2.tar.gz

# Extract the source
# NOTE: Maybe look in ~/src first because "check-*" is pretty generic...
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "check-*" -exec rm -r {} \;
tar xzvf ~/check-0.15.2.tar.gz
cd check-0.15.2
test $UID = 0 && chown -R root:root .

# Even when specifying --docdir it will still use /usr/share/doc/check
# If you do not have a /usr/share/doc -> /usr/doc symlink, you can
# add " docdir=/usr/doc/check" when running make to override that

# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --docdir=/usr/doc/libcheck --infodir=/usr/info \
--libdir=/usr/lib64 --mandir=/usr/man --enable-static=no

# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --prefix=/usr --docdir=/usr/doc/libcheck --infodir=/usr/info \
--mandir=/usr/man --enable-static=no

# Build it
make

# Check the build
make check

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libcheck

# Install it
make install
ldconfig

# Become your non-root user again
exit

# Save the tarball for later
cd
mkdir -p -m 0700 installed
rm -f installed/check-*.tar.*
mv check-0.15.2.tar.gz installed/


# If you ever want to uninstall Check, this should do it:
cd
su
test -d src/check-* && ( cd src/check-* ; make uninstall )
test -d /usr/doc/check/ && rm -r /usr/doc/check
( cd /usr/include
  rm -f check.h check_stdint.h )
test -d /usr/lib64 &&
( cd /usr/lib64
   rm -f libcheck.* pkgconfig/check.pc )
rm -f /usr/bin/checkmk /usr/info/check.info \
/usr/lib/libcheck.* /usr/lib/pkgconfig/check.pc \
/usr/man/man1/checkmk.1 /usr/share/aclocal/check.m4
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "check-*" -exec rm -r {} \;
rm -f ~/installed/check-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2025-05-10 8:36pm
Copyright © 2001-2025 Jason Englander. All Rights reserved.
[HTML5]