[igt-dev] [PATCH i-g-t 2/3] tests/kms_feature_discovery: add display-1x test

Swati Sharma swati2.sharma at intel.com
Thu Nov 23 06:44:04 UTC 2023


Add display-1x test to check if we have min 1 display connected.

Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 tests/kms_feature_discovery.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/kms_feature_discovery.c b/tests/kms_feature_discovery.c
index 56da009b7..1baa93f5f 100644
--- a/tests/kms_feature_discovery.c
+++ b/tests/kms_feature_discovery.c
@@ -72,7 +72,7 @@
  * Mega feature: General Display Features
  * Test category: functionality test
  *
- * arg[1].values: 2, 3, 4
+ * arg[1].values: 1, 2, 3, 4
  */
 
 #include "igt.h"
@@ -130,6 +130,11 @@ igt_main {
 				}
 			}
 
+			igt_describe("Make sure that we can use at least 1 output at the same time.");
+			igt_subtest("display-1x") {
+				igt_require(output_count >= 1);
+			}
+
 			igt_describe("Make sure that we can use at least 2 outputs at the same time.");
 			igt_subtest("display-2x") {
 				igt_require(output_count >= 2);
-- 
2.25.1



More information about the igt-dev mailing list