Code

rules: Run 'make check'.
authorSebastian Harl <sh@tokkee.org>
Sun, 27 Dec 2009 17:59:18 +0000 (18:59 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 27 Dec 2009 17:59:18 +0000 (18:59 +0100)
… unless the nocheck option has been specified in DEB_BUILD_OPTIONS.

debian/changelog
debian/rules

index 9eaf760ca042c5605f34d17d2699dfe73603254f..2fc35d043e55c04c85207dd1ecf3f7357b70a455 100644 (file)
@@ -3,8 +3,11 @@ ncmpc (0.16-1) unstable; urgency=low
   * New upstream release.
   * debian/control:
     - Build-depend on libmpdclient-dev, required by the new upstream release.
+  * debian/rules:
+    - Run 'make check' unless the nocheck option has been specified in
+      DEB_BUILD_OPTIONS.
 
- -- Sebastian Harl <tokkee@debian.org>  Sun, 27 Dec 2009 18:55:35 +0100
+ -- Sebastian Harl <tokkee@debian.org>  Sun, 27 Dec 2009 18:58:55 +0100
 
 ncmpc (0.15-1) unstable; urgency=low
 
index 9296d1515d69ec46b4f40a81b853f5fca5c2c0e1..c77ceda48e3681e47e6e3cd5dec861ec315b9672 100755 (executable)
@@ -19,6 +19,12 @@ else
        CFLAGS += -O2
 endif
 
+CHECK = check
+
+ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+       CHECK =
+endif
+
 config.status: configure
        dh_testdir
        ./configure --host=$(DEB_HOST_GNU_TYPE) \
@@ -48,6 +54,7 @@ build-stamp: config.status
        dh_testdir
        
        $(MAKE)
+       test -z '$(CHECK)' || make $(CHECK)
        
        touch build-stamp