diff options
author | Priyanka Dandamudi <priyanka.dandamudi@intel.com> | 2022-04-26 12:50:48 +0530 |
---|---|---|
committer | Zbigniew KempczyĆski <zbigniew.kempczynski@intel.com> | 2022-04-29 09:48:13 +0200 |
commit | 9a73a9ce490cf036905041012c1df448f0c1e1ed (patch) | |
tree | dfc5ab3562b6ce080c7bdfb32aafc7e7a512b654 /tests/prime_self_import.c | |
parent | daba4819a870e079a0766901b58b7681cd1f32fc (diff) |
prime_self_import: Add description for test
Add description for test.
v2: add description to tests[].
Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: Arjun Melkaveri <arjun.melkaveri@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'tests/prime_self_import.c')
-rw-r--r-- | tests/prime_self_import.c | 26 |
1 files changed, 18 insertions, 8 deletions
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(); } |