Package: znc
Severity: wishlist

Dear Maintainer,

While looking into updating the packaging for the alpha releases, I noticed 
that it'd be trivial to enable the tests.  If you're interested, the below 
patch would achieve said task.


diff --git a/debian/changelog b/debian/changelog
index 052197e..c60ab70 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+znc (1.7.0-2) unstable; urgency=medium
+
+  * d/control: Build-depend on google-mock and googletest.
+  * d/rules:
+    - Drop DEB_BUILD_OPTIONS+=nocheck, enabling tests.
+    - Update configure flags to find system gmock and gtest.
+
+ -- Unit 193 <unit...@ubuntu.com>  Thu, 10 May 2018 16:12:13 -0400
+
 znc (1.7.0-1) unstable; urgency=high
 
   * New upstream release.
diff --git a/debian/control b/debian/control
index a8dc9ed..22864a3 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,8 @@ Build-Depends: debhelper (>= 11),
  libsasl2-dev,
  swig3.0,
  dh-python,
+ google-mock,
+ googletest,
  python3-dev
 Maintainer: Patrick Matthäi <pmatth...@debian.org>
 Standards-Version: 4.1.4
diff --git a/debian/rules b/debian/rules
index e61e968..c1fba08 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,6 @@
 #!/usr/bin/make -f
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-export DEB_BUILD_OPTIONS+=nocheck
 
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
@@ -15,7 +14,9 @@ DEB_CONFIGURE_EXTRA_FLAGS := \
        --enable-tcl \
        --enable-cyrus \
        --enable-perl \
-       --enable-python
+       --enable-python \
+       --with-gtest=/usr/src/googletest/googletest \
+       --with-gmock=/usr/src/googletest/googlemock
 
 %:
        dh $@ --with python3



~Unit 193
Unit193 @ OFTC
Unit193 @ freenode

Reply via email to