• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

checkmk/H03-May-2022-4,3833,445

cmake/H21-Jun-2020-611483

doc/H03-May-2022-18,83416,226

lib/H03-May-2022-3,6382,496

m4/H08-Aug-2020-10,5079,500

src/H03-May-2022-9,7026,375

tests/H03-May-2022-11,1878,614

xml/H08-Aug-2020-9471

AUTHORSH A D21-Jun-20204.2 KiB130125

COPYING.LESSERH A D21-Jun-202025.9 KiB511422

ChangeLogH A D21-Jun-202035.7 KiB1,177779

INSTALLH A D21-Jun-202015.4 KiB371289

Makefile.amH A D21-Jun-20201.4 KiB6937

Makefile.inH A D03-May-202232.3 KiB1,021908

NEWSH A D08-Aug-202023.6 KiB713472

READMEH A D21-Jun-20202.2 KiB6646

THANKSH A D21-Jun-2020363 118

TODOH A D21-Jun-20207.3 KiB166141

aclocal.m4H A D08-Aug-202053.4 KiB1,4991,359

ar-libH A D21-Jun-20205.7 KiB271210

check.m4H A D03-May-20224.7 KiB145122

check.pc.inH A D21-Jun-2020343 1412

check_stdint.hH A D08-Aug-2020282 108

compileH A D21-Jun-20207.2 KiB348258

config.guessH A D21-Jun-202041.9 KiB1,4221,230

config.h.inH A D08-Aug-202010.1 KiB372260

config.subH A D21-Jun-202035.1 KiB1,8081,670

configureH A D08-Aug-2020597.7 KiB21,14317,429

configure.acH A D08-Aug-202014.5 KiB470399

depcompH A D21-Jun-202023 KiB792502

install-shH A D21-Jun-202014.3 KiB502327

ltmain.shH A D21-Jun-2020316.5 KiB11,1487,979

missingH A D21-Jun-20206.7 KiB216143

test-driverH A D21-Jun-20204.5 KiB14987

README

1# About Check
2
3
4
5Check is a unit testing framework for C. It features a simple interface
6for defining unit tests, putting little in the way of the
7developer. Tests are run in a separate address space, so Check can
8catch both assertion failures and code errors that cause segmentation
9faults or other signals. The output from unit tests can be used within
10source code editors and IDEs.
11
12See https://libcheck.github.io/check for more information, including a
13tutorial.  The tutorial is also available as `info check`.
14
15# Installation
16
17Check has the following dependencies:
18
19* [automake](https://www.gnu.org/software/automake/)-1.9.6 (1.11.3 on OS X if you are using /usr/bin/ar)
20* [autoconf](https://www.gnu.org/software/autoconf/)-2.59
21* [libtool](https://www.gnu.org/software/libtool/)-1.5.22
22* [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/)-0.20
23* [texinfo](https://www.gnu.org/software/texinfo/)-4.7 (for documentation)
24* tetex-bin (or any texinfo-compatible TeX installation, for documentation)
25* POSIX [sed](https://en.wikipedia.org/wiki/Sed)
26
27The versions specified may be higher than those actually needed.
28
29## autoconf
30
31    $ autoreconf --install
32    $ ./configure
33    $ make
34    $ make check
35    $ make install
36    $ sudo ldconfig
37
38in this directory to set everything up.  autoreconf calls all of the
39necessary tools for you, like autoconf, automake, autoheader, etc.  If
40you ever change something during development, run autoreconf again
41(without --install), and it will perform the minimum set of actions
42necessary.  Check is installed to `/usr/local/lib` by default. ldconfig rebuilds
43the linker cache so that newly installed library file is included in the cache.
44
45## cmake
46
47    $ mkdir build
48    $ cd build
49    $ cmake ../
50    $ make
51    $ CTEST_OUTPUT_ON_FAILURE=1 make test
52
53# Linking against Check
54
55Check uses variadic macros in check.h, and the strict C90 options for
56gcc will complain about this.  In gcc 4.0 and above you can turn this
57off explicitly with `-Wno-variadic-macros`.  In a future API it would be
58nice to eliminate these macros.
59
60# Packaging
61
62Check is available packaged for the following operating systems:
63
64[![Packaging status](https://repology.org/badge/vertical-allrepos/check.svg)](https://repology.org/project/check/versions)
65
66