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:
parent
bd18af1a0d
commit
15b8f89c02
@ -6,6 +6,8 @@ mutter_test_sources = [
|
|||||||
'meta-gpu-test.h',
|
'meta-gpu-test.h',
|
||||||
'meta-monitor-manager-test.c',
|
'meta-monitor-manager-test.c',
|
||||||
'meta-monitor-manager-test.h',
|
'meta-monitor-manager-test.h',
|
||||||
|
'meta-ref-test.c',
|
||||||
|
'meta-ref-test.h',
|
||||||
'meta-sensors-proxy-mock.c',
|
'meta-sensors-proxy-mock.c',
|
||||||
'meta-sensors-proxy-mock.h',
|
'meta-sensors-proxy-mock.h',
|
||||||
'meta-test-utils.c',
|
'meta-test-utils.c',
|
||||||
@ -200,11 +202,6 @@ anonymous_file_test = executable('anonymous-file-tests',
|
|||||||
install_dir: mutter_installed_tests_libexecdir,
|
install_dir: mutter_installed_tests_libexecdir,
|
||||||
)
|
)
|
||||||
|
|
||||||
ref_test_sources = [
|
|
||||||
'meta-ref-test.c',
|
|
||||||
'meta-ref-test.h',
|
|
||||||
]
|
|
||||||
|
|
||||||
if have_native_tests
|
if have_native_tests
|
||||||
native_kms_utils_tests = executable('mutter-native-kms-utils-tests',
|
native_kms_utils_tests = executable('mutter-native-kms-utils-tests',
|
||||||
sources: [
|
sources: [
|
||||||
@ -224,7 +221,6 @@ if have_native_tests
|
|||||||
'native-screen-cast.h',
|
'native-screen-cast.h',
|
||||||
'native-virtual-monitor.c',
|
'native-virtual-monitor.c',
|
||||||
'native-virtual-monitor.h',
|
'native-virtual-monitor.h',
|
||||||
ref_test_sources,
|
|
||||||
],
|
],
|
||||||
include_directories: tests_includes,
|
include_directories: tests_includes,
|
||||||
c_args: tests_c_args,
|
c_args: tests_c_args,
|
||||||
@ -247,7 +243,6 @@ if have_native_tests
|
|||||||
ref_test_sanity = executable('mutter-ref-test-sanity',
|
ref_test_sanity = executable('mutter-ref-test-sanity',
|
||||||
sources: [
|
sources: [
|
||||||
'ref-test-sanity.c',
|
'ref-test-sanity.c',
|
||||||
ref_test_sources,
|
|
||||||
],
|
],
|
||||||
include_directories: tests_includes,
|
include_directories: tests_includes,
|
||||||
c_args: tests_c_args,
|
c_args: tests_c_args,
|
||||||
|
@ -29,11 +29,13 @@ typedef enum _MetaReftestFlag
|
|||||||
META_REFTEST_FLAG_UPDATE_REF = 1 << 0,
|
META_REFTEST_FLAG_UPDATE_REF = 1 << 0,
|
||||||
} MetaReftestFlag;
|
} MetaReftestFlag;
|
||||||
|
|
||||||
|
META_EXPORT
|
||||||
void meta_ref_test_verify_view (ClutterStageView *view,
|
void meta_ref_test_verify_view (ClutterStageView *view,
|
||||||
const char *test_name,
|
const char *test_name,
|
||||||
int test_seq_no,
|
int test_seq_no,
|
||||||
MetaReftestFlag flags);
|
MetaReftestFlag flags);
|
||||||
|
|
||||||
|
META_EXPORT
|
||||||
MetaReftestFlag meta_ref_test_determine_ref_test_flag (void);
|
MetaReftestFlag meta_ref_test_determine_ref_test_flag (void);
|
||||||
|
|
||||||
#endif /* META_REF_TEST_H */
|
#endif /* META_REF_TEST_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user