All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [RFC, i-g-t] Added dynamic Subtest
@ 2020-11-06  9:27 nidhi1.gupta
  2020-11-06  9:34 ` Petri Latvala
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: nidhi1.gupta @ 2020-11-06  9:27 UTC (permalink / raw)
  To: igt-dev; +Cc: Nidhi Gupta

From: Nidhi Gupta <nidhi1.gupta@intel.com>

Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com>
---
 tests/kms_atomic_transition.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index a71bbe10..aa2afe02 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -1025,16 +1025,16 @@ igt_main
 			run_transition_test(&display, pipe, output, TRANSITION_MODESET_DISABLE, false, false);
 
 	for (i = 1; i <= IGT_MAX_PIPES; i++) {
-		igt_subtest_f("%ix-modeset-transitions", i)
+		igt_subtest_with_dynamic_f("%ix-modeset-transitions", i)
 			run_modeset_transition(&display, i, false, false);
 
-		igt_subtest_f("%ix-modeset-transitions-nonblocking", i)
+		igt_subtest_with_dynamic_f("%ix-modeset-transitions-nonblocking", i)
 			run_modeset_transition(&display, i, true, false);
 
-		igt_subtest_f("%ix-modeset-transitions-fencing", i)
+		igt_subtest_with_dynamic_f("%ix-modeset-transitions-fencing", i)
 			run_modeset_transition(&display, i, false, true);
 
-		igt_subtest_f("%ix-modeset-transitions-nonblocking-fencing", i)
+		igt_subtest_with_dynamic_f("%ix-modeset-transitions-nonblocking-fencing", i)
 			run_modeset_transition(&display, i, true, true);
 	}
 
-- 
2.26.2

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [igt-dev] [RFC, i-g-t] Added Dynamic Subtest
@ 2020-12-01  2:32 nidhi1.gupta
  2020-12-01 13:44 ` Petri Latvala
  0 siblings, 1 reply; 8+ messages in thread
From: nidhi1.gupta @ 2020-12-01  2:32 UTC (permalink / raw)
  To: igt-dev; +Cc: Nidhi Gupta

From: Nidhi Gupta <nidhi1.gupta@intel.com>

In kms_plane_scaling have a subtest with 2 pipe it
will execute it weather 2 pipes are available or not.
Later it has to be analysed and discard it as valid skip.
To save this time updated in test to first check the available
outputs and then execute the test
Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com>
---
 tests/kms_plane_scaling.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 89b82416..95be07cc 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -682,6 +682,7 @@ static data_t data;
 igt_main_args("", long_opts, help_str, opt_handler, &data)
 {
 	enum pipe pipe;
+	int count = 0;
 
 	igt_fixture {
 		data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
@@ -717,10 +718,17 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 				igt_dynamic_f("pipe-%s-scaler-with-clipping-clamping", kmstest_pipe_name(pipe))
 					test_scaler_with_clipping_clamping_scenario(&data, pipe, output);
 		}
-	}
 
-	igt_subtest_f("2x-scaler-multi-pipe")
-		test_scaler_with_multi_pipe_plane(&data);
+		igt_subtest_with_dynamic("scaler-multi-pipe") {
+			for_each_pipe_with_single_output(&data.display, pipe, output) {
+				++count;
+			}
+			if (count >= 2) {
+				igt_dynamic_f("2x-scaler-multi-pipe")
+					test_scaler_with_multi_pipe_plane(&data);
+			}
+		}
+	}
 
 	igt_fixture
 		igt_display_fini(&data.display);
-- 
2.26.2

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-12-01 13:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06  9:27 [igt-dev] [RFC, i-g-t] Added dynamic Subtest nidhi1.gupta
2020-11-06  9:34 ` Petri Latvala
2020-11-11  9:42   ` Karthik B S
2020-11-11 10:26     ` Petri Latvala
2020-11-06  9:59 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-11-06 11:54 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2020-12-01  2:32 [igt-dev] [RFC, i-g-t] Added Dynamic Subtest nidhi1.gupta
2020-12-01 13:44 ` Petri Latvala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.