From 6ffd50f7ed8206dd7fb72820ba7ef269dece72f6 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 29 Aug 2021 01:24:40 +0200 Subject: debian/rules: Enable unit tests with the new way. --- debian/rules | 18 ++++++++++++------ 1 file 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: -- cgit v1.2.3