commit: 579a9a44b270662b631d66b379eaf2e350bc7882
Author: Jaco Kroon <jkroon <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 1 14:33:16 2025 +0000
Commit: Jaco Kroon <jkroon <AT> gentoo <DOT> org>
CommitDate: Mon Dec 1 14:33:16 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=579a9a44
dev-libs/aws-c-io: 0.23.3
Add tests.
Signed-off-by: Jaco Kroon <jkroon <AT> gentoo.org>
dev-libs/aws-c-io/aws-c-io-0.23.3.ebuild | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/dev-libs/aws-c-io/aws-c-io-0.23.3.ebuild
b/dev-libs/aws-c-io/aws-c-io-0.23.3.ebuild
index a8d2c7493deb..518d681818b4 100644
--- a/dev-libs/aws-c-io/aws-c-io-0.23.3.ebuild
+++ b/dev-libs/aws-c-io/aws-c-io-0.23.3.ebuild
@@ -12,9 +12,29 @@ inherit cmake
LICENSE="Apache-2.0"
SLOT="0/1"
KEYWORDS="~amd64"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
DEPEND="dev-libs/aws-c-cal:=
dev-libs/aws-c-common:=
dev-libs/s2n-tls"
RDEPEND="${DEPEND}"
BDEPEND="dev-libs/aws-c-common"
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING=$(usex test)
+ )
+
+ if use test; then
+ # (#759802) Due to network sandboxing of portage, internet
connectivity
+ # tests will always fail. If you need a USE flag, because you
want/need
+ # to perform these tests manually, please open a bug report for
it.
+ mycmakeargs+=(
+ -DENABLE_NET_TESTS=OFF
+ )
+ fi
+
+ cmake_src_configure
+}