From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 94B9910E702 for ; Fri, 11 Aug 2023 18:56:23 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Sat, 12 Aug 2023 00:16:40 +0530 Message-Id: <20230811184655.157060-67-bhanuprakash.modem@intel.com> In-Reply-To: <20230811184655.157060-1-bhanuprakash.modem@intel.com> References: <20230811184655.157060-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V6 66/81] tests/kms_properties: Document each subtest for testplan List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Add documentation for all kms tests which is used by IGT testplan documentation. Signed-off-by: Bhanuprakash Modem Reviewed-by: Swati Sharma --- tests/kms_properties.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/tests/kms_properties.c b/tests/kms_properties.c index 8645808d1..b1fcc56e1 100644 --- a/tests/kms_properties.c +++ b/tests/kms_properties.c @@ -28,6 +28,32 @@ #include #include #include +/** + * TEST: kms properties + * Category: Display + * Description: Test to validate the properties of all planes, crtc and connectors + * + * SUBTEST: %s-properties-%s + * Description: Tests %arg[1] properties with %arg[2] commit + * Driver requirement: any + * Functionality: kms_core + * Mega feature: General Display Features + * Run type: FULL + * Test category: functionality test + * + * arg[1]: + * + * @connector: Connector + * @crtc: CRTC + * @plane: Plane + * @invalid: Invalid (connector/crtc/plane) + * + * arg[2]: + * + * @atomic: atomic + * @legacy: legacy + */ + struct additional_test { const char *name; @@ -687,6 +713,21 @@ static void expect_no_props(int fd, uint32_t obj_type, uint32_t obj_id) igt_assert_neq(drmIoctl(fd, DRM_IOCTL_MODE_OBJ_GETPROPERTIES, &properties), 0); } +/** + * SUBTEST: get_properties-sanity-%s + * Description: Test validates the properties of all planes, crtc and connectors + * with %arg[1] commit + * Driver requirement: any + * Functionality: kms_core + * Mega feature: General Display Features + * Run type: FULL + * Test category: functionality test + * + * arg[1]: + * + * @atomic: atomic + * @non-atomic: legacy + */ static void get_prop_sanity(igt_display_t *display, bool atomic) { int fd = display->drm_fd; -- 2.40.0