tests: Include 'src/tests' in G_TEST_BUILDDIR
This will help with finding executables in installed tests. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3973>
This commit is contained in:
parent
1d724e7e9d
commit
1a0be0232a
5 changed files with 1 additions and 9 deletions
|
@ -50,8 +50,6 @@ input_capture_test_client_new (const char *test_case)
|
|||
GDataOutputStream *line_writer;
|
||||
|
||||
test_client_path = g_test_build_filename (G_TEST_BUILT,
|
||||
"src",
|
||||
"tests",
|
||||
"mutter-input-capture-test-client",
|
||||
NULL);
|
||||
launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDOUT_PIPE |
|
||||
|
|
|
@ -142,7 +142,7 @@ test_env = environment()
|
|||
|
||||
test_env_variables = {
|
||||
'G_TEST_SRCDIR': mutter_srcdir / 'src',
|
||||
'G_TEST_BUILDDIR': mutter_builddir,
|
||||
'G_TEST_BUILDDIR': mutter_builddir / 'src' / 'tests',
|
||||
'XDG_CONFIG_HOME': mutter_builddir / '.config',
|
||||
'MUTTER_TEST_PLUGIN_PATH': '@0@'.format(default_plugin.full_path()),
|
||||
'MUTTER_REF_TEST_RESULT_DIR': mutter_builddir / 'meson-logs' / 'tests' / 'ref-tests',
|
||||
|
|
|
@ -35,8 +35,6 @@ static char *
|
|||
get_test_client_path (const char *test_client_name)
|
||||
{
|
||||
return g_test_build_filename (G_TEST_BUILT,
|
||||
"src",
|
||||
"tests",
|
||||
"wayland-test-clients",
|
||||
test_client_name,
|
||||
NULL);
|
||||
|
|
|
@ -55,8 +55,6 @@ meta_test_screen_cast_record_virtual (void)
|
|||
meta_add_verbose_topic (META_DEBUG_SCREEN_CAST);
|
||||
|
||||
test_client_path = g_test_build_filename (G_TEST_BUILT,
|
||||
"src",
|
||||
"tests",
|
||||
"mutter-screen-cast-client",
|
||||
NULL);
|
||||
g_subprocess_launcher_setenv (launcher,
|
||||
|
|
|
@ -283,8 +283,6 @@ meta_test_xwayland_compositor_selection (void)
|
|||
TRUE);
|
||||
|
||||
x11_compositor_checker = g_test_build_filename (G_TEST_BUILT,
|
||||
"src",
|
||||
"tests",
|
||||
"x11-compositor-checker",
|
||||
NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue