Skip to content

Introduce names for fixture setups

Pekka Paalanen requested to merge pq/weston:mr/testnames into master

Fixes: #471 (closed)

This adds names for fixture setups, so they can be seen in logs and Gitlab test reports as GL 2 90 rather than fixture 13. The names must be given via static description embedded in the setup data array.

Originally I thought to add names also to the TEST_P array entries, but looking at test programs like https://gitlab.freedesktop.org/wayland/weston/-/blob/9.0.0/tests/viewporter-test.c I started having second thoughts. Using static description here would be painful, so it should be optional, but I'm not sure there much of cases where opting in would be worthwhile. An alternative approach could be to add a new function that a test can call to set a sub-case name.

Merge request reports