tests/color-representation-drm-test: migrate to DECLARE_TEST_LIST API

Replace TEST_P() macros with explicit static functions and
DECLARE_TEST_LIST() registration for better type safety and to
prepare for removing the custom ELF section.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2026-05-26 14:51:31 +00:00
parent 0c9fc5585a
commit dcf2bdffad

View file

@ -65,8 +65,10 @@ fixture_setup(struct weston_test_harness *harness, const struct setup_args *arg)
}
DECLARE_FIXTURE_SETUP_WITH_ARG(fixture_setup, my_setup_args, meta);
TEST_P(color_representation_drm, color_state_cases) {
const struct color_state *color_state = data;
static enum test_result_code
color_representation_drm(struct wet_testsuite_data *suite_data,
const struct color_state *color_state)
{
const struct setup_args *args = &my_setup_args[get_test_fixture_index()];
return test_color_representation(color_state, args->buffer_type,
@ -74,3 +76,7 @@ TEST_P(color_representation_drm, color_state_cases) {
WESTON_CAPTURE_V1_SOURCE_WRITEBACK,
FB_PRESENTED_ZERO_COPY);
}
DECLARE_TEST_LIST(
TESTFN_ARG(color_representation_drm, color_state_cases),
);