}
pkg_setup() {
- use test && python-any-r1_pkg_setup
+ use test && python_setup
}
src_prepare() {
# lto not supported yet -- https://github.com/libfuse/libfuse/issues/198
filter-flags '-flto*'
-
- # passthough_ll is broken on systems with 32-bit pointers
- cat /dev/null > example/meson.build || die
}
multilib_src_configure() {
local emesonargs=(
+ -Dexamples=$(usex test true false)
-Duseroot=false
-Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
)
eninja
}
+src_test() {
+ if [[ ${EUID} != 0 ]]; then
+ ewarn "Running as non-root user, skipping tests"
+ elif has sandbox ${FEATURES}; then
+ ewarn "Sandbox enabled, skipping tests"
+ else
+ multilib-minimal_src_test
+ fi
+}
+
multilib_src_test() {
${EPYTHON} -m pytest test || die
}