[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][xorg-team/wayland/weston][debian-unstable] Use build time tests as autopkgtest until upstream tests can be installed



Title: GitLab

Dylan Aïssi pushed to branch debian-unstable at X Strike Force / wayland / weston

Commits:

  • e46bd4b4
    by Dylan Aïssi at 2024-02-15T22:52:07+01:00
    Use build time tests as autopkgtest until upstream tests can be installed
    
    See https://gitlab.freedesktop.org/wayland/weston/-/issues/368
    
    Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
    

4 changed files:

Changes:

  • debian/patches/Skip_xwayland_test.patch
    1
    +Description: Skip the xwayland test because it doesn't work on Debian at
    
    2
    + build time, nor on the autopkgtest infrastructure. It fails with:
    
    3
    + > failed to bind to /tmp/.X11-unix/X0: No such file or directory
    
    4
    +Author: Dylan Aïssi <daissi@debian.org>
    
    5
    +
    
    6
    +--- a/tests/xwayland-test.c
    
    7
    ++++ b/tests/xwayland-test.c
    
    8
    +@@ -51,6 +51,12 @@
    
    9
    + static enum test_result_code
    
    10
    + fixture_setup(struct weston_test_harness *harness)
    
    11
    + {
    
    12
    ++	/* Skip the xwayland test because it doesn't work on Debian at
    
    13
    ++	   build time, nor on the autopkgtest infrastructure. It fails with:
    
    14
    ++	   > failed to bind to /tmp/.X11-unix/X0: No such file or directory
    
    15
    ++	*/
    
    16
    ++	return 77;
    
    17
    ++
    
    18
    + 	struct compositor_setup setup;
    
    19
    + 
    
    20
    + 	unsetenv("DISPLAY");

  • debian/patches/series
    1
    +Skip_xwayland_test.patch

  • debian/rules
    ... ... @@ -8,7 +8,7 @@ override_dh_auto_configure:
    8 8
     
    
    9 9
     override_dh_auto_test:
    
    10 10
     	mkdir -p $(CURDIR)/debian/tmp/tmp/xdgruntimedir
    
    11
    -	XDG_RUNTIME_DIR=$(CURDIR)/debian/tmp/tmp/xdgruntimedir dh_auto_test || true
    
    11
    +	XDG_RUNTIME_DIR=$(CURDIR)/debian/tmp/tmp/xdgruntimedir dh_auto_test
    
    12 12
     
    
    13 13
     override_dh_missing:
    
    14 14
     	dh_missing --fail-missing -X.la
    

  • debian/tests/control
    1
    +# Upstream testsuite is not yet installable, see
    
    2
    +# https://gitlab.freedesktop.org/wayland/weston/-/issues/368
    
    3
    +Test-Command: dh_auto_configure; dh_auto_build; dh_auto_test
    
    4
    +Depends: @builddeps@
    
    5
    +Restrictions: allow-stderr


  • Reply to: