summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* test: Use either wayland-info or weston-infoOlivier Fourdan2023-03-221-1/+6
| | | | | | | | | | weston-info has been deprecated for quite some time, whereas wayland-info may not be available yet. So we use either, depending on what's actually available. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
* Remove "All rights reserved" from Oracle copyright noticesAlan Coopersmith2023-02-252-2/+2
| | | | | | Oracle no longer includes this term in our copyright & license notices. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* glamor: make use of GL_EXT_texture_format_BGRA8888Konstantin2022-12-011-1/+0
| | | | | | | | | | | | | | For 24 and 32 bit depth pictures xserver uses PICT_x8r8g8b8 and PICT_a8r8g8b8 formats, which must be backed with GL_BGRA format. It is present in OpenGL ES 2.0 only with GL_EXT_texture_format_BGRA8888 extension. We require such extension in glamor_init, so, why not to make use of it? Fixes #1208 Fixes #1354 Signed-off-by: Konstantin Pugin <ria.freelander@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Emma Anholt <emma@anholt.net>
* meson: add glamor gles2 testsKonstantin2022-12-014-5/+287
| | | | | | | Signed-off-by: Konstantin Pugin <ria.freelander@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Emma Anholt <emma@anholt.net>
* test: Exclude two XTS xsetfontpath testsMichel Dänzer2022-09-023-0/+6
| | | | | They start failing after rebuilding the docker image. It's not clear why, but looks like it's triggered by changes in Debian bullseye.
* test: Fix 'xephr' mis-spellingMichel Dänzer2022-09-021-2/+2
|
* xkb: rename xkb.h to xkb-procs.hPeter Hutterer2022-07-081-1/+0
| | | | | | | | | This header merely defines the various protocol request handlers, so let's rename it to something less generic and remove its include from all the files that don't actually need it (which is almost all of them). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
* tests: Fix build failure from missing micmap.cJeremy Huddleston Sequoia2022-06-261-0/+2
| | | | | | | | | | | | | | | | | | FAILED: test/tests clang -o test/tests test/tests.p/.._mi_miinitext.c.o test/tests.p/fixes.c.o test/tests.p/input.c.o test/tests.p/list.c.o test/tests.p/misc.c.o test/tests.p/signal-logging.c.o test/tests.p/string.c.o test/tests.p/test_xkb.c.o test/tests.p/tests-common.c.o test/tests.p/tests.c.o test/tests.p/touch.c.o test/tests.p/xfree86.c.o test/tests.p/xtest.c.o test/tests.p/hashtabletest.c.o -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -fvisibility=hidden -O0 -g3 -gdwarf-2 -mmacosx-version-min=10.9 -Werror=unguarded-availability-new -Werror=format -Werror=objc-method-access -Werror=incompatible-pointer-types -F/Applications/Utilities/XQuartz.app/Contents/Frameworks -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -arch x86_64 -O0 -g3 -gdwarf-2 -mmacosx-version-min=10.9 -Werror=unguarded-availability-new -Werror=format -Werror=objc-method-access -Werror=incompatible-pointer-types -F/Applications/Utilities/XQuartz.app/Contents/Frameworks -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -arch x86_64 -Wl,-rpath,/opt/X11/lib mi/liblibxserver_mi.a dix/liblibxserver_dix.a composite/liblibxserver_composite.a damageext/liblibxserver_damageext.a dbe/liblibxserver_dbe.a randr/liblibxserver_randr.a miext/damage/liblibxserver_miext_damage.a render/liblibxserver_render.a present/liblibxserver_present.a Xext/liblibxserver_xext.a miext/sync/liblibxserver_miext_sync.a xfixes/liblibxserver_xfixes.a Xi/liblibxserver_xi.a xkb/liblibxserver_xkb.a record/liblibxserver_record.a os/liblibxserver_os.a os/liblibxlibc.a glx/liblibglxvnd.a hw/xfree86/common/libxorg_common.a hw/xfree86/loader/libxorg_loader.a hw/xfree86/ddc/libxorg_ddc.a hw/xfree86/xkb/libxorg_xkb.a hw/xfree86/i2c/libxorg_i2c.a hw/xfree86/modes/libxorg_modes.a hw/xfree86/os-support/libxorg_os_support.a hw/xfree86/parser/libxorg_parser.a hw/xfree86/ramdac/libxorg_ramdac.a fb/liblibxserver_fb.a Xext/liblibxserver_xext_vidmode.a dix/liblibxserver_main.a config/liblibxserver_config.a /opt/X11/lib/libpixman-1.dylib /opt/X11/lib/libxcvt.dylib /opt/X11/lib/libxkbfile.dylib /opt/X11/lib/libXfont2.dylib /opt/X11/lib/libXdmcp.dylib -lm /opt/X11/lib/libxshmfence.dylib -ldl -lpthread /opt/X11/lib/libXau.dylib /opt/X11/lib/libGL.dylib Undefined symbols for architecture x86_64: "_micmapScrPrivateKeyRec", referenced from: _DGAInstallCmap in libxorg_common.a(xf86DGA.c.o) _xf86HandleColormaps in libxorg_common.a(xf86cmap.c.o) _CMapInstallColormap in libxorg_common.a(xf86cmap.c.o) _CMapEnterVT in libxorg_common.a(xf86cmap.c.o) _CMapSwitchMode in libxorg_common.a(xf86cmap.c.o) _CMapSetDGAMode in libxorg_common.a(xf86cmap.c.o) _CMapChangeGamma in libxorg_common.a(xf86cmap.c.o) ... ld: symbol(s) not found for architecture x86_64 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
* test: #undef NDEBUG so assert is not compiled awayMatt Turner2021-12-0824-0/+72
|
* Remove autotools supportPovilas Kanapickas2021-10-272-210/+3
| | | | Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
* xwayland/test: Don't catch errors in run-piglit.shOlivier Fourdan2021-10-211-0/+2
| | | | | | | | | | | | | | | | | | | | | The xwayland-piglit.sh script spawns weston, runs run-piglit.sh and finally kills weston. However, this whole script is running with “-e” meaning that any error will cause the script to exit immediately. As a result, if run-piglit.sh exits with a non-zero code such as 77 for skipping the test, the script will exit prematurely leaving weston running, and meson will simply wait until the timeout kicks in, and fail eventually instead of skipping the test as it should. Fix this by removing the option to exit immediately prior to spawn the script run-piglit.sh. Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1204 Suggested-by: Michel Dänzer <mdaenzer@redhat.com> Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
* xfree86: Use libxcvtOlivier Fourdan2021-08-061-1/+1
| | | | | | | | | Replace the local implementation of the VESA CVT standard timing modelines generator with the one from libxct to avoid code duplication. Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1142 Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
* test/xi2: Verify that XI_GestureSwipeEnd is ignored when outside maskPovilas Kanapickas2021-05-301-1/+12
|
* test/xi2: Update tests for gesture event typesPovilas Kanapickas2021-05-302-1/+21
|
* meson: Disable LTO for testsPovilas Kanapickas2021-04-091-1/+4
| | | | | | | | | | `-flto=auto` together with `-Wl,-wrap` causes link errors at least in certain compilers (e.g. GCC 10.2.0). Since this is reoccurring issue (internet search shows similar problems with GCC 4.6 a decade ago) let's disable LTO for tests even if it's disabled elsewhere. Fixes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1116 Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
* mi: List extensions in usage messageOlivier Fourdan2021-01-291-0/+1
| | | | | | | | | | | | | Not all extensions can be enabled or disabled at runtime, list the extensions which can from the help message rather than on error only. v2: * Print the header message in the ListStaticExtensions() (Peter Hutterer) * Do not export ListStaticExtensions() as Xserver API Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
* test/xi2: Fix mask size in XISelectEvents testPovilas Kanapickas2020-11-251-1/+1
| | | | | | XI2LASTEVENT identifies the bit number, not the mask size in bits. The mask size in bits is XI2LASTEVENT + 1 and the mask size in bytes is (XI2LASTEVENT + 8) / 8 or XI2MASKSIZE.
* xwayland: Add and hook up test scriptMichel Dänzer2020-11-173-0/+62
| | | | | | | | | | | | | | | | | It runs XTS via piglit on (non-rootless) Xwayland on weston using the headless backend. Xwayland might use glamor if enabled in the build, but we're making sure it uses software rendering. v2: * Use weston-info to wait for weston to be ready, instead of just a fixed sleep. (Martin Peres) v3: * Build wayland 1.18 & weston 9.0 locally, since the packages in Debian buster are too old for current Xwayland. Acked-by: Olivier Fourdan <ofourdan@redhat.com>
* test: Fix struct initialization warningMartin Weber2020-05-081-1/+1
|
* tests/misc: Drop redundant screenInfo declarationMichel Dänzer2020-01-281-2/+0
| | | | | | | | | | | | GCC warned about it: ../test/misc.c:36:19: warning: redundant redeclaration of ‘screenInfo’ [-Wredundant-decls] 36 | extern ScreenInfo screenInfo; | ^~~~~~~~~~ In file included from ../test/misc.c:30: ../include/scrnintstr.h:688:29: note: previous declaration of ‘screenInfo’ was here 688 | extern _X_EXPORT ScreenInfo screenInfo; | ^~~~~~~~~~
* Fix building with `-fno-common`David Seifert2020-01-2713-12/+14
| | | | | | | | * GCC 10 will switch the default to `-fno-common`. https://gcc.gnu.org/PR85678 Bug: https://bugs.gentoo.org/705880 Signed-off-by: Matt Turner <mattst88@gmail.com>
* xfree86: Link fb staticallyAdam Jackson2019-07-231-0/+1
| | | | | | | There's no real benefit to leaving this loadable, virtually every driver is going to load it. Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
* assert(a && b) --> assert(a); assert(b)Adam Richter2019-05-024-5/+10
| | | | | | | | Separate each statement of the form "assert(a && b);" into "assert(a);" and "assert(b);" for more precise diagnostics, except for this clever use in drmmode_display.c where it was used to pass a hint to developers: assert(num_infos <= 32 && "update return type");
* travis: Suppress uninteresting warnings on OSXJon Turney2019-05-021-1/+1
| | | | | Suppress uninteresting warnings on OSX that we are drowning in, turned on by default in meson.
* travis: Add OSX meson build to matrixJon Turney2019-05-021-8/+23
| | | | | Unfortunately, a 'brew update' is currently needed to get the meson >= 0.46.0 required by xserver.
* travis: Don't produce fat binaries on OSXJon Turney2019-05-021-1/+1
| | | | | | | | Trying to build fat binaries for multiple arches tickles a bug [1] in the framework detector in meson 0.50. Workaround this by not bothering building for x86, which is probably no great loss :S https://github.com/mesonbuild/meson/issues/5290
* meson: Fix building unit tests when protocol headers aren't in default ↵Jon Turney2019-04-291-1/+1
| | | | include path
* test: Fix meson build with xvfb disabled.Eric Anholt2019-04-041-6/+7
| | | | | | Fixes #678 Signed-off-by: Eric Anholt <eric@anholt.net>
* tests: Always separate rendercheck -f and -o options with a spaceJon Turney2019-04-021-2/+2
|
* test: Trim the Render ops that we test the composite paths on.Eric Anholt2019-03-281-7/+8
| | | | | | | | | | | We cover all Render ops under the "blend" group, so when we're doing the cross products of some formats for the masking operation, skip most of the ops (covering just zero, one, and src/dst alpha blend factors along with a definitely non-glamor-accelerated one) . All the tests now complete in <20s of runtime on my skylake. Signed-off-by: Eric Anholt <eric@anholt.net>
* test: Execute rendercheck tests without using piglit.Eric Anholt2019-03-282-2/+79
| | | | | | | This gets us parallelism between rendercheck tests at the cost of spinning up more Xvfbs, and nicer logging of the tests that are run. Signed-off-by: Eric Anholt <eric@anholt.net>
* test: Skip a few tests on glamor that are known to fail on llvmpipe.Eric Anholt2019-03-271-0/+9
| | | | Signed-off-by: Eric Anholt <eric@anholt.net>
* simple-xinit: Introduce an escaped "--" argument.Eric Anholt2019-03-271-1/+7
| | | | | | | | | For testing xephyr-glamor on top of Xvfb in CI better, I want to be able to make one command line describing the nested server invocation, but that means I need to get two simple-xinits to split client/server on different "--" arguments. Signed-off-by: Eric Anholt <eric@anholt.net>
* simple-xinit: Avoid hanging if the server fails to set up the display fd.Eric Anholt2019-03-271-2/+29
| | | | | | | Early fatal errors may leave us with nothing in the displayfd pipe, and we'd block forever. Signed-off-by: Eric Anholt <eric@anholt.net>
* meson: Drop a meson version checkJon Turney2019-03-141-1/+1
| | | | | Drop some code conditional on meson version, which is not needed since 7e046b94 bumped the minimum meson version
* Revert "ci: Work around broken python UTF8 handling in the CI docker image"Michel Dänzer2018-12-171-3/+0
| | | | | | | | This reverts commit 899d260701ff783254f8ead91dab8dc515d554f6. No longer necessary with the previous changes. Reviewed-by: Eric Anholt <eric@anholt.net>
* test: Use .../piglit instead of .../piglit-*.pyMichel Dänzer2018-12-172-4/+4
| | | | | | | The latter use Python 2 and break with any non-ASCII characters in the environment, the former uses Python 3 and works fine in that case. Reviewed-by: Eric Anholt <eric@anholt.net>
* gitlab-ci: Docker image can be generated as part of pipelineMichel Dänzer2018-12-172-507/+1
| | | | | | | | | | | | | | | This removes the dependency on an externally generated docker image, and should make it easier to update the docker image or make other changes related to it. This is based on Debian testing, because I'm most familiar with Debian. But it should be easy to base it on another distro. v2: * Use kaniko instead of docker-in-docker for image generation, so it can also work in unprivileged runners. * Drop piglit.conf & tetexec.cfg overrides, just make sure the files in the image work.
* Drop Travis Linux build in favour of GitLab CIMichel Dänzer2018-12-171-30/+0
| | | | | | | | | Fold build-travis-deps.sh into .gitlab-ci.yml. Preparation for the next change, which would break the Travis Linux build. Reviewed-by: Eric Anholt <eric@anholt.net>
* meson: Add misc unit testsJon Turney2018-12-141-0/+70
| | | | | v2: has_link_argument requires meson 0.46.0
* test: fix failing testsPeter Hutterer2018-12-142-3/+9
| | | | | | | | | Broken since 69d8ea4a49793a94f821d1a328856901a1c02a5a because our fake screen didn't have a root window and writing the XKB rules prop would happily segfault. Fix this by setting up the required bits. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Tested-by: Michel Dänzer michel.daenzer@amd.com
* travis: Use a single meson invocationMichel Daenzer2018-12-121-2/+1
| | | | The prefix setting didn't take for some reason.
* ci: Work around broken python UTF8 handling in the CI docker imageAdam Jackson2018-12-111-0/+3
| | | | | | | | | | | | | | Gitlab very kindly exposes the details of the git commit message (among much else) in the environment. Unfortunately, piglit tries to handle the environment in non-UTF8-safe ways, which means if the top-of-tree commit mentions non-ASCII characters (say, in the author's name) then all the tests fail and so does the pipeline. Fortunately none of those variables are things our piglit invocation needs. Since I've failed to rebuild the docker image as yet, just clear the likely variables from the environment before running piglit. This-makes-me: ☹
* test: Initialize the pixmap in damage testJon Turney2018-09-281-0/+12
|
* test: Add the start of a testsuite for damage.Eric Anholt2018-09-253-0/+369
| | | | | | | Inspired by the previous bug, build something we can use to write damage testcases, including testing for the bug. Signed-off-by: Eric Anholt <eric@anholt.net>
* travis: Bump rawhide imageAdam Jackson2018-03-212-2/+510
| | | | | | | | | | | The image now has enough mojo to run xts, hooray! Note there's a couple of ugly bits in here. The piglit config fragment and stock tetexec.cfg reflect missing features from the test suites (using an installed copy of xts, figuring out the xserver test matrix at runtime, etc.), I'll be happy to remove them once the tests are fixed. Signed-off-by: Adam Jackson <ajax@redhat.com>
* ci: Ignore builds for branches aimed at other CI servicesAdam Jackson2018-03-212-3/+9
| | | | | | | | Make appveyor ignore builds for /travis.*/ and vice versa. If you're only testing a Windows change, building for OSX and Linux too is a bit rude. Signed-off-by: Adam Jackson <ajax@redhat.com>
* travis: Update OSX buildAdam Jackson2018-03-141-1/+13
| | | | | | | | | Install and use xorgproto, and build with optimization as clang has warnings that only work above -O0. Also expand the build matrix for both Xcode 8.3 and 9.2. Both images are OSX 10.12 at the moment so this is really just a way to test with clang 8 vs 9. Signed-off-by: Adam Jackson <ajax@redhat.com>
* travis: Switch linux build from stretch to rawhideAdam Jackson2018-03-141-1/+3
| | | | | | | | | | | | | | | | Stretch's Mesa is too far behind, and building Mesa to build xserver is not the sort of problem we're trying to solve here. But our Travis scripts run inside a docker image, and that image can be whatever, so since I have to keep rawhide building anyway let's switch to that for now. The dockerfile can be found at: https://github.com/nwnk/xserver-travis The $DISTRO part of the change is foreshadowing for the day we readd a (probably sid-based) debian image; patches for other environments are welcome. Signed-off-by: Adam Jackson <ajax@redhat.com>
* miinitext: Load GLX on the mi pathAdam Jackson2018-02-141-0/+4
| | | | | | | Add a stub for Xnest so it continues to link, but otherwise we support GLX on every server so there's no need to make every DDX add it. Signed-off-by: Adam Jackson <ajax@redhat.com>