mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 12:50:33 +01:00
test: make litest-test-suite --list YAML-compatible
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1060>
This commit is contained in:
parent
5b5776b148
commit
c123a76b0d
1 changed files with 8 additions and 4 deletions
|
|
@ -4820,17 +4820,21 @@ litest_list_tests(struct list *tests)
|
|||
struct suite *s;
|
||||
const char *last_test_name = NULL;
|
||||
|
||||
printf("groups:\n");
|
||||
list_for_each(s, tests, node) {
|
||||
struct test *t;
|
||||
printf("%s:\n", s->name);
|
||||
printf(" - group: \"%s\"\n", s->name);
|
||||
printf(" tests:\n");
|
||||
list_for_each(t, &s->tests, node) {
|
||||
if (!last_test_name ||
|
||||
!streq(last_test_name, t->name))
|
||||
printf(" %s:\n", t->name);
|
||||
!streq(last_test_name, t->name)) {
|
||||
printf(" - name: \"%s\"\n", t->name);
|
||||
printf(" devices:\n");
|
||||
}
|
||||
|
||||
last_test_name = t->name;
|
||||
|
||||
printf(" %s\n", t->devname);
|
||||
printf(" - name: \"%s\"\n", t->devname);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue