[igt-dev] [PATCH i-g-t] tests/i915/gem_basic: Added test description for test case.

sai.gowtham.ch at intel.com sai.gowtham.ch at intel.com
Tue Mar 8 04:49:43 UTC 2022


From: Ch Sai Gowtham <sai.gowtham.ch at intel.com>

Added test description to all the available subtests.

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");
 	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");
 	igt_subtest("create-close")
 		test_create_close(fd);
+
+	igt_describe("Check closing fd with an object allocated, category=Gem, category=SW_only");
 	igt_subtest("create-fd-close")
 		test_create_fd_close(fd);
 }
-- 
2.35.1



More information about the igt-dev mailing list