Looks like xwayland tests require weston[headless], but the dep is missing, so it fails tests: [21:02:53.407] Command line: weston --no-config --backend=headless-backend.so --socket=wayland-36 [21:02:53.407] OS: Linux, 5.14.1-gentoo, #1 SMP Fri Sep 3 17:10:29 EEST 2021, x86_64 [21:02:53.407] Starting with no config file. [21:02:53.407] Output repaint window is 7 ms maximum. [21:02:53.407] Loading module '/usr/lib64/libweston-3/headless-backend.so' [21:02:53.407] Failed to load module: /usr/lib64/libweston-3/headless-backend.so: cannot open shared object file: No such file or directory [21:02:53.407] fatal: failed to create compositor backend
I see that in the logs too, but no tests fail here: 1/5 xwayland:xvfb / XTS SKIP 0.02s exit status 77 2/5 xwayland / request-length OK 0.05s 3/5 xwayland / damage-primitives OK 0.06s 4/5 xwayland / sync OK 0.06s 5/5 xwayland:xwayland / XTS SKIP 0.29s exit status 77 and installing weston[headless] doesn't cause the SKIPs to change. Are you sure that installing weston[headless] fixes something?
I have vague memories of the problem where tests in chroot were not working because of lack of /tmp/.X11-unix. By any chance those failed tests are failing for you in chroot or anywhere outside of actually booted Gentoo?
It's actually booted Gentoo. 1/5 xwayland:xvfb / XTS SKIP 0.01s exit status 77 2/5 xwayland / sync OK 0.04s 3/5 xwayland / request-length OK 0.05s 4/5 xwayland / damage-primitives OK 0.05s 5/5 xwayland:xwayland / XTS FAIL 60.01s (exit status 143 or signal 15 SIGTERM) >>> XSERVER_DIR=/tmp/portage/x11-base/xwayland-21.1.2-r2/work/xwayland-21.1.2 MALLOC_PERTURB_=98 XSERVER_BUILDDIR=/tmp/portage/x11-base/xwayland-21.1.2-r2/work/xwayland-21.1.2-build /tmp/portage/x11-base/xwayland-21.1.2-r2/work/xwayland-21.1.2/test/scripts/xwayland-piglit.sh 5/5 xwayland:xwayland / XTS FAIL 60.01s (exit status 143 or signal 15 SIGTERM) 12:58:52 XSERVER_DIR=/tmp/portage/x11-base/xwayland-21.1.2-r2/work/xwayland-21.1.2 MALLOC_PERTURB_=98 XSERVER_BUILDDIR=/tmp/portage/x11-base/xwayland-21.1.2-r2/work/xwayland-21.1.2-build /tmp/portage/x11-base/xwayland-21.1.2-r2/work/xwayland-21.1.2/test/scripts/xwayland-piglit.sh ----------------------------------- output ----------------------------------- stderr: Date: 2021-11-02 EET [14:58:52.748] weston 3.0.0 http://wayland.freedesktop.org Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=3.0.0 Build: unknown (not built from git or tarball) [14:58:52.748] Command line: weston --no-config --backend=headless-backend.so --socket=wayland-36 [14:58:52.748] OS: Linux, 5.14.14-gentoo, #1 SMP Sun Oct 24 20:13:19 EEST 2021, x86_64 [14:58:52.748] Starting with no config file. [14:58:52.748] Output repaint window is 7 ms maximum. [14:58:52.748] Loading module '/usr/lib64/libweston-3/headless-backend.so' [14:58:52.748] Failed to load module: /usr/lib64/libweston-3/headless-backend.so: cannot open shared object file: No such file or directory [14:58:52.748] fatal: failed to create compositor backend ------------------------------------------------------------------------------ Summary of Failures: 5/5 xwayland:xwayland / XTS FAIL 60.01s (exit status 143 or signal 15 SIGTERM)
The test gets skipped if weston isn't present, but not if weston is present but without headless module: # Skip if weston isn't available weston --version >/dev/null || exit 77 weston --no-config --backend=headless-backend.so --socket=wayland-$$ &
And then after it gets passed that after uninstalling weston or adding USE=headless, it seems like the whole test will be skipped anyhow due to run-piglit.sh not finding piglit and thus doing exit 77 too.
I think we should package piglit and add weston[headless] and piglit test deps, or more realistically just skip the whole test irregardless of a weston without headless module being there by just adding an exit 77 to the test script in ebuild, commenting it out in meson.build - or better by somehow getting it to make an additional check about the module being there and contributing that upstream.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fa29ca39c11fccbd1ab9678432f4d45af0bafe5 commit 7fa29ca39c11fccbd1ab9678432f4d45af0bafe5 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2024-04-25 15:16:55 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2024-04-25 15:17:33 +0000 x11-base/xwayland: Skip XTS tests Closes: https://bugs.gentoo.org/812686 Signed-off-by: Matt Turner <mattst88@gentoo.org> ...wayland-test-early-if-PIGLIT_DIR-XTEST_DI.patch | 36 ++++++++++++++++++++++ x11-base/xwayland/xwayland-23.2.6.ebuild | 5 +-- 2 files changed, 39 insertions(+), 2 deletions(-)