|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| checkmk/ | H | 03-May-2022 | - | 4,383 | 3,445 |
| cmake/ | H | 21-Jun-2020 | - | 611 | 483 |
| doc/ | H | 03-May-2022 | - | 18,834 | 16,226 |
| lib/ | H | 03-May-2022 | - | 3,638 | 2,496 |
| m4/ | H | 08-Aug-2020 | - | 10,507 | 9,500 |
| src/ | H | 03-May-2022 | - | 9,702 | 6,375 |
| tests/ | H | 03-May-2022 | - | 11,187 | 8,614 |
| xml/ | H | 08-Aug-2020 | - | 94 | 71 |
| AUTHORS | H A D | 21-Jun-2020 | 4.2 KiB | 130 | 125 |
| COPYING.LESSER | H A D | 21-Jun-2020 | 25.9 KiB | 511 | 422 |
| ChangeLog | H A D | 21-Jun-2020 | 35.7 KiB | 1,177 | 779 |
| INSTALL | H A D | 21-Jun-2020 | 15.4 KiB | 371 | 289 |
| Makefile.am | H A D | 21-Jun-2020 | 1.4 KiB | 69 | 37 |
| Makefile.in | H A D | 03-May-2022 | 32.3 KiB | 1,021 | 908 |
| NEWS | H A D | 08-Aug-2020 | 23.6 KiB | 713 | 472 |
| README | H A D | 21-Jun-2020 | 2.2 KiB | 66 | 46 |
| THANKS | H A D | 21-Jun-2020 | 363 | 11 | 8 |
| TODO | H A D | 21-Jun-2020 | 7.3 KiB | 166 | 141 |
| aclocal.m4 | H A D | 08-Aug-2020 | 53.4 KiB | 1,499 | 1,359 |
| ar-lib | H A D | 21-Jun-2020 | 5.7 KiB | 271 | 210 |
| check.m4 | H A D | 03-May-2022 | 4.7 KiB | 145 | 122 |
| check.pc.in | H A D | 21-Jun-2020 | 343 | 14 | 12 |
| check_stdint.h | H A D | 08-Aug-2020 | 282 | 10 | 8 |
| compile | H A D | 21-Jun-2020 | 7.2 KiB | 348 | 258 |
| config.guess | H A D | 21-Jun-2020 | 41.9 KiB | 1,422 | 1,230 |
| config.h.in | H A D | 08-Aug-2020 | 10.1 KiB | 372 | 260 |
| config.sub | H A D | 21-Jun-2020 | 35.1 KiB | 1,808 | 1,670 |
| configure | H A D | 08-Aug-2020 | 597.7 KiB | 21,143 | 17,429 |
| configure.ac | H A D | 08-Aug-2020 | 14.5 KiB | 470 | 399 |
| depcomp | H A D | 21-Jun-2020 | 23 KiB | 792 | 502 |
| install-sh | H A D | 21-Jun-2020 | 14.3 KiB | 502 | 327 |
| ltmain.sh | H A D | 21-Jun-2020 | 316.5 KiB | 11,148 | 7,979 |
| missing | H A D | 21-Jun-2020 | 6.7 KiB | 216 | 143 |
| test-driver | H A D | 21-Jun-2020 | 4.5 KiB | 149 | 87 |
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