[xmltooling] 01/09: New patch Enable-skipping-tests-which-require-network-access.patch
Ferenc Wágner
wferi at moszumanska.debian.org
Fri Sep 2 19:39:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi pushed a commit to branch debian/master
in repository xmltooling.
commit f61b564e5cdc70715b2df28f77e35fb054301bba
Author: Ferenc Wágner <wferi at niif.hu>
Date: Thu Sep 1 22:51:39 2016 +0200
New patch Enable-skipping-tests-which-require-network-access.patch
Enable skipping tests which require network access
And skip them in debian/rules, because we aren't allowed to access the
network on the buildds.
---
...ipping-tests-which-require-network-access.patch | 42 ++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 3 ++
3 files changed, 46 insertions(+)
diff --git a/debian/patches/Enable-skipping-tests-which-require-network-access.patch b/debian/patches/Enable-skipping-tests-which-require-network-access.patch
new file mode 100644
index 0000000..4f9b933
--- /dev/null
+++ b/debian/patches/Enable-skipping-tests-which-require-network-access.patch
@@ -0,0 +1,42 @@
+From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi at niif.hu>
+Date: Thu, 1 Sep 2016 22:47:51 +0200
+Subject: Enable skipping tests which require network access
+
+---
+ xmltoolingtest/SecurityHelperTest.h | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/xmltoolingtest/SecurityHelperTest.h b/xmltoolingtest/SecurityHelperTest.h
+index 545ca48..bb82e30 100644
+--- a/xmltoolingtest/SecurityHelperTest.h
++++ b/xmltoolingtest/SecurityHelperTest.h
+@@ -33,6 +33,13 @@ class SecurityHelperTest : public CxxTest::TestSuite {
+ string scheme(addr.m_endpoint, strchr(addr.m_endpoint,':') - addr.m_endpoint);
+ return XMLToolingConfig::getConfig().SOAPTransportManager.newPlugin(scheme.c_str(), addr);
+ }
++
++ void skipNetworked() {
++ if (getenv("XMLTOOLINGTEST_SKIP_NETWORKED")) {
++ TS_SKIP("requires network access");
++ }
++ }
++
+ public:
+ void setUp() {
+ }
+@@ -59,6 +66,7 @@ public:
+ }
+
+ void testKeysFromURLs() {
++ skipNetworked();
+ string pathname = data_path + "key.pem.bak";
+ auto_ptr<SOAPTransport> t1(getTransport("https://wiki.shibboleth.net/confluence/download/attachments/3277026/key.pem"));
+ auto_ptr<XSECCryptoKey> key1(SecurityHelper::loadKeyFromURL(*t1.get(), pathname.c_str()));
+@@ -110,6 +118,7 @@ public:
+ }
+
+ void testCertificatesFromURLs() {
++ skipNetworked();
+ string pathname = data_path + "cert.pem.bak";
+ auto_ptr<SOAPTransport> t1(getTransport("https://wiki.shibboleth.net/confluence/download/attachments/3277026/cert.pem"));
+ SecurityHelper::loadCertificatesFromURL(certs, *t1.get(), pathname.c_str());
diff --git a/debian/patches/series b/debian/patches/series
index b22b02b..a08d4a1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -17,3 +17,4 @@ Factor-out-the-Xerces-library-dependence.patch
Two-more-tests-don-t-build-without-xmlsec.patch
Only-add-found-packages-to-the-pkg-config-dependenci.patch
Add-separate-pkg-config-file-for-xmltooling-lite.patch
+Enable-skipping-tests-which-require-network-access.patch
diff --git a/debian/rules b/debian/rules
index b1c868a..4e5ec7d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,6 +30,9 @@ override_dh_auto_install-indep:
override_dh_auto_test-indep:
+override_dh_auto_test-arch:
+ dh_auto_test -- XMLTOOLINGTEST_SKIP_NETWORKED=1
+
override_dh_install:
cd debian/tmp/usr/share/doc/xmltooling-* && \
rm README.txt LICENSE.txt NOTICE.txt OPENSSL.LICENSE LOG4CPP.LICENSE \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/xmltooling.git
More information about the Pkg-shibboleth-devel
mailing list