mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
I haven't been able to test them because: - In (unprivileged) bubblewrap container setuid binaries (fuse3) get disabled[1] - Inside a normal chroot bubblewrap can't run[2] (which these packages use) - Inside bubblewrap running as root the bwrap that buildbox invokes for some reason doesn't get permissions to make use of user-namespaces (even tho I can make nested bwrap container via `bwrap --bind /somerootfs / --dev /dev --proc /proc bash`) - Inside a lxc container is the same story as above The only real way to test (for me) is to install on host BUT buildbox doesn't compile on musl libc (which I'm using) and I can't report that to them because they use gitlab and for making an account there you need to give them a credit card :s [1]: https://github.com/containers/bubblewrap/issues/132 [2]: https://github.com/containers/bubblewrap/issues/689#issuecomment-2940775396 Signed-off-by: zyxhere💭 <zyx@envs.net>
68 lines
1.7 KiB
Bash
68 lines
1.7 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{12..14} )
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="A collection of plugins for the BuildStream project"
|
|
HOMEPAGE="https://apache.github.io/buildstream-plugins/"
|
|
SRC_URI="
|
|
https://github.com/apache/buildstream-plugins/archive/refs/tags/${PV}.tar.gz
|
|
-> ${P}.tar.gz
|
|
"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="2"
|
|
KEYWORDS="~amd64"
|
|
IUSE="test"
|
|
|
|
RDEPEND="
|
|
dev-build/buildstream:2[${PYTHON_USEDEP}]
|
|
"
|
|
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
test? (
|
|
dev-python/pycodestyle[${PYTHON_USEDEP}]
|
|
dev-python/pyftpdlib[${PYTHON_USEDEP}]
|
|
dev-python/pylint[${PYTHON_USEDEP}]
|
|
dev-python/pytest-datafiles[${PYTHON_USEDEP}]
|
|
dev-python/pytest-env[${PYTHON_USEDEP}]
|
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
|
dev-python/responses[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
EPYTEST_PLUGINS=( pytest-datafiles )
|
|
distutils_enable_tests pytest
|
|
|
|
python_test() {
|
|
# UNKNOWN:Path name should not have more than 107 characters
|
|
local TMPDIR=/tmp
|
|
|
|
# fuse: failed to open /dev/fuse: Permission denied
|
|
addwrite "/dev/fuse"
|
|
|
|
local EPYTEST_DESELECT=(
|
|
# tests using network
|
|
tests/sources/docker.py::test_docker_fetch
|
|
tests/sources/docker.py::test_docker_source_checkout
|
|
tests/sources/docker.py::test_handle_network_error
|
|
tests/sources/docker.py::test_fetch_duplicate_layers
|
|
source_determinism.py::test_deterministic_source_umask[git]
|
|
)
|
|
|
|
export BST_TEST_SUITE=1
|
|
|
|
# to not pollute the source directory and make grepping hard.
|
|
# can't just use ${T} as the --basetemp option removes the directory
|
|
# if it exists
|
|
epytest --basetemp "${T}"/test_dir
|
|
}
|