From: "Anna Vyalkova" <cyber+gentoo@sysrq.in>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/coeurl/
Date: Sat, 22 Jul 2023 13:51:35 +0000 (UTC) [thread overview]
Message-ID: <1690033843.b12e7da73c72b580d2ebdf94d53895b7d9921661.cybertailor@gentoo> (raw)
commit: b12e7da73c72b580d2ebdf94d53895b7d9921661
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Jul 22 13:49:03 2023 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sat Jul 22 13:50:43 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b12e7da7
dev-cpp/coeurl: enable tests
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-cpp/coeurl/coeurl-0.3.0.ebuild | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/dev-cpp/coeurl/coeurl-0.3.0.ebuild b/dev-cpp/coeurl/coeurl-0.3.0.ebuild
index 832f0857e..37dfa3669 100644
--- a/dev-cpp/coeurl/coeurl-0.3.0.ebuild
+++ b/dev-cpp/coeurl/coeurl-0.3.0.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-inherit meson
+PYTHON_COMPAT=( python3_{10..12} )
+inherit edo meson python-any-r1
DESCRIPTION="A simple async wrapper around CURL for C++"
HOMEPAGE="https://nheko.im/nheko-reborn/coeurl"
@@ -14,7 +15,8 @@ LICENSE="MIT"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="~amd64"
IUSE="ssl test"
-RESTRICT="test" # Tests turned off because they need a local webserver.
+REQUIRED_USE="test? ( ssl )"
+RESTRICT="!test? ( test )"
RDEPEND="
net-misc/curl[ssl?]
@@ -26,6 +28,16 @@ DEPEND="
${RDEPEND}
test? ( dev-cpp/doctest )
"
+BDEPEND="
+ test? (
+ dev-libs/openssl
+ $(python_gen_any_dep 'dev-python/flask[${PYTHON_USEDEP}]')
+ )
+"
+
+python_check_deps() {
+ python_has_version "dev-python/flask[${PYTHON_USEDEP}]"
+}
src_prepare() {
default
@@ -38,3 +50,17 @@ src_configure() {
)
meson_src_configure
}
+
+src_test() {
+ openssl req -x509 -newkey rsa:4096 -nodes \
+ -out "${T}"/cert.pem -keyout "${T}"/key.pem \
+ -days 365 -subj "/CN=localhost" || die
+
+ edo ${EPYTHON} ./tests/testserver.py &
+ sleep 3
+
+ edo ${EPYTHON} ./tests/testserver.py "${T}" &
+ sleep 3
+
+ meson_src_test
+}
next reply other threads:[~2023-07-22 13:51 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-22 13:51 Anna Vyalkova [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-08-28 13:28 [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/coeurl/ Ronny Gutbrod
2024-10-29 21:58 Anna Vyalkova
2024-06-13 12:55 Ronny Gutbrod
2024-06-13 12:55 Ronny Gutbrod
2023-07-30 19:51 Ronny Gutbrod
2023-07-22 17:29 Anna Vyalkova
2023-07-22 17:29 Anna Vyalkova
2023-07-22 13:51 Anna Vyalkova
2023-07-22 13:51 Anna Vyalkova
2023-07-22 13:51 Anna Vyalkova
2023-01-11 23:16 Ronny Gutbrod
2023-01-11 23:16 Ronny Gutbrod
2022-07-23 16:15 Ronny Gutbrod
2022-07-23 16:15 Ronny Gutbrod
2022-07-08 11:04 Ronny Gutbrod
2022-03-07 16:22 Ronny Gutbrod
2022-03-07 16:22 Ronny Gutbrod
2021-12-21 11:46 Ronny Gutbrod
2021-12-21 11:46 Ronny Gutbrod
2021-11-19 1:15 Ronny Gutbrod
2021-10-04 11:45 Ronny Gutbrod
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1690033843.b12e7da73c72b580d2ebdf94d53895b7d9921661.cybertailor@gentoo \
--to=cyber+gentoo@sysrq.in \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox