forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
c22af88235
commit
ff4552c842
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user