diff -Nru libidn-1.28/debian/changelog libidn-1.28/debian/changelog --- libidn-1.28/debian/changelog 2013-07-10 08:32:46.000000000 +0000 +++ libidn-1.28/debian/changelog 2013-11-10 23:52:33.000000000 +0000 @@ -1,3 +1,9 @@ +libidn (1.28-1~nocheck) unstable; urgency=low + + * Respect 'nocheck' DEB_BUILD_OPTION + + -- Wookey Sun, 10 Nov 2013 23:51:21 +0000 + libidn (1.28-1) unstable; urgency=low * New upstream release. diff -Nru libidn-1.28/debian/rules libidn-1.28/debian/rules --- libidn-1.28/debian/rules 2013-07-10 13:31:48.000000000 +0000 +++ libidn-1.28/debian/rules 2013-11-10 23:50:27.000000000 +0000 @@ -12,6 +12,13 @@ export DH_OPTIONS=-Nlibidn11-java endif +# Don't run tests if DEB_BUILD_OPTIONS includes nocheck +ifeq (,$(filter $(DEB_BUILD_OPTIONS),nocheck)) + TESTS = check +else + TESTS = +endif + # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) @@ -43,7 +50,7 @@ dh_testdir # Add here commands to compile the package. - $(MAKE) all check + $(MAKE) all $(TESTS) touch $@