aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 01:24:40 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 01:24:40 +0200
commit6ffd50f7ed8206dd7fb72820ba7ef269dece72f6 (patch)
treeeb81c10cf7d1e94bcc0d8f63dbf9f32e9da6d947 /debian
parent2e8b41d2f46a94c9ece7fed156f19c5620453e10 (diff)
downloadayatana-indicator-sound-6ffd50f7ed8206dd7fb72820ba7ef269dece72f6.tar.gz
ayatana-indicator-sound-6ffd50f7ed8206dd7fb72820ba7ef269dece72f6.tar.bz2
ayatana-indicator-sound-6ffd50f7ed8206dd7fb72820ba7ef269dece72f6.zip
debian/rules: Enable unit tests with the new way.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules18
1 files changed, 12 insertions, 6 deletions
diff --git a/debian/rules b/debian/rules
index 593fdf0..2147826 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,17 +4,23 @@ NULL =
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
+DEB_CMAKE_EXTRA_FLAGS = \
+ -DCMAKE_INSTALL_LOCALSTATEDIR="/var" \
+ -DENABLE_TESTS=ON \
+ -DENABLE_COVERAGE=OFF \
+ $(NULL)
+
%:
- dh $@ --parallel --fail-missing --with systemd
+ dh $@ --parallel --with systemd
override_dh_auto_configure:
- # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
- # So until Debian bug 719148 is fixed, do it ourselves.
- dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var" \
- $(NULL)
+ dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)
+
+override_dh_missing:
+ dh_missing --fail-missing
override_dh_install:
- dh_install --fail-missing
+ dh_install
# For live test logs:
#override_dh_auto_test: