From 9b6a5ce8ea7098c497076ccbfd64fa4299351f28 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Tue, 1 Dec 2020 12:38:00 -0500 Subject: Reenable unit tests Now that https://bugs.debian.org/970943 has been resolved and a new Git snapshot of googletest has made it to testing, reenable Abseil unit tests and run them as part of the build process. This does not change the package as viewed by dependents; it only provides greater assurance of correctness when an upload occurs. (It probably would have caught http://bugs.debian.org/973492, for instance.) Run the tests against the shared libraries, not the static ones, to more accurately simulate the conditions under which dependents are likely to use Abseil. --- debian/changelog | 6 ++++++ debian/control | 1 + debian/rules | 5 ++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 73763af3..ad5cbe09 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +abseil (0~20200923.2-2) unstable; urgency=medium + + * Reenable unit tests. + + -- Benjamin Barenblat Tue, 01 Dec 2020 12:37:56 -0500 + abseil (0~20200923.2-1) unstable; urgency=medium * New upstream release. diff --git a/debian/control b/debian/control index b490ddce..2bf190c5 100644 --- a/debian/control +++ b/debian/control @@ -18,6 +18,7 @@ Maintainer: Benjamin Barenblat Build-Depends: cmake (>= 3.5), debhelper-compat (= 12), + googletest (>= 1.10.0.20200926), Rules-Requires-Root: no Standards-Version: 4.5.0 Section: libs diff --git a/debian/rules b/debian/rules index c6c94e3c..859e20ba 100755 --- a/debian/rules +++ b/debian/rules @@ -24,12 +24,15 @@ override_dh_auto_clean: override_dh_auto_configure: dh_auto_configure -Bstatic -- -DCMAKE_CXX_STANDARD=14 -DBUILD_SHARED_LIBS=OFF - dh_auto_configure -Bshared -- -DCMAKE_CXX_STANDARD=14 -DBUILD_SHARED_LIBS=ON + dh_auto_configure -Bshared -- -DCMAKE_CXX_STANDARD=14 -DBUILD_SHARED_LIBS=ON -DABSL_RUN_TESTS=ON -DABSL_USE_GOOGLETEST_HEAD=OFF override_dh_auto_build: dh_auto_build -Bstatic dh_auto_build -Bshared +override_dh_auto_test: + dh_auto_test -Bshared + override_dh_auto_install: dh_auto_install -Bstatic dh_auto_install -Bshared -- cgit v1.2.3