[igt-dev] [PATCH i-g-t] tests/i915/gem_basic: Added test description for test case.
Kamil Konieczny
kamil.konieczny at linux.intel.com
Wed Mar 9 15:35:39 UTC 2022
Hi Sai,
Dnia 2022-03-08 at 10:19:43 +0530, sai.gowtham.ch at intel.com napisał(a):
> From: Ch Sai Gowtham <sai.gowtham.ch at intel.com>
>
> Added test description to all the available subtests.
>
Please send next version as a HAX series, see my reply to your
gem_exec_basic patch.
> Signed-off-by: Ch Sai Gowtham <sai.gowtham.ch at intel.com>
> Cc: Melkaveri Arjun <Arjun.Melkaveri at intel.com>
> Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> ---
> tests/i915/gem_basic.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/tests/i915/gem_basic.c b/tests/i915/gem_basic.c
> index 13ecce52..db6b1682 100644
> --- a/tests/i915/gem_basic.c
> +++ b/tests/i915/gem_basic.c
> @@ -39,6 +39,8 @@
> #include "drm.h"
> #include "i915/gem_create.h"
>
> +IGT_TEST_DESCRIPTION("Tests basic gem_create and gem_close IOCTLs");
> +
> static void
> test_bad_close(int fd)
> {
> @@ -83,10 +85,16 @@ igt_main
> igt_fixture
> fd = drm_open_driver(DRIVER_INTEL);
>
> + igt_describe("Check error on DRM_IOCTL_GEM_CLOSE, category=Gem, category=SW_only");
Make this description short, like
Verify that gem_close fails with bad params.
> igt_subtest("bad-close")
> test_bad_close(fd);
> +
> + igt_describe("Check creating an object using DRM_IOCTL_I915_GEM_CREATE and "
> + " closing it using DRM_IOCTL_GEM_CLOSE, category=Gem, category=SW_only");
Same here, make it short like
Verify basic functionality of gem_create and gem_close.
> igt_subtest("create-close")
> test_create_close(fd);
> +
> + igt_describe("Check closing fd with an object allocated, category=Gem, category=SW_only");
Verify that closing drm driver is possible with opened gem object.
> igt_subtest("create-fd-close")
> test_create_fd_close(fd);
> }
> --
> 2.35.1
>
Regards,
Kamil
More information about the igt-dev
mailing list