Code

rules: Run 'make check'. libmpdclient-2.1-1
authorSebastian Harl <sh@tokkee.org>
Sat, 26 Dec 2009 23:10:23 +0000 (00:10 +0100)
committerSebastian Harl <sh@tokkee.org>
Sat, 26 Dec 2009 23:10:23 +0000 (00:10 +0100)
… unless the nocheck option has been specified in DEB_BUILD_OPTIONS.

debian/changelog
debian/rules

index e364a5d328a41e58b941825cb7fc374310510068..69eefc087ff01f498e12096a91a8761ef9bff4fe 100644 (file)
@@ -3,8 +3,11 @@ libmpdclient (2.1-1) unstable; urgency=low
   * New upstream release.
   * debian/libmpdclient2.symbols:
     - Updated for 2.1.
+  * 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 00:02:12 +0100
+ -- Sebastian Harl <tokkee@debian.org>  Sun, 27 Dec 2009 00:09:08 +0100
 
 libmpdclient (2.0-1) unstable; urgency=low
 
index 79ee1bcb3be5ec68c2a2260df44128328e565e1f..8be3e2bd5c69ddd2b40dcca9bdba4c9a9c79f2e0 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
        
@@ -35,6 +41,7 @@ build-stamp: config.status
        dh_testdir
        
        $(MAKE)
+       test -z '$(CHECK)' || make $(CHECK)
        
        touch build-stamp