From ff4552c842cb58ce3db70562d62a45b1e520e439 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 15 May 2020 09:23:25 -0400 Subject: [PATCH] testsuite: Add test setups for backends Add test setups that set the GDK_BACKEND and TEST_OUTPUT_SUBDIR environment variables. This lets use run meson test --setup x11 --suite reftest meson test --setup wayland --suite reftest and the output will be nicely separated. We still need to do compositor / display server setup from the outside. --- testsuite/meson.build | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/testsuite/meson.build b/testsuite/meson.build index e5c0abe398..c862cebb1a 100644 --- a/testsuite/meson.build +++ b/testsuite/meson.build @@ -6,6 +6,19 @@ installed_test_datadir = join_paths(gtk_datadir, 'installed-tests', 'gtk-4.0') # otherwise we're going to have failures down the line diff = find_program('diff', required: true) +add_test_setup ('x11', + is_default: true, + env: ['GDK_BACKEND=x11', + 'TEST_OUTPUT_SUBDIR=x11' ]) + +add_test_setup ('wayland', + env: ['GDK_BACKEND=wayland', + 'TEST_OUTPUT_SUBDIR=wayland' ]) + +add_test_setup ('broadway', + env: ['GDK_BACKEND=broadway', + 'TEST_OUTPUT_SUBDIR=broadway' ]) + subdir('performance') subdir('gdk') subdir('gsk')