From 9a73a9ce490cf036905041012c1df448f0c1e1ed Mon Sep 17 00:00:00 2001 From: Priyanka Dandamudi Date: Tue, 26 Apr 2022 12:50:48 +0530 Subject: prime_self_import: Add description for test Add description for test. v2: add description to tests[]. Signed-off-by: Priyanka Dandamudi Cc: Kamil Konieczny Cc: Arjun Melkaveri Reviewed-by: Kamil Konieczny --- tests/prime_self_import.c | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'tests/prime_self_import.c') diff --git a/tests/prime_self_import.c b/tests/prime_self_import.c index 38a55439..bf548619 100644 --- a/tests/prime_self_import.c +++ b/tests/prime_self_import.c @@ -429,19 +429,29 @@ igt_main struct { const char *name; void (*fn)(void); + const char *describe; } tests[] = { - { "basic-with_one_bo", test_with_one_bo }, - { "basic-with_one_bo_two_files", test_with_one_bo_two_files }, - { "basic-with_two_bos", test_with_two_bos }, - { "basic-with_fd_dup", test_with_fd_dup }, - { "export-vs-gem_close-race", test_export_close_race }, - { "reimport-vs-gem_close-race", test_reimport_close_race }, - { "basic-llseek-size", test_llseek_size }, - { "basic-llseek-bad", test_llseek_bad }, + { "basic-with_one_bo", test_with_one_bo, + "Check prime import/export with one buffer object." }, + { "basic-with_one_bo_two_files", test_with_one_bo_two_files, + "Check prime/flink with one buffer object." }, + { "basic-with_two_bos", test_with_two_bos, + "Check prime import/export with two buffer objects."}, + { "basic-with_fd_dup", test_with_fd_dup, + "Check prime export with duplicate fd."}, + { "export-vs-gem_close-race", test_export_close_race, + "Check race of gem close against prime export." }, + { "reimport-vs-gem_close-race", test_reimport_close_race, + "Check race of gem close against reimport." }, + { "basic-llseek-size", test_llseek_size, + "Check dmabuf llseek support." }, + { "basic-llseek-bad", test_llseek_bad, + "Check dmabuf llseek support with invalid values."}, }; int i; for (i = 0; i < ARRAY_SIZE(tests); i++) { + igt_describe(tests[i].describe); igt_subtest(tests[i].name) tests[i].fn(); } -- cgit v1.2.3