app-emulation/ruffle: always skip renderer tests

Too volatile, hopefully should be the last see of these.

Also drop virtualx at same time, not that it was needed (anymore)
even for renderer tests given upstream fixed usage with headless.

Bug: https://bugs.gentoo.org/911320
Close: https://bugs.gentoo.org/911367
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2023-07-28 10:47:24 -04:00
parent d012e0bfdc
commit f81003f4fb
3 changed files with 30 additions and 36 deletions
@@ -0,0 +1,16 @@
Running renderer tests using mesa's software rendering has a tendency
to misbehave (esp. on tinderboxes) and does not reflect usage on real
hardware.
These are auto-skipped if mesa[-gles2] and perhaps [-llvm], but pretend
we lack support even if conditions are met.
https://bugs.gentoo.org/903295
https://bugs.gentoo.org/911320
https://bugs.gentoo.org/911367
--- a/tests/tests/util/options.rs
+++ b/tests/tests/util/options.rs
@@ -163,2 +163,3 @@
if let Some(render) = &self.with_renderer {
+ if check_renderer { return false; }
// If we don't actually want to check the renderer (ie we're just listing potential tests),
+7 -18
View File
@@ -550,7 +550,7 @@ declare -A GIT_CRATES=(
[nihav_core]="https://github.com/ruffle-rs/nihav-vp6;9416fcc9fc8aab8f4681aa9093b42922214abbd3;nihav-vp6-%commit%/nihav-core"
[nihav_duck]="https://github.com/ruffle-rs/nihav-vp6;9416fcc9fc8aab8f4681aa9093b42922214abbd3;nihav-vp6-%commit%/nihav-duck"
)
inherit cargo desktop flag-o-matic virtualx xdg
inherit cargo desktop flag-o-matic xdg
MY_PV="nightly-${PV:3:4}-${PV:7:2}-${PV:9:2}"
MY_P="${PN}-${MY_PV}"
@@ -571,6 +571,8 @@ LICENSE+="
" # crates
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
# dlopen: libX* (see winit+x11-dl crates)
RDEPEND="
@@ -592,14 +594,14 @@ BDEPEND="
virtual/jre:*
virtual/pkgconfig
>=virtual/rust-1.70
test? (
media-libs/mesa[llvm]
x11-base/xorg-server[-minimal]
)
"
QA_FLAGS_IGNORED="usr/bin/${PN}.*"
PATCHES=(
"${FILESDIR}"/${PN}-0_p20230724-skip-render-tests.patch
)
src_configure() {
filter-lto # TODO: cleanup after bug #893658
@@ -614,19 +616,6 @@ src_configure() {
cargo_src_configure ${workspaces[*]/#/--package=}
}
src_test() {
xdg_environment_reset
local skip=(
# this should be fine on real hardware, but currently fails with mesa's
# software rendering (bug #911320) -- note they are auto-skipped if
# USE=-gles2 on mesa, and this just forces to skip regardless
--skip visual/filters/displacement_map
)
virtx cargo_src_test -- "${skip[@]}"
}
src_install() {
dodoc README.md
+7 -18
View File
@@ -3,7 +3,7 @@
EAPI=8
inherit cargo desktop flag-o-matic git-r3 virtualx xdg
inherit cargo desktop flag-o-matic git-r3 xdg
DESCRIPTION="Flash Player emulator written in Rust"
HOMEPAGE="https://ruffle.rs/"
@@ -16,6 +16,8 @@ LICENSE+="
Unicode-DFS-2016 ZLIB curl
" # crates
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
# dlopen: libX* (see winit+x11-dl crates)
RDEPEND="
@@ -37,14 +39,14 @@ BDEPEND="
virtual/jre:*
virtual/pkgconfig
>=virtual/rust-1.70
test? (
media-libs/mesa[llvm]
x11-base/xorg-server[-minimal]
)
"
QA_FLAGS_IGNORED="usr/bin/${PN}.*"
PATCHES=(
"${FILESDIR}"/${PN}-0_p20230724-skip-render-tests.patch
)
src_unpack() {
git-r3_src_unpack
@@ -79,19 +81,6 @@ src_configure() {
cargo_src_configure ${workspaces[*]/#/--package=}
}
src_test() {
xdg_environment_reset
local skip=(
# this should be fine on real hardware, but currently fails with mesa's
# software rendering (bug #911320) -- note they are auto-skipped if
# USE=-gles2 on mesa, and this just forces to skip regardless
--skip visual/filters/displacement_map
)
virtx cargo_src_test -- "${skip[@]}"
}
src_install() {
dodoc README.md