[igt-dev] [PATCH i-g-t 1/2] prime_self_import: Add description for test
Kamil Konieczny
kamil.konieczny at linux.intel.com
Tue Apr 26 23:20:16 UTC 2022
Hi Priyanka,
On 2022-04-26 at 12:50:48 +0530, priyanka.dandamudi at intel.com wrote:
> From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
>
> Add description for test.
>
> v2: add description to tests[].
>
Lgtm,
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
--
Kamil
> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
> Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> Cc: Arjun Melkaveri <arjun.melkaveri at intel.com>
> ---
> tests/prime_self_import.c | 26 ++++++++++++++++++--------
> 1 file changed, 18 insertions(+), 8 deletions(-)
>
> diff --git a/tests/prime_self_import.c b/tests/prime_self_import.c
> index 38a554396..bf5486194 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();
> }
> --
> 2.25.1
>
More information about the igt-dev
mailing list