summaryrefslogtreecommitdiff
path: root/testsuite/meson.build
blob: 4ef7cced9a0e8eba1d64db6aa7144b135e0beef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
gtk_libexecdir = join_paths(gtk_prefix, get_option('libexecdir'))
installed_test_bindir = join_paths(gtk_libexecdir, 'installed-tests', 'gtk-4.0')
installed_test_datadir = join_paths(gtk_datadir, 'installed-tests', 'gtk-4.0')

# We call diff in various tests, so we need to check it's available,
# otherwise we're going to have failures down the line
diff = find_program('diff', required: true)

common_env = [
  'GIO_USE_VOLUME_MONITOR=unix',
  'GSETTINGS_BACKEND=memory',
  'GTK_CSD=1',
  'G_ENABLE_DIAGNOSTIC=0',
  'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
]

if get_option('debug')
  common_env += [ 'GDK_DEBUG=default-settings' ]
endif

if x11_enabled
  add_test_setup ('x11',
                  env: common_env + [
                       'GDK_BACKEND=x11',
                       'TEST_OUTPUT_SUBDIR=x11',
                       ])
endif

if wayland_enabled
  add_test_setup ('wayland',
                  is_default: true,
                  env: common_env + [
                        'GDK_BACKEND=wayland',
                        'TEST_OUTPUT_SUBDIR=wayland',
                        ])

endif

if os_win32
  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')
subdir('gsk')
subdir('gtk')
subdir('css')
subdir('a11y')
subdir('tools')
subdir('reftests')