From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5D9F71581EC for ; Wed, 20 Nov 2024 23:47:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B554AE07EE; Wed, 20 Nov 2024 23:46:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8EC78E07EE for ; Wed, 20 Nov 2024 23:46:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7973033DF47 for ; Wed, 20 Nov 2024 23:46:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B59DAE84 for ; Wed, 20 Nov 2024 23:46:56 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1732142754.6ce128bac9a42fb813f6f69b1ae6810da278f1dd.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-crystal/http_proxy/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-crystal/http_proxy/http_proxy-0.12.0.ebuild X-VCS-Directories: dev-crystal/http_proxy/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 6ce128bac9a42fb813f6f69b1ae6810da278f1dd X-VCS-Branch: dev Date: Wed, 20 Nov 2024 23:46:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 15bfaf55-56f9-4123-9485-54a1d1acb1ec X-Archives-Hash: 08c2511dc0b41b717ffe624785bde058 commit: 6ce128bac9a42fb813f6f69b1ae6810da278f1dd Author: Julien Roy jroy ca> AuthorDate: Wed Nov 20 22:44:58 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Wed Nov 20 22:45:54 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6ce128ba dev-crystal/http_proxy: add tests Closes: https://bugs.gentoo.org/943509 Signed-off-by: Julien Roy jroy.ca> dev-crystal/http_proxy/http_proxy-0.12.0.ebuild | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dev-crystal/http_proxy/http_proxy-0.12.0.ebuild b/dev-crystal/http_proxy/http_proxy-0.12.0.ebuild index ae2f510ba..6db13a433 100644 --- a/dev-crystal/http_proxy/http_proxy-0.12.0.ebuild +++ b/dev-crystal/http_proxy/http_proxy-0.12.0.ebuild @@ -12,5 +12,23 @@ SRC_URI="https://github.com/mamantoha/${PN}/archive/refs/tags/v${PV}.tar.gz -> $ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" DOCS=( {CHANGELOG,README}.md ) + +RDEPEND=" + test? ( dev-crystal/http_proxy ) +" + +src_test() { + # Only run tests that don't need net + crystal_spec \ + "${S}"/spec/client_spec.cr:5 \ + "${S}"/spec/client_spec.cr:13 \ + "${S}"/spec/client_spec.cr:21 \ + "${S}"/spec/client_spec.cr:53 \ + "${S}"/spec/client_spec.cr:101 \ + "${S}"/spec/server_spec.cr:5 \ + "${S}"/spec/server_spec.cr:10 +}