[igt-dev] [PATCH v2 1/4] tests/kms_cursor_edge_walk: Execute only on pipe c
Nidhi Gupta
nidhi1.gupta at intel.com
Wed Feb 8 01:59:56 UTC 2023
As the test execution is taking more time on simulation, limit the
execution to single pipe c as test exercise CHV pipe C cursor fail.
This optimization is for simulation only and hence there will be no
impact on real hardware.
This patch will also provide an option (command line flag '-e') to
execute on all pipes.
Example: ./kms_cursor_edge_walk -e --run-subtest left-edge
v2: If no coverage is missing limit the execution for
real hardware aswell (Ankit)
Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
tests/kms_cursor_edge_walk.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/tests/kms_cursor_edge_walk.c b/tests/kms_cursor_edge_walk.c
index e653b9ab..4a5f34e9 100644
--- a/tests/kms_cursor_edge_walk.c
+++ b/tests/kms_cursor_edge_walk.c
@@ -60,6 +60,8 @@ enum {
EDGE_BOTTOM = 0x8,
};
+static bool extended;
+
static void create_cursor_fb(data_t *data, int cur_w, int cur_h)
{
cairo_t *cr;
@@ -287,6 +289,9 @@ static int opt_handler(int opt, int opt_index, void *_data)
case 'j':
data->jump = true;
break;
+ case 'e':
+ extended = true;
+ break;
default:
return IGT_OPT_HANDLER_ERROR;
}
@@ -300,12 +305,14 @@ static const struct option long_opts[] = {
{ .name = "colored", .val = 'c' },
{ .name = "disable", .val = 'd'},
{ .name = "jump", .val = 'j' },
+ { .name = "extended", .val = 'e' },
{}
};
static const char *help_str =
" --colored\t\tUse a colored cursor (disables CRC checks)\n"
" --disable\t\tDisable the cursor between each step\n"
- " --jump\t\tJump the cursor to middle of the screen between each step)\n";
+ " --jump\t\tJump the cursor to middle of the screen between each step)\n"
+ " -e \t\tExecute test on all pipes\n";
igt_main_args("", long_opts, help_str, opt_handler, &data)
{
@@ -347,6 +354,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
for (i = 0; i < ARRAY_SIZE(tests); i++) {
igt_subtest_with_dynamic(tests[i].name) {
for_each_pipe_with_single_output(&data.display, data.pipe, data.output) {
+ if (data.pipe != PIPE_C && !extended)
+ continue;
for (data.curw = 64; data.curw <= 256; data.curw *= 2) {
data.curh = data.curw;
igt_require(data.curw <= max_curw && data.curh <= max_curh);
--
2.39.0
More information about the igt-dev
mailing list