- Change `scope` kwarg to `public` boolean default to false. - Change `side` kwarg to `client` and `server` booleans. - Document returned values - Aggregate in a single unit test because have lots of small tests increases CI time. Fixes: #10040.pull/10076/head
parent
af9af219d8
commit
e80a9c2cba
11 changed files with 95 additions and 67 deletions
@ -0,0 +1,11 @@ |
||||
#include "viewporter-client-protocol.h" |
||||
#include "viewporter-server-protocol.h" |
||||
|
||||
int main() { |
||||
#if defined(VIEWPORTER_CLIENT_PROTOCOL_H) && \ |
||||
defined(VIEWPORTER_SERVER_PROTOCOL_H) |
||||
return 0; |
||||
#else |
||||
return 1; |
||||
#endif |
||||
} |
@ -0,0 +1,9 @@ |
||||
#include "presentation-time-server-protocol.h" |
||||
|
||||
int main() { |
||||
#ifdef PRESENTATION_TIME_SERVER_PROTOCOL_H |
||||
return 0; |
||||
#else |
||||
return 1; |
||||
#endif |
||||
} |
@ -1,9 +0,0 @@ |
||||
#include "xdg-shell-server-protocol.h" |
||||
|
||||
int main() { |
||||
#ifdef XDG_SHELL_SERVER_PROTOCOL_H |
||||
return 0; |
||||
#else |
||||
return 1; |
||||
#endif |
||||
} |
@ -1,16 +0,0 @@ |
||||
project('wayland-test-server', 'c') |
||||
|
||||
wl_protocols_dep = dependency('wayland-protocols', required : false) |
||||
if not wl_protocols_dep.found() |
||||
error('MESON_SKIP_TEST: wayland-protocols not installed') |
||||
endif |
||||
|
||||
wl_dep = dependency('wayland-server') |
||||
wl_mod = import('unstable-wayland') |
||||
|
||||
xdg_shell_xml = wl_mod.find_protocol('xdg-shell') |
||||
xdg_shell = wl_mod.scan_xml(xdg_shell_xml, side : 'server') |
||||
|
||||
exe = executable('server', 'main.c', xdg_shell, dependencies : wl_dep) |
||||
|
||||
test('client', exe) |
@ -1,11 +0,0 @@ |
||||
project('wayland-test-local', 'c') |
||||
|
||||
wl_dep = dependency('wayland-client') |
||||
wl_mod = import('unstable-wayland') |
||||
|
||||
xmls = files('test.xml') |
||||
gen = wl_mod.scan_xml(xmls) |
||||
|
||||
exe = executable('local', 'main.c', gen, dependencies : wl_dep) |
||||
|
||||
test('local', exe) |
Loading…
Reference in new issue