[gtk/master.win32: 3/4] testsuite: Setup tests env by platform
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/master.win32: 3/4] testsuite: Setup tests env by platform
- Date: Mon, 3 Aug 2020 08:29:57 +0000 (UTC)
commit be840c37e6dec12f5dc19f1b7728a96f083c38d3
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Aug 3 16:14:36 2020 +0800
testsuite: Setup tests env by platform
Don't try to setup tests to run using the Wayland or X11 backends when on
Windows, and only attempt to setup tests running with the Broadway backend if
it has been enabled.
Also, add a setup for running tests with the GDK-Win32 backend on Windows.
testsuite/meson.build | 47 +++++++++++++++++++++++++++++------------------
1 file changed, 29 insertions(+), 18 deletions(-)
---
diff --git a/testsuite/meson.build b/testsuite/meson.build
index 03a04048bd..56be52fa5c 100644
--- a/testsuite/meson.build
+++ b/testsuite/meson.build
@@ -18,24 +18,35 @@ if get_option('debug')
common_env += [ 'GDK_DEBUG=default-settings' ]
endif
-add_test_setup ('x11',
- env: common_env + [
- 'GDK_BACKEND=x11',
- 'TEST_OUTPUT_SUBDIR=x11',
- ])
-
-add_test_setup ('wayland',
- is_default: true,
- env: common_env + [
- 'GDK_BACKEND=wayland',
- 'TEST_OUTPUT_SUBDIR=wayland',
- ])
-
-add_test_setup ('broadway',
- env: common_env + [
- 'GDK_BACKEND=broadway',
- 'TEST_OUTPUT_SUBDIR=broadway',
- ])
+if not os_win32
+ add_test_setup ('x11',
+ env: common_env + [
+ 'GDK_BACKEND=x11',
+ 'TEST_OUTPUT_SUBDIR=x11',
+ ])
+
+ add_test_setup ('wayland',
+ is_default: true,
+ env: common_env + [
+ 'GDK_BACKEND=wayland',
+ 'TEST_OUTPUT_SUBDIR=wayland',
+ ])
+
+else
+ add_test_setup ('win32',
+ env: common_env + [
+ 'GDK_BACKEND=win32',
+ 'TEST_OUTPUT_SUBDIR=win32',
+ ])
+endif
+
+if broadway_enabled
+ add_test_setup ('broadway',
+ env: common_env + [
+ 'GDK_BACKEND=broadway',
+ 'TEST_OUTPUT_SUBDIR=broadway',
+ ])
+endif
subdir('performance')
subdir('gdk')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]