* [PATCH i-g-t v3] tests/kms_cursor_crc: Optimize the test for simulation
@ 2023-12-22 6:23 Nidhi Gupta
0 siblings, 0 replies; only message in thread
From: Nidhi Gupta @ 2023-12-22 6:23 UTC (permalink / raw)
To: igt-dev; +Cc: Nidhi Gupta
Restricted the execution of all the subtests to single
pipe to atleast check the basic functionality on
simulation.
Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com>
---
tests/kms_cursor_crc.c | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index f747b919f..b68faf9b3 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -883,6 +883,13 @@ static void run_size_tests(data_t *data, int w, int h)
igt_dynamic_f("pipe-%s-%s",
kmstest_pipe_name(pipe), igt_output_name(data->output))
run_test(data, size_tests[i].testfunc, w, h);
+
+ /*
+ * For simulation env, no need to run
+ * test for each pipe.
+ */
+ if (igt_run_in_simulation())
+ break;
}
}
}
@@ -919,6 +926,12 @@ static void run_tests_on_pipe(data_t *data)
data->output->name)
run_test(data, test_cursor_size,
data->cursor_max_w, data->cursor_max_h);
+ /*
+ * For simulation env, no need to run
+ * test for each pipe.
+ */
+ if (igt_run_in_simulation())
+ break;
}
}
@@ -939,6 +952,12 @@ static void run_tests_on_pipe(data_t *data)
data->output->name)
run_test(data, test_cursor_opaque,
data->cursor_max_w, data->cursor_max_h);
+ /*
+ * For simulation env, no need to run
+ * test for each pipe.
+ */
+ if (igt_run_in_simulation())
+ break;
}
}
@@ -959,6 +978,12 @@ static void run_tests_on_pipe(data_t *data)
data->output->name)
run_test(data, test_cursor_transparent,
data->cursor_max_w, data->cursor_max_h);
+ /*
+ * For simulation env, no need to run
+ * test for each pipe.
+ */
+ if (igt_run_in_simulation())
+ break;
}
}
@@ -983,6 +1008,12 @@ static void run_tests_on_pipe(data_t *data)
data->output->name)
run_test(data, test_crc_random,
data->cursor_max_w, data->cursor_max_h);
+ /*
+ * For simulation env, no need to run
+ * test for each pipe.
+ */
+ if (igt_run_in_simulation())
+ break;
}
data->flags = 0;
}
@@ -1004,6 +1035,12 @@ static void run_tests_on_pipe(data_t *data)
data->output->name)
run_test(data, test_crc_random,
data->cursor_max_w, data->cursor_max_h);
+ /*
+ * For simulation env, no need to run
+ * test for each pipe.
+ */
+ if (igt_run_in_simulation())
+ break;
}
data->flags = 0;
}
--
2.39.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-22 6:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-22 6:23 [PATCH i-g-t v3] tests/kms_cursor_crc: Optimize the test for simulation Nidhi Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox