./devel/check, Unit test framework for C

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 0.15.2, Package name: check-0.15.2, Maintainer: schmonz

Check is a unit test framework for C. It features a simple interface
for defining unit tests, putting little in the way of the developer.
Tests are run in a separate address space, so Check can catch both
assertion failures and code errors that cause segmentation faults or
other signals. The output from unit tests can be used within source code
editors and IDEs.

There is a tutorial introduction to check at


This includes a brief comparison of check with other C unit test
frameworks, such as GNU Autounit, cUnit, and CUnit.

Check was inspired by similar frameworks that currently exist for most
programming languages; the most famous example being JUnit for Java
(www.junit.org). There is a list of unit test frameworks for multiple
languages at www.xprogramming.com/software.htm .

Required to build:

Master sites:

Filesize: 298.961 KB

Version history: (Expand)

CVS history: (Expand)

   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:

The following distfiles were unfetchable (note: some may be only fetched

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2021-05-29 21:39:00 by Amitai Schleier | Files touched by this commit (1)
Log message:
   2020-11-03 12:09:19 by Amitai Schleier | Files touched by this commit (2)
Log message:
Update to 0.15.2. From the changelog:

* Fix warning in ptr macros with pointer to integer cast
* Fix various warnings in Check's unit tests
* Replace gnu_printf with printf in format __attribute__
* Fix warnings from Check's macros: "warning: too many arguments for \ 
* Fix format specifiers that do not match the argument types
* Define CK_ATTRIBUTE_FORMAT for GCC >= 2.95.3, to make use of
  'gnu_printf' format attribute
* Refactor tests to fix signed - unsigned conversions
* Refactor some Check internals to use proper integer types
* Implement missing mutual exclusion for Windows hosts
* Add support for FetchContent in CMake
* Rename CMake project from 'check' to 'Check'
* Fix for checking for wrong tool when building docs in Autotools
* Fix compiler warning with printf format
   2020-01-26 06:26:29 by Roland Illig | Files touched by this commit (189)
Log message:
all: migrate some SourceForge homepage URLs back from https to http


In the above commit, the homepage URLs were migrated from http to https,
assuming that SourceForge would use the same host names for both http and
https connections. This assumption was wrong. Their documentation at
https://sourceforge.net/p/forge/documentation/Custom%20VHOSTs/ states
that the https URLs use the domain sourceforge.io instead.

To make the homepages from the above commit reachable again, pkglint has
been extended to check for reachable homepages. This check is only
enabled when the --network command line option is given.

Each of the homepages that referred to https://$project.sourceforge.net
before was migrated to https://$project.sourceforge.io (27), and if that
was not reachable, to the fallback URL http://$project.sourceforge.net
   2020-01-19 00:36:14 by Roland Illig | Files touched by this commit (3046)
Log message:
all: migrate several HOMEPAGEs to https

pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
   2019-11-24 10:02:57 by Ryo ONODERA | Files touched by this commit (2)
Log message:
Disable building of docs explicitly, bump PKGREVISION

* It requires and detects tex command.
   2019-11-23 08:08:29 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(devel/check) Updated 0.12.0 to 0.13.0

Sat Oct 20, 2019: Released Check 0.13.0
  based on hash 2b18886a9a9d3bab44917a550d12128ad7e2c197

* configure: optional build documentation
  Issue #206 (GitHub)

* missing <unistd.h> in some files
  Issue #196 and Issue #186 (GitHub)

* Varous documentation improvements

* END_TEST is now optional, as how START_TEST works has been redone
  Issue #158

* Various CMake related changes:
  - Support exporting Check to other projects with CMake 3
    Issue #185
  - Shared library support for Visual Studio
    Issue #220
  - Fix wrong library filename
    Issue #226
  - Add support for CMake package registry
    Issue #227
  - CMake build type can now be debug or release
    Issue #228
  - Add checkmk to CMake build.