Files
guru/dev-R/webfakes/webfakes-1.1.3-r1.ebuild
Robert Greener 8c3fc608d5 dev-R/webfakes: release -r1 and fix failing tests
The tests fail when there is no running x server, disable the non-CRAN
tests.

Closes: https://bugs.gentoo.org/856343
Signed-off-by: Robert Greener <me@r0bert.dev>
2022-07-04 10:22:26 +01:00

43 lines
654 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit R-packages edo
DESCRIPTION='Fake Web Apps for HTTP Testing'
KEYWORDS="~amd64"
LICENSE='MIT'
RESTRICT="!test? ( test )"
IUSE="test"
DEPEND="
test? (
dev-R/callr
dev-R/curl
dev-R/glue
dev-R/jsonlite
dev-R/httr
dev-R/httpuv
>=dev-R/testthat-3.0.0
dev-R/withr
)
"
SUGGESTED_PACKAGES="
dev-R/callr
dev-R/curl
dev-R/glue
dev-R/jsonlite
dev-R/httr
dev-R/httpuv
>=dev-R/testthat-3.0.0
dev-R/withr
dev-R/xml2
"
src_test() {
cd "${WORKDIR}/${P}/tests" || die
R_LIBS="${T}/R" edo Rscript --vanilla testthat.R
}