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.
# 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')