tests: Move ref test framework to libmutter-test.so

Will make it available to most tests without having to explicitly
include.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2262>
This commit is contained in:
Jonas Ådahl 2022-01-28 08:33:50 +01:00 committed by Marge Bot
parent bd18af1a0d
commit 15b8f89c02
2 changed files with 4 additions and 7 deletions

View File

@ -6,6 +6,8 @@ mutter_test_sources = [
'meta-gpu-test.h',
'meta-monitor-manager-test.c',
'meta-monitor-manager-test.h',
'meta-ref-test.c',
'meta-ref-test.h',
'meta-sensors-proxy-mock.c',
'meta-sensors-proxy-mock.h',
'meta-test-utils.c',
@ -200,11 +202,6 @@ anonymous_file_test = executable('anonymous-file-tests',
install_dir: mutter_installed_tests_libexecdir,
)
ref_test_sources = [
'meta-ref-test.c',
'meta-ref-test.h',
]
if have_native_tests
native_kms_utils_tests = executable('mutter-native-kms-utils-tests',
sources: [
@ -224,7 +221,6 @@ if have_native_tests
'native-screen-cast.h',
'native-virtual-monitor.c',
'native-virtual-monitor.h',
ref_test_sources,
],
include_directories: tests_includes,
c_args: tests_c_args,
@ -247,7 +243,6 @@ if have_native_tests
ref_test_sanity = executable('mutter-ref-test-sanity',
sources: [
'ref-test-sanity.c',
ref_test_sources,
],
include_directories: tests_includes,
c_args: tests_c_args,

View File

@ -29,11 +29,13 @@ typedef enum _MetaReftestFlag
META_REFTEST_FLAG_UPDATE_REF = 1 << 0,
} MetaReftestFlag;
META_EXPORT
void meta_ref_test_verify_view (ClutterStageView *view,
const char *test_name,
int test_seq_no,
MetaReftestFlag flags);
META_EXPORT
MetaReftestFlag meta_ref_test_determine_ref_test_flag (void);
#endif /* META_REF_TEST_H */