]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
UBUNTU: [debian] add rebuild-test support for autopkgtest
authorAndy Whitcroft <apw@canonical.com>
Wed, 21 Nov 2012 10:00:25 +0000 (10:00 +0000)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
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 <apw@canonical.com>
debian/rules

index e1e44df35b50feecfaa24aa31ccbde3ddd1ed9ac..6777aaed979de8ebfcaa797edcb6592d67547235 100755 (executable)
@@ -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
+ifeq ($(DEB_BUILD_PROFILE),autopkgtest)
+flavours := $(firstword $(flavours))
+endif
+
 # Debian Build System targets
 binary: binary-indep binary-arch