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 ae2f510baf..6db13a4335 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 +}