From 4ee264fb427da5226a12ab97194ffde240e1cbd3 Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Wed, 21 Nov 2012 10:00:25 +0000 Subject: [PATCH] UBUNTU: [Config] add rebuild-test support for autopkgtest Add support for the DEB_BUILD_OPTIONS rebuild-test which indicates this is not a full build but a quick smoke test. For us short circuit the build and only make the first flavour on the assumption it is representative of the others. BugLink: http://bugs.launchpad.net/bugs/1081500 Signed-off-by: Andy Whitcroft --- debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/rules b/debian/rules index e1e44df..299006d 100755 --- a/debian/rules +++ b/debian/rules @@ -41,6 +41,12 @@ ifeq ($(DEB_BUILD_PROFILE),bootstrap) do_flavour_header_package=false endif +# autopkgtest -- rebuild support +# only build the first flavour on the assumption it is representative +ifneq (,$(filter rebuild-test,$(DEB_BUILD_OPTIONS))) +flavours := $(firstword $(flavours)) +endif + # Debian Build System targets binary: binary-indep binary-arch -- 1.7.10.4