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

sai.gowtham.ch at intel.com sai.gowtham.ch at intel.com
Tue Feb 2 04:44:30 UTC 2021


From: sai gowtham <sai.gowtham.ch at intel.com>

Added test description to all the available subtests.

Cc: Dec Katarzyna <katarzyna.dec at intel.com>
Cc: Arjun Melkaveri <arjun.melkaveri at intel.com>
Signed-off-by: sai gowtham <sai.gowtham.ch at 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 984bdf60..5605b514 100644
--- a/tests/i915/gem_basic.c
+++ b/tests/i915/gem_basic.c
@@ -39,6 +39,8 @@
 #include "drm.h"
 #include "i915/gem.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.28.0



More information about the igt-dev mailing list