commit:     4580b518fdf9f43ac77fa36ccbc6a8abef91a4c0
Author:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  1 14:50:28 2025 +0000
Commit:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
CommitDate: Mon Dec  1 14:54:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4580b518

dev-libs/aws-c-http: 0.10.7

Add tests.

Signed-off-by: Jaco Kroon <jkroon <AT> gentoo.org>

 dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild 
b/dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild
index d857aab1735f..db397cd50a55 100644
--- a/dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild
+++ b/dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild
@@ -12,9 +12,23 @@ inherit cmake
 LICENSE="Apache-2.0"
 SLOT="0/1"
 KEYWORDS="~amd64"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
 
 DEPEND="dev-libs/aws-c-common
        dev-libs/aws-c-compression
        dev-libs/aws-c-io"
 RDEPEND="${DEPEND}"
 BDEPEND="dev-libs/aws-c-common"
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_TESTING=$(usex test)
+       )
+       use test && mycmakeargs+=(
+               -DENABLE_NET_TESTS=OFF # Network Sandbox cause these to fail.
+       )
+
+       cmake_src_configure
+}

Reply via email to