[devscripts] 01/01: disable test_licensecheck_SL for backport
Osamu Aoki
osamu at moszumanska.debian.org
Mon Nov 30 13:43:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
osamu pushed a commit to branch master
in repository devscripts.
commit 59be27d4c8c1adaaeed8c5ebee06def4f3d03519
Author: Osamu Aoki <osamu at debian.org>
Date: Mon Nov 30 22:36:01 2015 +0900
disable test_licensecheck_SL for backport
Since the test_licensecheck_SL depends on the Software::License
which changed behavior, this test fails if executed for backporting.
devscripts needs to be easily backportable.
This code is valid for Debian and its derivative. For RPM, different
test is needed.
---
test/Makefile | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/test/Makefile b/test/Makefile
index a507b54..7746eec 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,3 +1,9 @@
+# libsoftware-license-perl to be newer than 0.103010-3
+check_unstable = $(shell dpkg --compare-versions \
+ `dpkg-query -W -f='$${Version}' libsoftware-license-perl` \
+ gt '0.103010-3' ; \
+ echo $$?)
+
test:
./test_annotate-output
./test_checkbashisms
@@ -5,7 +11,9 @@ test:
./test_debchange
./test_debdiff
./test_licensecheck
- ./test_licensecheck_SL
+ if [ $(check_unstable) = 0 ]; then \
+ ./test_licensecheck_SL ;\
+ fi
./test_uscan
./test_uscan_mangle
rm -rf uscan/gpg
@@ -18,7 +26,9 @@ test-installed:
./test_debchange --installed
./test_debdiff --installed
./test_licensecheck --installed
- ./test_licensecheck_SL --installed
+ if [ $(check_unstable) = 0 ]; then \
+ ./test_licensecheck_SL --installed ;\
+ fi
./test_uscan --installed
./test_uscan_mangle --installed
rm -rf uscan/gpg
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list