]>
granicus.if.org Git - check/log
Branden Archer [Sat, 1 Jun 2019 19:13:17 +0000 (12:13 -0700)]
Merge pull request #185 from mikkoi/improve-import
Improve import to CMake projects
Branden Archer [Sat, 18 May 2019 17:01:14 +0000 (10:01 -0700)]
Merge branch 'master' into improve-import
Branden Archer [Sat, 18 May 2019 15:45:20 +0000 (08:45 -0700)]
Merge pull request #182 from mikkoi/fix-typo
Fix typo, CMAKE_VERISON -> CMAKE_VERSION
Mikko Johannes Koivunalho [Sat, 11 May 2019 12:18:28 +0000 (14:18 +0200)]
Instructions how to import into CMake 3 project
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 11 May 2019 11:30:36 +0000 (13:30 +0200)]
Improve CMake build, specify C standard
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Thu, 2 May 2019 20:02:56 +0000 (22:02 +0200)]
Improve exporting project
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Wed, 1 May 2019 06:18:50 +0000 (08:18 +0200)]
Fix typo in comments, wrong name of file
* not functional change.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Tue, 30 Apr 2019 21:57:57 +0000 (23:57 +0200)]
Fix typo, CMAKE_VERISON -> CMAKE_VERSION
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Sun, 12 May 2019 05:07:10 +0000 (22:07 -0700)]
Merge pull request #184 from mikkoi/fix-windows-build
Possible fix for the failing Windows build
Mikko Johannes Koivunalho [Sat, 11 May 2019 09:17:41 +0000 (11:17 +0200)]
fix the rest of the builds: vs and mingw32
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 5 May 2019 13:20:55 +0000 (15:20 +0200)]
Possible fix
* https://github.com/libcheck/check/pull/182#issuecomment-
489425824
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Wed, 23 Jan 2019 05:47:12 +0000 (21:47 -0800)]
Merge pull request #179 from evpobr/fix-cmake-package-config
Fix package config module for CMake >= 2.8.12
evpobr [Mon, 14 Jan 2019 09:24:47 +0000 (14:24 +0500)]
Fix package config module for CMake >= 2.8.12
Use target_include_directories() to add interface directories.
Now check target will add its include path to target it is linked to.
Branden Archer [Sat, 24 Nov 2018 06:05:29 +0000 (22:05 -0800)]
Merge pull request #175 from lhanson/patch-1
Fix typo
Lyle Hanson [Sat, 24 Nov 2018 04:01:22 +0000 (22:01 -0600)]
Fix typo
Change "failes" to "fails"
Branden Archer [Tue, 21 Aug 2018 12:53:50 +0000 (08:53 -0400)]
Merge pull request #170 from ozars/doxygen-devel-feature
Add development version of doxygen configuration
Omer Ozarslan [Fri, 17 Aug 2018 21:57:06 +0000 (16:57 -0500)]
Add development version of doxygen configuration
New target: doc/doxygen-devel
Create a new development version of doxygen configuration, which creates a more
verbose doxygen reference including functions and files not exposed to API and
their call graph. Call graphs require graphviz installed.
Branden Archer [Fri, 27 Jul 2018 20:19:30 +0000 (16:19 -0400)]
Merge pull request #168 from libcheck/update-webpage
Remove CloudBees button on webpage
Branden Archer [Fri, 27 Jul 2018 03:32:11 +0000 (23:32 -0400)]
Remove CloudBees button on webpage
The testing has migrated to Travis-CI.
Branden Archer [Tue, 17 Jul 2018 01:52:39 +0000 (21:52 -0400)]
Merge pull request #164 from ozars/readme-fix
Mention rebuilding linker cache in README
Omer Ozarslan [Mon, 16 Jul 2018 20:36:40 +0000 (15:36 -0500)]
Mention rebuilding linker cache in README (#155)
Branden Archer [Tue, 3 Jul 2018 23:10:28 +0000 (19:10 -0400)]
Merge pull request #162 from libcheck/travis
Build example on Travis-CI
Branden Archer [Mon, 2 Jul 2018 23:18:04 +0000 (19:18 -0400)]
Build example on Travis-CI
Branden Archer [Thu, 21 Jun 2018 01:43:33 +0000 (21:43 -0400)]
Merge pull request #160 from libcheck/todo
Update TODO
Branden Archer [Wed, 20 Jun 2018 21:19:10 +0000 (17:19 -0400)]
Update TODO
This TODO was addressed here:
https://github.com/libcheck/check/pull/158
3987c1d906ee68e0a6a5fd7888d88e0873f914d9
Branden Archer [Wed, 20 Jun 2018 21:16:42 +0000 (17:16 -0400)]
Merge pull request #158 from filbranden/ttest1
Fix START_TEST to look like valid C code.
Branden Archer [Wed, 20 Jun 2018 17:17:23 +0000 (13:17 -0400)]
Merge branch 'master' into ttest1
Branden Archer [Wed, 20 Jun 2018 17:15:56 +0000 (13:15 -0400)]
Merge pull request #159 from libcheck/travis
Add pre-release check to travis-ci
Branden Archer [Mon, 18 Jun 2018 17:59:47 +0000 (13:59 -0400)]
Move CloudBees tests to Travis-CI
Earlier this year GitHub deprecated some encryption types from
accessing repos. This broke the FC17 executors on CloudBees.
Trying to update to using the FC25 executors found that not
all tools were installed. CloudBees determined it would take
too much time to install the missing tools on FC25 which were
on FC17 (for a FOSS project), and declined to do so. As a result,
Check's tests no longer run on CloudBees.
In response, the tests which ran on CloudBees are being moved
to Travis-CI. This includes the pre release check, building the
documentation, building with scan-build, and building with some
of the configure arguments.
Branden Archer [Tue, 19 Jun 2018 20:12:40 +0000 (16:12 -0400)]
Check for strdup() failures in Check's unit tests
If a strdup() fails a NULL pointer would be passed to
mkstemp(), and it does not accept NULL pointers.
This was discovered using scan-build.
Filipe Brandenburger [Tue, 12 Jun 2018 17:08:07 +0000 (10:08 -0700)]
Fix START_TEST to look like valid C code.
Instead of exporting the defined name as a bare function, export a
struct that has a pointer to the function, but also its name, file and
line number where it is defined.
Store that information into a new `struct TTest`.
After this commit, START_TEST(<testname>) will create three definitions:
- <testname>_fn: The actual function;
- <testname>_ttest: A `struct TTest` with the information about it;
- <testname>: A pointer to <testname>_ttest.
Functions `tcase_add_test()` and friends are updated to take a `TTest *`
argument rather than a `TFun` and separate name. The runners are updated
to find that information inside the linked `tc->ttest`. The call to
`tcase_fn_start()` is moved from the defined functions to the runners
(both the "fork" and the "nofork" one) which call it just before
invoking the test function.
A nice side-effect is that END_TEST is now optional, though the empty
`#define` is kept for backwards compability.
v2: Initialize the struct TTest by position to be compatible with older
compilers that do not recognize named fields (e.g. VS 2010, VS 2012.)
Tested:
- `make check` still passes.
- Removing END_TEST from test cases still produces valid code that
builds and passes tests.
Branden Archer [Fri, 12 Jan 2018 15:29:32 +0000 (10:29 -0500)]
Merge pull request #150 from ckdarby/patch-1
Add make install
Cory Kennedy-Darby [Wed, 10 Jan 2018 16:47:54 +0000 (11:47 -0500)]
Add make install
This step is missing from the README
Branden Archer [Sun, 26 Nov 2017 16:28:17 +0000 (11:28 -0500)]
Merge pull request #147 from libcheck/sourceforge-refs
Update various reference to Sourceforge
James Prior [Sat, 25 Nov 2017 22:07:02 +0000 (17:07 -0500)]
Fix title of web/install.html.
Branden Archer [Sat, 25 Nov 2017 23:57:37 +0000 (18:57 -0500)]
Update various reference to Sourceforge
These should mention GitHub instead.
James Prior [Sat, 25 Nov 2017 21:37:05 +0000 (16:37 -0500)]
Update some links from sourceforge to github.
Branden Archer [Sat, 18 Nov 2017 00:11:58 +0000 (19:11 -0500)]
Merge pull request #143 from foviedoITBA/doc_update
Fixed typo in ck_assert_str_eq doc
foviedoITBA [Thu, 16 Nov 2017 19:55:30 +0000 (16:55 -0300)]
Fixed typo in ck_assert_str_eq doc
Branden Archer [Tue, 24 Oct 2017 23:33:44 +0000 (19:33 -0400)]
Merge pull request #136 from libcheck/news
Restore development header in NEWS
Branden Archer [Mon, 23 Oct 2017 23:14:38 +0000 (19:14 -0400)]
Merge branch 'master' into news
Branden Archer [Sun, 22 Oct 2017 20:31:38 +0000 (16:31 -0400)]
Merge pull request #137 from libcheck/float-macro-warning
Add warning on floating point eq and ne assertions
Branden Archer [Sun, 22 Oct 2017 16:35:49 +0000 (12:35 -0400)]
Add warning on floating point eq and ne assertions
The usefulness of the float/double/ldouble eq and ne macros is very limited. Comparing
the results of a floating point computation should be done with some tolerance, instead
of expecting an exact answer. There may be differences on different platforms, etc.
To this end, some warnings are added to the eq and ne functions, instead directing users
to use the _tol functions instead.
Branden Archer [Fri, 20 Oct 2017 20:32:08 +0000 (16:32 -0400)]
Restore development header in NEWS
Branden Archer [Fri, 20 Oct 2017 12:44:10 +0000 (08:44 -0400)]
Merge pull request #135 from libcheck/pre-v0.12
Pre v0.12
Branden Archer [Fri, 20 Oct 2017 00:59:26 +0000 (20:59 -0400)]
Update for release v0.12.0
Branden Archer [Fri, 20 Oct 2017 00:59:00 +0000 (20:59 -0400)]
Correct typo in HACKING
Branden Archer [Thu, 19 Oct 2017 21:02:56 +0000 (17:02 -0400)]
Merge pull request #134 from libcheck/news
Update NEWS
Branden Archer [Thu, 19 Oct 2017 15:03:21 +0000 (11:03 -0400)]
Update NEWS
Branden Archer [Tue, 26 Sep 2017 01:18:12 +0000 (21:18 -0400)]
Merge pull request #132 from libcheck/cmake-license
Add BSD license for example CMakeLists
Branden Archer [Mon, 25 Sep 2017 19:56:55 +0000 (15:56 -0400)]
Add BSD license for example CMakeLists
By default this file was LGPL licensed. However, it is not
concerning if someone uses this example and
does not contribute back fixes.
Branden Archer [Fri, 1 Sep 2017 12:35:47 +0000 (08:35 -0400)]
Merge pull request #128 from orenbenkiki/master
Allow dynamic configuration of maximal assertion message size.
Branden Archer [Fri, 1 Sep 2017 11:09:42 +0000 (07:09 -0400)]
Merge branch 'master' into master
Branden Archer [Fri, 1 Sep 2017 10:38:17 +0000 (06:38 -0400)]
Merge pull request #129 from civetweb/master
Visual Studio 2010 support
bel2125 [Fri, 1 Sep 2017 08:47:03 +0000 (10:47 +0200)]
Set license statement
bel2125 [Thu, 31 Aug 2017 15:37:29 +0000 (17:37 +0200)]
Add fpclassify to Makefile.am and comment VS2008 build
bel2125 [Thu, 31 Aug 2017 07:58:54 +0000 (09:58 +0200)]
Add prototype for fpclassify
Oren Ben-Kiki [Thu, 31 Aug 2017 04:17:43 +0000 (07:17 +0300)]
Allow modifying the maximal message size by dynamically changing the environment variable.
bel2125 [Wed, 30 Aug 2017 21:07:06 +0000 (23:07 +0200)]
Try yet another command line for VS2008
bel2125 [Wed, 30 Aug 2017 19:32:14 +0000 (21:32 +0200)]
Try another command line for VS2008
bel2125 [Wed, 30 Aug 2017 19:22:14 +0000 (21:22 +0200)]
Clean up and document the appveyor.yml file
bel2125 [Wed, 30 Aug 2017 18:10:15 +0000 (20:10 +0200)]
appveyor.yml: replace exit in test step by additional environment variable
bel2125 [Wed, 30 Aug 2017 17:21:15 +0000 (19:21 +0200)]
AppVeyor build for ARM CPUs can not be tested on x86/x64 build machines
Oren Ben-Kiki [Wed, 30 Aug 2017 16:57:41 +0000 (19:57 +0300)]
Use size_t for maximal message size, allow it to be modified.
bel2125 [Wed, 30 Aug 2017 14:04:21 +0000 (16:04 +0200)]
Some preprocessor magic for defining INFINITY and NAN
bel2125 [Wed, 30 Aug 2017 11:13:05 +0000 (13:13 +0200)]
Test additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 23:00:30 +0000 (01:00 +0200)]
Define INFINITY and NAN as macro
bel2125 [Tue, 29 Aug 2017 22:45:10 +0000 (00:45 +0200)]
Test additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 22:28:02 +0000 (00:28 +0200)]
Test additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 22:07:45 +0000 (00:07 +0200)]
Test additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 20:50:57 +0000 (22:50 +0200)]
Move infinity/not-a-number handling to lib directory
Oren Ben-Kiki [Tue, 29 Aug 2017 04:47:31 +0000 (07:47 +0300)]
Merge test scripts as well, fixed comments.
bel2125 [Mon, 28 Aug 2017 21:22:13 +0000 (23:22 +0200)]
Unit test: Remove builds not supported by AppVeyor
bel2125 [Mon, 28 Aug 2017 20:41:35 +0000 (22:41 +0200)]
Specify AppVeyor image for unit tests using Visual Studio 2017
bel2125 [Mon, 28 Aug 2017 18:38:27 +0000 (20:38 +0200)]
AppVeyor unit test: Add all Visual Studio builds that are supported (and maybe drop some outdated ones later)
bel2125 [Mon, 28 Aug 2017 18:00:12 +0000 (20:00 +0200)]
Merge branch 'master' into master
Oren Ben-Kiki [Mon, 28 Aug 2017 05:21:31 +0000 (08:21 +0300)]
Have tests clean up the log file on success.
Oren Ben-Kiki [Mon, 28 Aug 2017 04:52:31 +0000 (07:52 +0300)]
Merge check max msg size tests, fix comments.
bel2125 [Sun, 27 Aug 2017 21:42:34 +0000 (23:42 +0200)]
Add definitions for isnan, isinf and isfinite, in case they are missing
Oren Ben-Kiki [Sun, 27 Aug 2017 20:49:18 +0000 (23:49 +0300)]
Add tests for modifying maximal message size.
Oren Ben-Kiki [Sun, 27 Aug 2017 19:12:12 +0000 (22:12 +0300)]
Fix @code braces.
Oren Ben-Kiki [Sun, 27 Aug 2017 18:54:52 +0000 (21:54 +0300)]
Document the new function, give precedence to environment.
bel2125 [Sun, 27 Aug 2017 18:27:49 +0000 (20:27 +0200)]
Generate NAN and INFINITY in case they are not defined by the system headers
bel2125 [Sun, 27 Aug 2017 08:14:18 +0000 (10:14 +0200)]
Unit test: INFINITY and NAN require math-h
Oren Ben-Kiki [Sun, 27 Aug 2017 05:46:53 +0000 (08:46 +0300)]
Allow dynamic configuration of maximal assertion message size.
bel2125 [Sat, 26 Aug 2017 20:26:51 +0000 (22:26 +0200)]
Fix copy paste error
bel2125 [Sat, 26 Aug 2017 19:49:14 +0000 (21:49 +0200)]
Use regex_t only if ENABLE_REGEX is defined
bel2125 [Sat, 26 Aug 2017 18:55:03 +0000 (20:55 +0200)]
Adapt unit tests to C89/C90 by moving variable declarations to top of functions
bel2125 [Sat, 26 Aug 2017 17:31:45 +0000 (19:31 +0200)]
Add various Visual Studio versions to AppVeyor CI
Branden Archer [Sat, 26 Aug 2017 15:58:07 +0000 (11:58 -0400)]
Merge pull request #126 from cleishm/master
Fix invalid prototype for tcase_name(void)
Chris Leishman [Sat, 26 Aug 2017 05:26:56 +0000 (22:26 -0700)]
Fix invalid prototype for tcase_name(void)
The existing prototype in check.h is `const char* tcase_name()`. This
causes issues on platforms that use strict prototype checking, e.g. the
latest clang compiler with -Wstrict-prototypes ('this function
declaration is not a prototype [-Werror,-Wstrict-prototypes]').
bel2125 [Fri, 25 Aug 2017 21:15:34 +0000 (23:15 +0200)]
Use #if defined(_MSC_VER) instead of #if _MSC_VER
bel2125 [Fri, 25 Aug 2017 20:46:35 +0000 (22:46 +0200)]
Remove stdbool.h dependency from unit test
bel2125 [Fri, 25 Aug 2017 18:29:18 +0000 (20:29 +0200)]
Remove dependency to stdbool.h
While this header is standard in C99, it does not exist in C89/C90.
Microsoft Visual Studio added this header only in version 2013.
Still common common compilers Visual Studio 2010 and 2012 (and all earlier)
do not support it.
Here we do not really have a benefit as compared to just using 'int'
instead of 'bool', so this dependency can easily be avoided to support
Visual Studio 2010 (see also https://github.com/libcheck/check/issues/125).
Branden Archer [Tue, 25 Jul 2017 13:39:21 +0000 (09:39 -0400)]
Merge pull request #124 from brarcher/remove-include
Define pid_t in check.h for Windows
Branden Archer [Mon, 24 Jul 2017 02:58:44 +0000 (22:58 -0400)]
Define pid_t in check.h if on Windows
Windows will need the definition of pid_t for a function
in check.h, and on Windows pid_t is not defined in sys/types.h.
Branden Archer [Mon, 24 Jul 2017 02:32:36 +0000 (22:32 -0400)]
Do not inlcude libcompat.h in ex_output.c
This program should be similar to what someone else could
use from Check. Removing this header will help determine
if anything in check.h is undefined.
Branden Archer [Sat, 13 May 2017 13:22:49 +0000 (09:22 -0400)]
Merge pull request #123 from libcheck/message
Update 'no messaging setup' message
Branden Archer [Sat, 13 May 2017 02:02:08 +0000 (22:02 -0400)]
Merge branch 'master' into message
Branden Archer [Sat, 13 May 2017 02:01:50 +0000 (22:01 -0400)]
Merge pull request #122 from libcheck/bail-tmp-file
Bail on error if cannot create pipe file