From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8075B10E57F for ; Fri, 13 Oct 2023 01:22:42 +0000 (UTC) From: Nidhi Gupta To: igt-dev@lists.freedesktop.org Date: Fri, 13 Oct 2023 07:01:58 +0530 Message-Id: <20231013013158.16760-1-nidhi1.gupta@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2] tests/kms_cursor_crc: Optimize the test for simulation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nidhi Gupta Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: 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 --- 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 76c01f557..3e3eee171 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -879,6 +879,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; } } } @@ -915,6 +922,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 +948,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 +974,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 +1004,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 +1031,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