Update 0.9.10 to 0.9.14
-----------------------
Sat July 26, 2014: Released Check 0.9.14
based on r1174 (2014-07-03 18:43:49 +0000)
* Changes to (unofficially for now) support Solaris and AIX platforms.
* Fix issue with checked teardown functions in CK_NOFORK mode. If
the teardown function called an assertion that failed, an
infinate loop would result. Bug#98. As a result of the change, for now
checked teardown functions that fail in CK_NOFORK mode will
not cause the test to fail.
* Allow checked fixtures when compiled without fork(). Previously
such setup/teardown functions were disabled, as the full contract
for checked fixtures could not be honored. Checked fixtures
in CK_NOFORK mode are now closer to the contract, and are now
enabled.
* Various code cleanup, including changes for compiling Check on
c++ compilers Clang and g++ (which are less forgiving than their
c counterparts).
* Re-enable internal unit tests, which verify which line numbers are
reported for unit test failures. (The tests were unintentionally
disabled in a previous release).
Fri May 30, 2014: Released Check 0.9.13
based on r1137 (2014-05-26 21:03:09 +0000)
* When a test assertion fails, exit() was invoked. This results in any
registered exit handlers being invoked. A test should not be relied
upon to clean up if it fails. Instead, _exit() will be used to signal
a test failure, to prevent exit handlers from being invoked.
* Fix issue with string formatting in ck_assert_(u)int_* calls, where using
the % operator would be interpreted as a string formatter. Bug #96.
* If the LOG/XML/TAP file name is set to "-" either through the
srunner_set_log() srunner_set_xml() or srunner_set_tap() calls
or through the related environment variables, the logged data will be
printed to stdout instead of a file. This is mainly to support using TAP
for fixtures which expect the results to be reported via stdout. However,
it is available via all of Check's logging modalities.
* For CMake builds, check_stdint.h was not being installed. This is now
fixed.
* Check's example under doc/example now also works for CMake projects
using Visual Studios and MSVC. This includes an example CMake
configuration.
Mon Jan 20, 2014: Released Check 0.9.12
based on r1054 (2014-01-16 23:08:03 +0000)
* Additional unit tests created for internal and external Check
APIs.
* Check now compiled on Windows using MSVC when using CMake and
NMake. All unit tests pass, though shell script based ones need
to be run in the MSYS environment.
* Check now compiles on Windows using Visual Studio 10
when using CMake. check_check passes when run from Visual Studios.
* Always capture the start and end times of tests when using
NO_FORK mode. Previously the end time was not captured,
resulting in arbitrary durations being recorded when tests
failed. Bug #87.
* Added additional configure script checks for support of
timer_create() on the target system. This allows for
OpenBSD to compile and run all Check's unit tests successfully.
* Added a unit test, check_mem_leaks, which can be used against
valgrind to test for memory leaks. No memory leaks were found.
* Added tcase_add_loop_test support in checkm. Patch from patches #46.
* Add support for logging in Test Anything Protocol (TAP) format.
* Refactor Check's assertions to be more like the assert() call in
assert.h, in that static source code analyzers can use gcc attributes
in the header to make assumptions about the flow of the code. See
feature request #29.
* fix ck_assert_ptr_* causing const compilation warnings. Patch from
bug #91.
Wed, Nov 4, 2013: Released Check 0.9.11
based on r856 (2013-11-04 02:09:21 +0000)
* Check's unit tests pass when compiled out of the source tree.
* Check compiles for Windows using the MinGW/msys environment (without using fork), and all unit tests pass.
* Check compiles for Windows using the Cygwin environment, and all unit tests pass.
* Check compiles for Windows using MinGW in Linux (without using fork), and all unit tests pass using wine 1.4.
* Check compiles for Windows using MinGW-w64 in Linux (without using fork), and all unit tests pass using wine 1.4.
* On systems without timer_settimer, use setitimer (if available) to get
subsecond unit test timeouts. If setitimer is unavailable, fallback
on alarm.
2014-12-12 08:38:43 +01:00
|
|
|
# $NetBSD: Makefile,v 1.20 2014/12/12 07:38:43 mef Exp $
|
2002-06-26 09:16:38 +02:00
|
|
|
#
|
|
|
|
|
Update 0.9.10 to 0.9.14
-----------------------
Sat July 26, 2014: Released Check 0.9.14
based on r1174 (2014-07-03 18:43:49 +0000)
* Changes to (unofficially for now) support Solaris and AIX platforms.
* Fix issue with checked teardown functions in CK_NOFORK mode. If
the teardown function called an assertion that failed, an
infinate loop would result. Bug#98. As a result of the change, for now
checked teardown functions that fail in CK_NOFORK mode will
not cause the test to fail.
* Allow checked fixtures when compiled without fork(). Previously
such setup/teardown functions were disabled, as the full contract
for checked fixtures could not be honored. Checked fixtures
in CK_NOFORK mode are now closer to the contract, and are now
enabled.
* Various code cleanup, including changes for compiling Check on
c++ compilers Clang and g++ (which are less forgiving than their
c counterparts).
* Re-enable internal unit tests, which verify which line numbers are
reported for unit test failures. (The tests were unintentionally
disabled in a previous release).
Fri May 30, 2014: Released Check 0.9.13
based on r1137 (2014-05-26 21:03:09 +0000)
* When a test assertion fails, exit() was invoked. This results in any
registered exit handlers being invoked. A test should not be relied
upon to clean up if it fails. Instead, _exit() will be used to signal
a test failure, to prevent exit handlers from being invoked.
* Fix issue with string formatting in ck_assert_(u)int_* calls, where using
the % operator would be interpreted as a string formatter. Bug #96.
* If the LOG/XML/TAP file name is set to "-" either through the
srunner_set_log() srunner_set_xml() or srunner_set_tap() calls
or through the related environment variables, the logged data will be
printed to stdout instead of a file. This is mainly to support using TAP
for fixtures which expect the results to be reported via stdout. However,
it is available via all of Check's logging modalities.
* For CMake builds, check_stdint.h was not being installed. This is now
fixed.
* Check's example under doc/example now also works for CMake projects
using Visual Studios and MSVC. This includes an example CMake
configuration.
Mon Jan 20, 2014: Released Check 0.9.12
based on r1054 (2014-01-16 23:08:03 +0000)
* Additional unit tests created for internal and external Check
APIs.
* Check now compiled on Windows using MSVC when using CMake and
NMake. All unit tests pass, though shell script based ones need
to be run in the MSYS environment.
* Check now compiles on Windows using Visual Studio 10
when using CMake. check_check passes when run from Visual Studios.
* Always capture the start and end times of tests when using
NO_FORK mode. Previously the end time was not captured,
resulting in arbitrary durations being recorded when tests
failed. Bug #87.
* Added additional configure script checks for support of
timer_create() on the target system. This allows for
OpenBSD to compile and run all Check's unit tests successfully.
* Added a unit test, check_mem_leaks, which can be used against
valgrind to test for memory leaks. No memory leaks were found.
* Added tcase_add_loop_test support in checkm. Patch from patches #46.
* Add support for logging in Test Anything Protocol (TAP) format.
* Refactor Check's assertions to be more like the assert() call in
assert.h, in that static source code analyzers can use gcc attributes
in the header to make assumptions about the flow of the code. See
feature request #29.
* fix ck_assert_ptr_* causing const compilation warnings. Patch from
bug #91.
Wed, Nov 4, 2013: Released Check 0.9.11
based on r856 (2013-11-04 02:09:21 +0000)
* Check's unit tests pass when compiled out of the source tree.
* Check compiles for Windows using the MinGW/msys environment (without using fork), and all unit tests pass.
* Check compiles for Windows using the Cygwin environment, and all unit tests pass.
* Check compiles for Windows using MinGW in Linux (without using fork), and all unit tests pass using wine 1.4.
* Check compiles for Windows using MinGW-w64 in Linux (without using fork), and all unit tests pass using wine 1.4.
* On systems without timer_settimer, use setitimer (if available) to get
subsecond unit test timeouts. If setitimer is unavailable, fallback
on alarm.
2014-12-12 08:38:43 +01:00
|
|
|
DISTNAME= check-0.9.14
|
2002-06-26 09:16:38 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=check/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2002-06-26 09:16:38 +02:00
|
|
|
HOMEPAGE= http://check.sourceforge.net/
|
2003-07-21 18:35:12 +02:00
|
|
|
COMMENT= Unit test framework for C
|
Update check to 0.9.8.
Based on PR#43757 by Kamel Derouiche.
Tue, Sep 22, 2009: Released Check 0.9.8
based on r559 (2009-09-23 21:00).
* Fix CHECK_MICRO_VERSION, left at 6 in 0.9.7 by mistake.
Tue, Sep 22, 2009: Released Check 0.9.7
based on r552 (2009-09-22 09:26).
* Added CK_SUBUNIT support for outputting test information in the subunit wire
protocol. See the check manual for more information. (Contributed by Robert
Collins).
* Added code and tests for timeout scaling via environment variable.
Feature requested in tracker item #1549835 on sourceforge.
* Added documentation for testing exit values with tcase_add_exit_test().
* Add make_macros perl script from somebody (who?)
* add type to check_type error message
* add contrib dir with xslt transform
* function exist testing support (patch #1726574).
* introduce HAVE_WORKING_SETENV to protect tc_timeout_env usage
* support running tests with multiple pthreads (Daniel Gollub, closes 1391527)
* partial MSYS/MinGW support
Mon, Dec 29, 2008: Released Check 0.9.6
based on r453 (2008-12-01 22:14:15).
* 'make distcheck' does not work out of the box. Disable the two
top lines in doc/Makefile.am and it shall pass. Will have to
be fixed later.
* add call to AC_REPLACE_FUNCS([strsignal])
* add new rpl_strsignal following rpl_(re)malloc template, body
of function due to Roland Illig
-- hopefully closes 1629755
* add missing NULL argument to fail* varargs macro calls
* define incorrect tests for __GNUC__ only
-- both per Roland Illig in bug 1677391
* define CK_ATTRIBUTE_UNUSED for GCC >= 2.95, closing:
[ 1674626 ] compile error with non defined __attribute__ compiler
* Fixed error in documentation example Makefile.am, bug #1888237
* Fixed spelling (patch #1652630)
* Handle NULL in srunner_add_suite(). Fixes #1624887
* add CK_FORK_GETENV to enum fork_status and delete CK_FORK_UNSPECIFIED
* call strdup on result from strsignal to avoid clobbering it
* add Torok Edwin to AUTHORS
* add CK_TEST_RESULT_INVALID to enum test_result
* add CK_CTX_INVALID to ck_result_ctx and don't use -1 anymore
* count checks in setup() as well; patch due to Roland Stigge
* use int __attribute__((unused)) _i instead of
int _i __attribute__((unused))
per gcc-3.3.5 request from Sebastian Trahm
* rename signal to _signal in _tcase_add_test to avoid a
symbol clash with /usr/include/sys/signal.h on OS X.
* define rpl_malloc and rpl_realloc for platforms where
!malloc(0) and !realloc(0,0), such as AIX, because configure
goes and redefines malloc/realloc in this case...
* SVNChangeLog patch from Robert Collins
* Incorporated patch from Debian for debian bug #395466. This fixes
'AM_PATH_CHECK causes "possibly undefined macro" errors'.
* Added new Check fail API. Implemented on top of fail_unless. Future
versions will reverse this so fail_unless is implemented on top of the
ck_assert API. This API is not documented yet, will probably not be fully
released until 0.9.8, when it will be possible to choose API.
2010-08-18 06:36:13 +02:00
|
|
|
LICENSE= gnu-lgpl-v2.1
|
2002-06-26 09:16:38 +02:00
|
|
|
|
2005-09-28 22:52:18 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-02-01 20:07:23 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
INFO_FILES= yes
|
Update check to 0.9.8.
Based on PR#43757 by Kamel Derouiche.
Tue, Sep 22, 2009: Released Check 0.9.8
based on r559 (2009-09-23 21:00).
* Fix CHECK_MICRO_VERSION, left at 6 in 0.9.7 by mistake.
Tue, Sep 22, 2009: Released Check 0.9.7
based on r552 (2009-09-22 09:26).
* Added CK_SUBUNIT support for outputting test information in the subunit wire
protocol. See the check manual for more information. (Contributed by Robert
Collins).
* Added code and tests for timeout scaling via environment variable.
Feature requested in tracker item #1549835 on sourceforge.
* Added documentation for testing exit values with tcase_add_exit_test().
* Add make_macros perl script from somebody (who?)
* add type to check_type error message
* add contrib dir with xslt transform
* function exist testing support (patch #1726574).
* introduce HAVE_WORKING_SETENV to protect tc_timeout_env usage
* support running tests with multiple pthreads (Daniel Gollub, closes 1391527)
* partial MSYS/MinGW support
Mon, Dec 29, 2008: Released Check 0.9.6
based on r453 (2008-12-01 22:14:15).
* 'make distcheck' does not work out of the box. Disable the two
top lines in doc/Makefile.am and it shall pass. Will have to
be fixed later.
* add call to AC_REPLACE_FUNCS([strsignal])
* add new rpl_strsignal following rpl_(re)malloc template, body
of function due to Roland Illig
-- hopefully closes 1629755
* add missing NULL argument to fail* varargs macro calls
* define incorrect tests for __GNUC__ only
-- both per Roland Illig in bug 1677391
* define CK_ATTRIBUTE_UNUSED for GCC >= 2.95, closing:
[ 1674626 ] compile error with non defined __attribute__ compiler
* Fixed error in documentation example Makefile.am, bug #1888237
* Fixed spelling (patch #1652630)
* Handle NULL in srunner_add_suite(). Fixes #1624887
* add CK_FORK_GETENV to enum fork_status and delete CK_FORK_UNSPECIFIED
* call strdup on result from strsignal to avoid clobbering it
* add Torok Edwin to AUTHORS
* add CK_TEST_RESULT_INVALID to enum test_result
* add CK_CTX_INVALID to ck_result_ctx and don't use -1 anymore
* count checks in setup() as well; patch due to Roland Stigge
* use int __attribute__((unused)) _i instead of
int _i __attribute__((unused))
per gcc-3.3.5 request from Sebastian Trahm
* rename signal to _signal in _tcase_add_test to avoid a
symbol clash with /usr/include/sys/signal.h on OS X.
* define rpl_malloc and rpl_realloc for platforms where
!malloc(0) and !realloc(0,0), such as AIX, because configure
goes and redefines malloc/realloc in this case...
* SVNChangeLog patch from Robert Collins
* Incorporated patch from Debian for debian bug #395466. This fixes
'AM_PATH_CHECK causes "possibly undefined macro" errors'.
* Added new Check fail API. Implemented on top of fail_unless. Future
versions will reverse this so fail_unless is implemented on top of the
ck_assert API. This API is not documented yet, will probably not be fully
released until 0.9.8, when it will be possible to choose API.
2010-08-18 06:36:13 +02:00
|
|
|
|
2007-02-01 20:07:23 +01:00
|
|
|
PKGCONFIG_OVERRIDE= check.pc.in
|
2002-06-26 09:16:38 +02:00
|
|
|
|
Update check to 0.9.8.
Based on PR#43757 by Kamel Derouiche.
Tue, Sep 22, 2009: Released Check 0.9.8
based on r559 (2009-09-23 21:00).
* Fix CHECK_MICRO_VERSION, left at 6 in 0.9.7 by mistake.
Tue, Sep 22, 2009: Released Check 0.9.7
based on r552 (2009-09-22 09:26).
* Added CK_SUBUNIT support for outputting test information in the subunit wire
protocol. See the check manual for more information. (Contributed by Robert
Collins).
* Added code and tests for timeout scaling via environment variable.
Feature requested in tracker item #1549835 on sourceforge.
* Added documentation for testing exit values with tcase_add_exit_test().
* Add make_macros perl script from somebody (who?)
* add type to check_type error message
* add contrib dir with xslt transform
* function exist testing support (patch #1726574).
* introduce HAVE_WORKING_SETENV to protect tc_timeout_env usage
* support running tests with multiple pthreads (Daniel Gollub, closes 1391527)
* partial MSYS/MinGW support
Mon, Dec 29, 2008: Released Check 0.9.6
based on r453 (2008-12-01 22:14:15).
* 'make distcheck' does not work out of the box. Disable the two
top lines in doc/Makefile.am and it shall pass. Will have to
be fixed later.
* add call to AC_REPLACE_FUNCS([strsignal])
* add new rpl_strsignal following rpl_(re)malloc template, body
of function due to Roland Illig
-- hopefully closes 1629755
* add missing NULL argument to fail* varargs macro calls
* define incorrect tests for __GNUC__ only
-- both per Roland Illig in bug 1677391
* define CK_ATTRIBUTE_UNUSED for GCC >= 2.95, closing:
[ 1674626 ] compile error with non defined __attribute__ compiler
* Fixed error in documentation example Makefile.am, bug #1888237
* Fixed spelling (patch #1652630)
* Handle NULL in srunner_add_suite(). Fixes #1624887
* add CK_FORK_GETENV to enum fork_status and delete CK_FORK_UNSPECIFIED
* call strdup on result from strsignal to avoid clobbering it
* add Torok Edwin to AUTHORS
* add CK_TEST_RESULT_INVALID to enum test_result
* add CK_CTX_INVALID to ck_result_ctx and don't use -1 anymore
* count checks in setup() as well; patch due to Roland Stigge
* use int __attribute__((unused)) _i instead of
int _i __attribute__((unused))
per gcc-3.3.5 request from Sebastian Trahm
* rename signal to _signal in _tcase_add_test to avoid a
symbol clash with /usr/include/sys/signal.h on OS X.
* define rpl_malloc and rpl_realloc for platforms where
!malloc(0) and !realloc(0,0), such as AIX, because configure
goes and redefines malloc/realloc in this case...
* SVNChangeLog patch from Robert Collins
* Incorporated patch from Debian for debian bug #395466. This fixes
'AM_PATH_CHECK causes "possibly undefined macro" errors'.
* Added new Check fail API. Implemented on top of fail_unless. Future
versions will reverse this so fail_unless is implemented on top of the
ck_assert API. This API is not documented yet, will probably not be fully
released until 0.9.8, when it will be possible to choose API.
2010-08-18 06:36:13 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2002-06-26 09:16:38 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|