From: Nidhi Gupta <nidhi1.gupta@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Nidhi Gupta <nidhi1.gupta@intel.com>
Subject: [igt-dev] [PATCH i-g-t] tests/kms_cursor_crc: Optimize the test for simulation
Date: Fri, 6 Oct 2023 10:24:30 +0530 [thread overview]
Message-ID: <20231006045430.4968-1-nidhi1.gupta@intel.com> (raw)
Currently the test is blacklisted in simulation due to
taking more than 1200s which is causing timeout.
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 | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index 76c01f557..38d591b8d 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -879,6 +879,12 @@ 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;
}
}
}
@@ -915,6 +921,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;
}
}
@@ -935,6 +947,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;
}
}
@@ -955,6 +973,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;
}
}
@@ -979,6 +1003,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;
}
@@ -1000,6 +1030,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
next reply other threads:[~2023-10-06 4:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-06 4:54 Nidhi Gupta [this message]
2023-10-06 6:46 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_cursor_crc: Optimize the test for simulation Patchwork
2023-10-06 6:54 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-10-06 17:47 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231006045430.4968-1-nidhi1.gupta@intel.com \
--to=nidhi1.gupta@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox