2020-01-26 06:26:08 +01:00
|
|
|
# $NetBSD: Makefile,v 1.27 2020/01/26 05:26:22 rillig Exp $
|
2002-06-26 09:16:38 +02:00
|
|
|
#
|
|
|
|
|
2019-11-23 08:08:29 +01:00
|
|
|
DISTNAME= check-0.13.0
|
2019-11-24 10:02:56 +01:00
|
|
|
PKGREVISION= 1
|
2002-06-26 09:16:38 +02:00
|
|
|
CATEGORIES= devel
|
Update to 0.12.0. From the changelog:
* Fix out-of-tree builds with CMake.
Issue #86
* Fix issue found with Clang regarding invalid suffix on a literal
Issue #110
* Check now responds to a few errors in a more clear way when it cannot run tests.
PR #122, #123
* Fix missing pid_t definition in check.h on Windows
Issue #78
* The maximum message size of check assertions is now configurable.
Issue #127
* Check support added for Visual Studios 2010, 2012, 2013, 2015, and
2017 both for x86/64 and ARM.
PR #129, Issue #125
* Changed license of example CMake files to BSD (was previously LGPL).
Issue #131
* Fix issue with floating point macros on MinGW
Issue #101
* Avoid issue in unit test output checking where a shell's built-in printf
command does not work properly, but the printf program itself is correct.
* Emit only valid XML characters in XML logging (assumes ASCII encoding).
Bug #103
* Add LGPL header to files where it was missing; update FSF address in LGPL headers
Bug #110
* Strip timestamps from examples using filterdiff if available. This
allow build output to be reproducible.
Bug #112
* Use double slash for regular expressions in checkmk for better Solaris support.
* Improve CMake build files for better Visual Studio 2015 support.
Pull Request #19
* Fix potential SIGSEGV in Check related to the disk filling up during a test.
Pull Request #21
* Support added for applying tags to test cases and selectively running
test cases based on tags.
Pull Request #44
* Macros for comparing memory regions (ck_assert_mem_eq, ck_assert_mem_ne)
have been added.
Pull Request #64
* Macros for comparing floating point numbers have been added.
Pull Request #69
* Macros for comparing string, but allowing for NULL (ck_assert_pstr_eq,
ck_assert_pstr_ne) have been added.
Pull Request #80
* Macros for checking if a pointer is NULL or not have been added.
Pull Request #87
2018-03-30 21:16:55 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=libcheck/}
|
2002-06-26 09:16:38 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2020-01-26 06:26:08 +01: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
|
Update to 0.12.0. From the changelog:
* Fix out-of-tree builds with CMake.
Issue #86
* Fix issue found with Clang regarding invalid suffix on a literal
Issue #110
* Check now responds to a few errors in a more clear way when it cannot run tests.
PR #122, #123
* Fix missing pid_t definition in check.h on Windows
Issue #78
* The maximum message size of check assertions is now configurable.
Issue #127
* Check support added for Visual Studios 2010, 2012, 2013, 2015, and
2017 both for x86/64 and ARM.
PR #129, Issue #125
* Changed license of example CMake files to BSD (was previously LGPL).
Issue #131
* Fix issue with floating point macros on MinGW
Issue #101
* Avoid issue in unit test output checking where a shell's built-in printf
command does not work properly, but the printf program itself is correct.
* Emit only valid XML characters in XML logging (assumes ASCII encoding).
Bug #103
* Add LGPL header to files where it was missing; update FSF address in LGPL headers
Bug #110
* Strip timestamps from examples using filterdiff if available. This
allow build output to be reproducible.
Bug #112
* Use double slash for regular expressions in checkmk for better Solaris support.
* Improve CMake build files for better Visual Studio 2015 support.
Pull Request #19
* Fix potential SIGSEGV in Check related to the disk filling up during a test.
Pull Request #21
* Support added for applying tags to test cases and selectively running
test cases based on tags.
Pull Request #44
* Macros for comparing memory regions (ck_assert_mem_eq, ck_assert_mem_ne)
have been added.
Pull Request #64
* Macros for comparing floating point numbers have been added.
Pull Request #69
* Macros for comparing string, but allowing for NULL (ck_assert_pstr_eq,
ck_assert_pstr_ne) have been added.
Pull Request #80
* Macros for checking if a pointer is NULL or not have been added.
Pull Request #87
2018-03-30 21:16:55 +02:00
|
|
|
#CONFIGURE_ENV= ac_cv_path_AWK_PATH=gawk
|
2018-04-04 13:46:25 +02:00
|
|
|
USE_TOOLS= automake autoreconf makeinfo pkg-config # gawk
|
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
|
|
|
|
2019-11-24 10:02:56 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-build-docs=no
|
|
|
|
|
2016-06-17 04:25:47 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
Update to 0.12.0. From the changelog:
* Fix out-of-tree builds with CMake.
Issue #86
* Fix issue found with Clang regarding invalid suffix on a literal
Issue #110
* Check now responds to a few errors in a more clear way when it cannot run tests.
PR #122, #123
* Fix missing pid_t definition in check.h on Windows
Issue #78
* The maximum message size of check assertions is now configurable.
Issue #127
* Check support added for Visual Studios 2010, 2012, 2013, 2015, and
2017 both for x86/64 and ARM.
PR #129, Issue #125
* Changed license of example CMake files to BSD (was previously LGPL).
Issue #131
* Fix issue with floating point macros on MinGW
Issue #101
* Avoid issue in unit test output checking where a shell's built-in printf
command does not work properly, but the printf program itself is correct.
* Emit only valid XML characters in XML logging (assumes ASCII encoding).
Bug #103
* Add LGPL header to files where it was missing; update FSF address in LGPL headers
Bug #110
* Strip timestamps from examples using filterdiff if available. This
allow build output to be reproducible.
Bug #112
* Use double slash for regular expressions in checkmk for better Solaris support.
* Improve CMake build files for better Visual Studio 2015 support.
Pull Request #19
* Fix potential SIGSEGV in Check related to the disk filling up during a test.
Pull Request #21
* Support added for applying tags to test cases and selectively running
test cases based on tags.
Pull Request #44
* Macros for comparing memory regions (ck_assert_mem_eq, ck_assert_mem_ne)
have been added.
Pull Request #64
* Macros for comparing floating point numbers have been added.
Pull Request #69
* Macros for comparing string, but allowing for NULL (ck_assert_pstr_eq,
ck_assert_pstr_ne) have been added.
Pull Request #80
* Macros for checking if a pointer is NULL or not have been added.
Pull Request #87
2018-03-30 21:16:55 +02:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && autoreconf -fiv
|
|
|
|
|
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"
|