From 30f359b8df30cb72f2505f1e843e6054d01c8bdd Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Tue, 18 Oct 2022 08:37:23 -0400 Subject: Support nocheck profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per release-team’s recent request that maintainers support the nocheck profile , annotate googletest with and disable tests in debian/rules if that profile is set. --- debian/control | 2 +- debian/rules | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/control b/debian/control index aeb749e4..b0038378 100644 --- a/debian/control +++ b/debian/control @@ -18,7 +18,7 @@ Maintainer: Benjamin Barenblat Build-Depends: cmake (>= 3.5), debhelper-compat (= 12), - googletest (>= 1.12) [!mipsel !ppc64] + googletest (>= 1.12) [!mipsel !ppc64] Rules-Requires-Root: no Standards-Version: 4.6.1 Section: libs diff --git a/debian/rules b/debian/rules index 86492154..0dbb698e 100755 --- a/debian/rules +++ b/debian/rules @@ -20,8 +20,12 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow reproducible=+fixfilepath # Unit tests require more than 2 GB of RAM, so disable them on mipsel. # # Unit tests are not yet passing on ppc64, so disable them there as well. +# +# Disable unit tests unconditionally if nocheck is set. ifneq ($(filter $(DEB_HOST_ARCH),mipsel ppc64),) ABSL_RUN_TESTS=OFF +else ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) +ABSL_RUN_TESTS=OFF else ABSL_RUN_TESTS=ON endif -- cgit v1.2.3