[ITP] gtest 1.18 - Google C++ testing framework
Brian Inglis
Brian.Inglis@SystematicSW.ab.ca
Wed Dec 2 16:24:14 GMT 2026
Framework for writing C++ tests on a variety of platforms
(GNU/Linux, Mac OS X, Windows, 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,
various options for running the tests, and XML test report generation.
Python comprehensive utility library to parse, compare, simplify
and normalize license expressions (such as SPDX license expressions)
using boolean logic.
For more information see the project home page:
https://github.com/google/googletest
License: BSD-3-Clause and Apache-2.0
I would like to provide a Cygwin package for Google Test to support
testing packages which do not use the GNU/Autotools testing approach.
It is packaged by major Linux and BSD distros, Msys2, and MinGW:
https://repology.org/project/gtest/versions
Attached cygport and at:
https://cygwin.com/cgit/cygwin-packages/playground/commit/?id=fee3a1eeae5d
package job all tests fail as some implicit dependency appears to be
missing in Scallywag that is present locally and on Linux:
https://cygwin.com/cgi-bin2/jobs.cgi?id=13076
log at:
https://github.com/cygwin/scallywag/actions/runs/11517043356/job/32060933142
The package has been installed and running on my system and used to test
other packages with ITAs TBD.
Recent changes:
v1.18.0 Aug 10
Set GTEST_INTERNAL_HAS_STRING_VIEW = 1 in googletest as C++17 always
supports it
Many bug fixes
1.17.0 Apr 30, 2025
Added a flag --gtest_fail_if_no_test_linked that will cause the program
to fail if no test case is linked in
A DistanceFrom() matcher is available for general distance comparison
and supports a user-defined abs()
v1.16.0 Feb 7, 2025
GoogleTest requires at least C++14 and follows Google's Foundational C++
Support Policy.
The 1.16.x branch will be the last to support C++14. Future development
will require at least C++17.
Bazel BUILD files now reference repositories by their canonical names
from the Bazel Central Registry.
Users still using the old WORKSPACE system may need to use repo_mapping
on repositories that still use the old names.
Testsuite properties as are now exported as XML elements, not attributes.
v1.15.2 Jul 31, 2024
Many bug fixes
v1.15.0 Jul 15, 2024
Bzlmod is now officially supported (previously it was supported by the
community).
Note that it may take several days after the release for it to become
available in the Bazel Central Registry.
Many bug fixes
Known Issues
The Python toolchain in MODULE.bazel conflicts with downstream
toolchains.
This is fixed in 1.15.2.
-------------- next part --------------
#|/usr/bin/cygport
# gtest.cygport - gtest Cygwin package build control script definitions
# converted by rpmspec2cygport.sh 1.4 2026-11-28 06:22:54+0000
NAME=gtest
VERSION=1.17.0
RELEASE=1
CATEGORY="Devel"
SUMMARY="Google C++ testing framework"
DESCRIPTION="Framework for writing C++ tests on a variety of platforms
(GNU/Linux, Mac OS X, Windows, 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,
various options for running the tests, and XML test report generation."
BASE=googletest
HOMEPAGE=https://github.com/google/$BASE
SRC_DIR=$BASE-$VERSION
SRC_URI=$HOMEPAGE/releases/download/v$VERSION/$SRC_DIR.tar.gz
PATCH_URI=
DEBIAN=https://sources.debian.org/data/main/${NAME:0:1}/$NAME/$VERSION-$RELEASE/debian/patches
FEDORA=https://src.fedoraproject.org/rpms/$NAME/raw/master/f
OPENSUSE=https://raw.githubusercontent.com/bmwiedemann/openSUSE/master/packages/${NAME:0:1}/$NAME
BUILD_REQUIRES="cmake gcc-core gcc-g++ make ninja python3-devel"
CYGCMAKE_ARGS="
-DBUILD_SHARED_LIBS=ON
-DPYTHON_EXECUTABLE=/usr/bin/python3
-Dgtest_build_tests=ON"
#CYGCMAKE_GENERATOR=Ninja
#CYGCMAKE_SOURCE=
inherit cmake
LICENSE="BSD-3-Clause and Apache-2.0"
# SPDX-License-Identifier: BSD-3-Clause and Apache-2.0
LICENSE_SPDX="SPDX-License-Identifier: $LICENSE"
LICENSE_URI="LICENSE"
DOCS="CONTRIBUTORS README.md docs/ googletest/samples $LICENCE_URI"
PKG_NAMES="gtest gtest-devel gmock gmock-devel"
gtest_CONTENTS="
usr/bin/cyggtest.dll
usr/bin/cyggtest_main.dll
usr/share/doc/gtest/CONTRIBUTORS
usr/share/doc/gtest/$LICENSE_URI
usr/share/doc/gtest/README.md
"
gtest_devel_SUMMARY="$SUMMARY (development)"
gtest_devel_CONTENTS="
usr/include/gtest/
usr/lib/libgtest.dll.a
usr/lib/libgtest_main.dll.a
usr/lib/cmake/GTest/
usr/lib/pkgconfig/gtest.pc
usr/lib/pkgconfig/gtest_main.pc
usr/share/doc/gtest/docs/
usr/share/doc/gtest/samples/
"
gmock_SUMMARY="Google C++ Mocking Framework"
gmock_DESCRIPTION="$gmock_SUMMARY is a library for writing and
using C++ mock classes inspired by jMock, EasyMock, and Hamcrest."
gmock_CONTENTS="
usr/bin/cyggmock.dll
usr/bin/cyggmock_main.dll
"
gmock_devel_SUMMARY="$gmock_SUMMARY (development)"
gmock_devel_DESCRIPTION="Google Mock
o lets you create mock classes trivially using simple macros,
o supports a rich set of matchers and actions,
o handles unordered, partially ordered, or completely ordered expectations,
o is extensible by users, and
o works on Linux, Mac OS X, Windows, Windows Mobile, minGW, and Symbian."
gmock_devel_CONTENTS="
usr/include/gmock/
usr/lib/libgmock.dll.a
usr/lib/libgmock_main.dll.a
usr/lib/pkgconfig/gmock.pc
usr/lib/pkgconfig/gmock_main.pc
"
CYGWIN_MAINTAINER=Brian%20Inglis
CYGWIN_MAINTAINER_EMAIL=Brian.Inglis@SystematicSW.ab.ca
UPSTREAM_MAINTAINER=Upstream%20Maintainer
UPSTREAM_MAINTAINER_EMAIL=UpMaint@%forgeurl
UPSTREAM_EMAIL=$NAME@%forgeurl
SUBJECT=${OSTYPE^}%20Package%20$NAME%20$VERSION
MAILTO=mailto:$UPSTREAM_MAINTAINER%20%3C$UPSTREAM_MAINTAINER_EMAIL%3E\
,$UPSTREAM_MAINTAINER%20%3C$UPSTREAM_EMAIL%3E\
?from=$CYGWIN_MAINTAINER%20%3C$CYGWIN_MAINTAINER_EMAIL%3E\
\&subject=$SUBJECT\&body=$SUBJECT
More information about the Cygwin-apps
mailing list