wayland/tests/data
Simon Ser b258d5f361 scanner: add validators for enums
Right now compositors need to manually check that enum values sent
by the client are valid. In particular:

- Check that the value sent by the client is not outside of the enum.
- Check that the version of the enum entry is consistent with the
  object version.

Automatically generate validator functions to perform these tasks.

Signed-off-by: Simon Ser <contact@emersion.fr>
Closes: https://gitlab.freedesktop.org/wayland/wayland/-/issues/104
2024-04-23 09:17:02 +00:00
..
bad-identifier-arg.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-entry.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-enum.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-event.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-interface.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-protocol.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-request.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
empty-client.h util: fix undefined behavior in wl_array_for_each 2024-03-24 20:00:01 -04:00
empty-code.c scanner: add validators for enums 2024-04-23 09:17:02 +00:00
empty-server.h util: fix undefined behavior in wl_array_for_each 2024-03-24 20:00:01 -04:00
empty.xml util: fix undefined behavior in wl_array_for_each 2024-03-24 20:00:01 -04:00
example-client.h doc: fix typo in wl_data_device.data_offer 2022-01-10 10:07:22 +00:00
example-code.c scanner: add validators for enums 2024-04-23 09:17:02 +00:00
example-enum.h tests: add scanner test for enum-header 2024-03-28 13:21:28 +00:00
example-server.h scanner: add validators for enums 2024-04-23 09:17:02 +00:00
example.xml doc: fix typo in wl_data_device.data_offer 2022-01-10 10:07:22 +00:00
README.md build: add a gen-scanner-test target 2024-01-15 14:29:10 +01:00
small-client-core.h scanner: add validators for enums 2024-04-23 09:17:02 +00:00
small-client.h scanner: add validators for enums 2024-04-23 09:17:02 +00:00
small-code-core.c scanner: add validators for enums 2024-04-23 09:17:02 +00:00
small-code.c scanner: add validators for enums 2024-04-23 09:17:02 +00:00
small-private-code.c scanner: add validators for enums 2024-04-23 09:17:02 +00:00
small-server-core.h scanner: add validators for enums 2024-04-23 09:17:02 +00:00
small-server.h scanner: add validators for enums 2024-04-23 09:17:02 +00:00
small.xml scanner: add validators for enums 2024-04-23 09:17:02 +00:00

To re-generate the test data, run:

ninja -C build/ gen-scanner-test