weston/doc/sphinx/toc
Pekka Paalanen d47ae7351a tests: new test listing macros
This is a step towards getting rid of the __start_test_section and
__stop_test_section usage. The old macros assumed that all individual
variables assigned to the test section would be packed there as if in an
array. Mostly this seemed to work, too, with some magical alignment
fixes in the past. It was not guaranteed to work.

With the new test listing macros, we collect an actual array. The
drawback is that we need to mention all the test entry points explicitly
and they look like normal functions in the code - which they now are.
Their argument typing is safe, and their arguments are explicitly
visible. We rely on the compiler to complain about unused functions if
any entry point is forgotten from the array.

The array is still put into the test section, because this seems to be
the only feasible way of letting the harness code support both the old
and new test listing macros at the same time. This allows converting
each test program individually.

TESTFN_ARG() needs an explicit cast on the function pointer type,
because the data argument pointer type will not match const void*.

As an example of using the new macros, linalg-test.c is converted.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2026-05-28 16:29:56 +03:00
..
images doc: update and move IVI-shell README to doc 2022-08-08 14:27:41 +00:00
libweston doc/perfetto: Add a simple perfetto out-of-tree trace config 2026-02-06 16:51:21 +02:00
ivi-shell.rst ivi-shell: Remove black curtain/set output ready in HMI controller 2025-10-27 05:55:51 +00:00
kiosk-shell.rst doc/sphinx/toc/kiosk-shell.rst: Add doc for Xwayland appidis 2024-06-07 12:40:50 +00:00
libweston.rst doc: Fix index.rst still mentioning Weston ref compositor 2026-02-25 11:01:14 +02:00
meson.build doc: update and move IVI-shell README to doc 2022-08-08 14:27:41 +00:00
running-weston.rst libweston: Vulkan renderer 2025-05-23 20:36:05 +01:00
test-suite-api.rst doc: overview of the test suite 2020-01-30 10:10:34 +00:00
test-suite.rst tests: new test listing macros 2026-05-28 16:29:56 +03:00