From 647efb0e123bb6879c6ce3b19ce17155b271a269 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Sun, 3 Feb 2019 19:40:11 +0100 Subject: [PATCH] Check $DEB_BUILD_OPTIONS and $DEB_BUILD_PROFILES in override_dh_auto_test Fixes lintian warning override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS. --- debian/changelog | 2 ++ debian/rules | 2 ++ 2 files changed, 4 insertions(+) diff --git a/debian/changelog b/debian/changelog index 59974a4..c41dd61 100644 --- a/debian/changelog +++ b/debian/changelog @@ -25,6 +25,8 @@ xen-tools (4.8-1) UNRELEASED; urgency=medium Ubuntu 16.04 LTS with backports. * Declare compliance with Debian Policy 4.3.0. (No changes needed.) * Set "Rules-Requires-Root: no". + * Check $DEB_BUILD_OPTIONS and $DEB_BUILD_PROFILES in + override_dh_auto_test. Fixes according lintian warning. [ Jelmer Vernooij ] * Trim trailing whitespace from debian/changelog. (GH #54) diff --git a/debian/rules b/debian/rules index 6266add..56ed5b0 100755 --- a/debian/rules +++ b/debian/rules @@ -6,7 +6,9 @@ dh $@ override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) $(MAKE) non-author-test +endif override_dh_installchangelogs: dh_installchangelogs NEWS.markdown