commit:     a90b271f8487b431a535626db05e8ce63c7ad574
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 17 01:34:23 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 17 01:37:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a90b271f

dev-libs/hiredis: enable async tests

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/hiredis/hiredis-1.1.0.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-libs/hiredis/hiredis-1.1.0.ebuild 
b/dev-libs/hiredis/hiredis-1.1.0.ebuild
index dc2110460101..514234cce290 100644
--- a/dev-libs/hiredis/hiredis-1.1.0.ebuild
+++ b/dev-libs/hiredis/hiredis-1.1.0.ebuild
@@ -19,7 +19,12 @@ RESTRICT="!test? ( test )"
 
 DEPEND="ssl? ( dev-libs/openssl:= )"
 RDEPEND="${DEPEND}"
-BDEPEND="test? ( dev-db/redis )"
+BDEPEND="
+       test? (
+               dev-db/redis
+               dev-libs/libevent
+       )
+"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.0.0-disable-network-tests.patch
@@ -39,6 +44,7 @@ _build() {
                PREFIX="${EPREFIX}/usr" \
                LIBRARY_PATH="$(get_libdir)" \
                USE_SSL=$(usex ssl 1 0) \
+               TEST_ASYNC=$(usex test 1 0) \
                DEBUG_FLAGS= \
                OPTIMIZATION= \
                "$@"
@@ -52,6 +58,7 @@ src_compile() {
 }
 
 src_test() {
+       # Compare with 
https://github.com/redis/hiredis/blob/648763c36e9f6493b13a77da35eb33ef0652b4e2/Makefile#L32
        local REDIS_PID="${T}"/hiredis.pid
        local REDIS_SOCK="${T}"/hiredis.sock
        local REDIS_PORT=56379

Reply via email to