summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-01-14 15:00:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-16 22:33:09 +0000
commit015c13ed832dccbfa731bace240da7ddf0697ede (patch)
tree1c817782d150a4d7220b02c446dd1bc750ab17bd /meta/recipes-support
parentd79803fb61d0af98e8c33ea4b5069480c47a7c82 (diff)
downloadpoky-015c13ed832dccbfa731bace240da7ddf0697ede.tar.gz
libevent: disable ptests that require a DNS and an intenet connection
(From OE-Core rev: 65ef2810e94bb8feb6be5febfe8a7b73076c3420) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/libevent/libevent/0001-test-regress_dns.c-patch-out-tests-that-require-a-wo.patch37
-rw-r--r--meta/recipes-support/libevent/libevent_2.1.11.bb10
2 files changed, 42 insertions, 5 deletions
diff --git a/meta/recipes-support/libevent/libevent/0001-test-regress_dns.c-patch-out-tests-that-require-a-wo.patch b/meta/recipes-support/libevent/libevent/0001-test-regress_dns.c-patch-out-tests-that-require-a-wo.patch
new file mode 100644
index 0000000000..505153d285
--- /dev/null
+++ b/meta/recipes-support/libevent/libevent/0001-test-regress_dns.c-patch-out-tests-that-require-a-wo.patch
@@ -0,0 +1,37 @@
1From 7c17967b8fd2d18b74a8934fd9bb8212ebd6a271 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 9 Jan 2020 13:22:46 +0100
4Subject: [PATCH] test/regress_dns.c: patch out tests that require a working
5 DNS
6
7This is not guaranteed for ptests under qemu, and in the absence
8of a DNS that can reach to the internet, these tests fail.
9
10Upstream-Status: Inappropriate [oe-core specific]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12---
13 test/regress_dns.c | 4 ----
14 1 file changed, 4 deletions(-)
15
16diff --git a/test/regress_dns.c b/test/regress_dns.c
17index d2084b7..a1a8f3b 100644
18--- a/test/regress_dns.c
19+++ b/test/regress_dns.c
20@@ -2394,8 +2394,6 @@ struct testcase_t dns_testcases[] = {
21 { "reissue_disable_when_inactive", dns_reissue_disable_when_inactive_test,
22 TT_FORK|TT_NEED_BASE|TT_NO_LOGS, &basic_setup, NULL },
23 { "inflight", dns_inflight_test, TT_FORK|TT_NEED_BASE, &basic_setup, NULL },
24- { "bufferevent_connect_hostname", test_bufferevent_connect_hostname,
25- TT_FORK|TT_NEED_BASE, &basic_setup, NULL },
26 #ifdef EVENT__HAVE_SETRLIMIT
27 { "bufferevent_connect_hostname_emfile", test_bufferevent_connect_hostname,
28 TT_FORK|TT_NEED_BASE, &basic_setup, (char*)"emfile" },
29@@ -2405,8 +2403,6 @@ struct testcase_t dns_testcases[] = {
30 { "disable_when_inactive_no_ns", dns_disable_when_inactive_no_ns_test,
31 TT_FORK|TT_NEED_BASE|TT_NO_LOGS, &basic_setup, NULL },
32
33- { "initialize_nameservers", dns_initialize_nameservers_test,
34- TT_FORK|TT_NEED_BASE, &basic_setup, NULL },
35 #ifndef _WIN32
36 { "nameservers_no_default", dns_nameservers_no_default_test,
37 TT_FORK|TT_NEED_BASE, &basic_setup, NULL },
diff --git a/meta/recipes-support/libevent/libevent_2.1.11.bb b/meta/recipes-support/libevent/libevent_2.1.11.bb
index 8c7c49e7dd..fb186eb89f 100644
--- a/meta/recipes-support/libevent/libevent_2.1.11.bb
+++ b/meta/recipes-support/libevent/libevent_2.1.11.bb
@@ -6,11 +6,11 @@ SECTION = "libs"
6LICENSE = "BSD & MIT" 6LICENSE = "BSD & MIT"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=17f20574c0b154d12236d5fbe964f549" 7LIC_FILES_CHKSUM = "file://LICENSE;md5=17f20574c0b154d12236d5fbe964f549"
8 8
9SRC_URI = " \ 9SRC_URI = "https://github.com/libevent/libevent/releases/download/release-${PV}-stable/${BP}-stable.tar.gz \
10 https://github.com/libevent/libevent/releases/download/release-${PV}-stable/${BP}-stable.tar.gz \ 10 file://Makefile-missing-test-dir.patch \
11 file://Makefile-missing-test-dir.patch \ 11 file://run-ptest \
12 file://run-ptest \ 12 file://0001-test-regress_dns.c-patch-out-tests-that-require-a-wo.patch \
13" 13 "
14 14
15SRC_URI[md5sum] = "7f35cfe69b82d879111ec0d7b7b1c531" 15SRC_URI[md5sum] = "7f35cfe69b82d879111ec0d7b7b1c531"
16SRC_URI[sha256sum] = "a65bac6202ea8c5609fd5c7e480e6d25de467ea1917c08290c521752f147283d" 16SRC_URI[sha256sum] = "a65bac6202ea8c5609fd5c7e480e6d25de467ea1917c08290c521752f147283d"