GoogleTest is based on the xUnit architecture. Supports automatic test
discovery, a rich set of assertions, user-defined assertions, death
tests, fatal and non-fatal failures, type-parameterized tests, various
options for running the tests, and XML test report generation.
GoogleMock is inspired by jMock, EasyMock, and Hamcrest, and designed
with C++'s specifics in mind, Google C++ Mocking Framework (or Google
Mock for short) is a library for writing and using C++ mock
classes. Google Mock:
* lets you create mock classes trivially using simple macros,
* supports a rich set of matchers and actions,
* handles unordered, partially ordered, or completely ordered expectations,
* is extensible by users, and
* works on Linux, Windows, and Mac OS X.
devel/googletest: Use C++17 explicitly
Do not bump PORTREVISION because Clang 16+ already uses C++17 by default.
The resulting shared libraries are identical.
devel/googletest: Update to 1.15.0
- Update MASTER_SITES: use upstream release tarball
- Use USES=pathfix to fix .pc installation
- Bump PORTREVISION of dependent ports for shlib change
Changes: https://github.com/google/googletest/releases
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* <jkoshy@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Aaron H. K. Diep <ahkdiep@gmail.com>
* Aaron Hurt <ahurt@anbcs.com>
* Abel Chow <abel_chow@yahoo.com>
* Adam McLaurin
* Adam Saponara <as@php.net>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
(Only the first 15 lines of the commit message are shown above )
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
devel/googletest: require libpthread
As noted by @asomers in rS300906 (`cddl/usr.sbin/zfsd/tests/Makefile`
specifically), googletest requires libpthread in order to function, if
`-DGTEST_HAS_PTHREAD` is defined.
While this is true, the code was not being linked against libpthread,
resulting in libgtest being broken, and thus all tests reliant on the library
broken at runtime.
Adding `LIBS+= -lpthread` unbreaks the tests that use pthread support
internally.
PR: 236169
Reviewed by: jbeich
Approved by: jbeich (maintainer)
Differential Revision: https://reviews.freebsd.org/D19463
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
devel/googletest: oops, builds fine with clang++ -stdlib=libstdc++ -std=gnu++03
FreeBSD 9.x defaulted to GCC 4.2 but could use Clang, so c++11-lang
used Clang while c++11-lib use lang/gcc* bun nowadays the difference
no longer exists. While testing previous change I forgot to account
that newer Clang versions have switched to C++14 by default while
libstdc++ 4.2 doesn't support C++11 or newer.
PR: 231835
devel/googletest: unbreak on GCC architectures after r478607
In file included from ./include/gtest/gtest.h:59,
from src/gtest_main.cc:31:
./include/gtest/internal/gtest-internal.h:657: error: expected ',' or '...'
before '>' token
./include/gtest/internal/gtest-internal.h:657: error: parse error in template
argument list
./include/gtest/internal/gtest-internal.h:657: error: default argument missing
for parameter 7 of 'static bool
testing::internal::TypeParameterizedTest<Fixture, TestSel,
Types>::Register(const char*, const testing::internal::CodeLocation&, const
char*, const char*, int, const std::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >&, Types)'
In file included from src/gtest_main.cc:31:
In file included from ./include/gtest/gtest.h:59:
./include/gtest/internal/gtest-internal.h:947:44: error: no member named
'declval' in namespace 'std'
class Iterator = decltype(::std::declval<const C&>().begin()),
~~~~~~~^
./include/gtest/internal/gtest-internal.h:947:52: error: expected expression
class Iterator = decltype(::std::declval<const C&>().begin()),
(Only the first 15 lines of the commit message are shown above )
devel/google{test,mock}: simplify and modernize
- Convert to the new testing framework
- Add upstream fix for gmock_doctor.py to work with python3, so
keep existing |/usr/bin/env python| shebang
- Drop fused-src tests as the ports don't install source files
- No need to shebangfix files we don't install
- Provide LICENSE_FILE as there's none under Templates/Licenses/
- Sort declarations by the order they're run (ldconfig is last)
- Silence post-patch commands [1]
PR: 203514
Submitted by: amdmi3 [1]
Reviewed by: amdmi3 (previous version)
devel/googlemock, devel/googletest: Upgrade version 1.5 => 1.7
As part of the upgrade process:
- copy shebangfix and regression-test from googletest to googlemock
- convert regression-test to TEST option for better integration with
poudriere and visibility for users
- make sure configure detects python2 to follow shebangfix
- add LICENSE=BSD3CLAUSE (idea from comment 0)
- strip libs per stage-qa
- enable pthreads by default in devel/googletest
- enable death tests in devel/googletest
- enable socket streaming in devel/googletest
- implement GetThreadCount for death tests in devel/googletest
- disable streaming tests that fail with old gcc on 9.x in googletest
- depend on googletest in googlemock as -lgmock fails otherwise [1]
- pass maintainership to the persistent submitter [2]
PR: 187562
PR: 192736 [2]
PR: 192042 [1]
Approved by: maintainer timeout (~8 months)
Submitted by: rakuco [1]
Submitted by: Jan Beich <jbeich@vfemail.net> [2]
Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. Categories D-F.
CR: D196
Approved by: portmgr (bapt)
Google's framework for writing C++ tests on a variety of platforms
(Linux, Mac OS X, Windows, Cygwin, Windows CE, and Symbian).
Based on the xUnit architecture. Supports automatic test discovery,
a rich set of assertions, user-defined assertions, death tests,
fatal and non-fatal failures, type-parameterized tests, various options
for running the tests, and XML test report generation.