[gtk/headless-seatless: 6/8] testsuite: Add test setups for backends
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/headless-seatless: 6/8] testsuite: Add test setups for backends
- Date: Fri, 15 May 2020 17:03:22 +0000 (UTC)
commit ff592a7040d43efbdfcceb806ea689c0f1d4a404
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 15 09:23:25 2020 -0400
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')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]