aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-03-13 18:32:46 +0100
committerAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-03-13 18:32:46 +0100
commitb2ec794f4a4d06d80de3e30dde594764fa30ecc0 (patch)
treec389efa432930076b3aefa9ea078fc57520f9d54 /net-misc
parentnet-misc/FORT-validator: Removing test/http_test.c (diff)
downloadguru-b2ec794f4a4d06d80de3e30dde594764fa30ecc0.tar.gz
guru-b2ec794f4a4d06d80de3e30dde594764fa30ecc0.tar.bz2
guru-b2ec794f4a4d06d80de3e30dde594764fa30ecc0.zip
net-misc/FORT-validator: patch out online test
Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/FORT-validator/FORT-validator-1.2.0.ebuild4
-rw-r--r--net-misc/FORT-validator/files/FORT-validator-skip-online-test.patch29
2 files changed, 31 insertions, 2 deletions
diff --git a/net-misc/FORT-validator/FORT-validator-1.2.0.ebuild b/net-misc/FORT-validator/FORT-validator-1.2.0.ebuild
index 8b0695e8..17a3f11b 100644
--- a/net-misc/FORT-validator/FORT-validator-1.2.0.ebuild
+++ b/net-misc/FORT-validator/FORT-validator-1.2.0.ebuild
@@ -33,11 +33,11 @@ BDEPEND="
sys-devel/automake
"
+PATCHES="${FILESDIR}/${PN}-skip-online-test.patch"
+
src_prepare() {
default
- rm test/http* || die
-
eautoreconf
}
diff --git a/net-misc/FORT-validator/files/FORT-validator-skip-online-test.patch b/net-misc/FORT-validator/files/FORT-validator-skip-online-test.patch
new file mode 100644
index 00000000..91cbe23c
--- /dev/null
+++ b/net-misc/FORT-validator/files/FORT-validator-skip-online-test.patch
@@ -0,0 +1,29 @@
+diff --git a/test/http_test.c b/test/http_test.c
+index 765b722..c904440 100644
+--- a/test/http_test.c
++++ b/test/http_test.c
+@@ -57,23 +57,7 @@ local_download(char const *url, long *response_code, struct response *resp)
+
+ START_TEST(http_fetch_normal)
+ {
+- struct response resp;
+- long response_code;
+- char const *url = "https://rrdp.ripe.net/notification.xml";
+-
+- init_response(&resp);
+- response_code = 0;
+-
+- ck_assert_int_eq(http_init(), 0);
+- ck_assert_int_eq(local_download(url, &response_code, &resp), 0);
+- ck_assert_int_gt(resp.size, 0);
+-
+- http_cleanup();
+- free(resp.content);
+- if (response_code == 0)
+- ck_abort_msg("NO response code received");
+- else if (response_code >= HTTP_BAD_REQUEST)
+- ck_abort_msg("Received response code %ld", response_code);
++
+ }
+ END_TEST
+