From: nidhi1.gupta@intel.com
To: igt-dev@lists.freedesktop.org
Cc: Nidhi Gupta <nidhi1.gupta@intel.com>, petri.latvala@intel.com
Subject: [igt-dev] [PATCH i-g-t v4] Added dynamic Subtest
Date: Tue, 24 Nov 2020 14:35:00 +0530 [thread overview]
Message-ID: <20201124090500.26953-1-nidhi1.gupta@intel.com> (raw)
From: Nidhi Gupta <nidhi1.gupta@intel.com>
In kms_atomic_transition subtest will test all the
pipes defined in IGT which is 6 weather the output
is 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_atomic_transition.c | 31 +++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index a71bbe10..8a6f935f 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -918,7 +918,7 @@ igt_main
igt_display_t display;
igt_output_t *output;
enum pipe pipe;
- int i;
+ int i, count = 0;
igt_fixture {
display.drm_fd = drm_open_driver_master(DRIVER_ANY);
@@ -1024,18 +1024,29 @@ igt_main
for_each_pipe_with_valid_output(&display, pipe, output)
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)
- run_modeset_transition(&display, i, false, false);
+ for_each_pipe_with_single_output(&display, pipe, output) {
+ count++;
+ }
+ for (i = 1; i <= count; i++) {
+ igt_subtest_with_dynamic("modeset-transition") {
+ igt_dynamic_f("%ix-modeset-transitions", i)
+ run_modeset_transition(&display, i, false, false);
+ }
- igt_subtest_f("%ix-modeset-transitions-nonblocking", i)
- run_modeset_transition(&display, i, true, false);
+ igt_subtest_with_dynamic("modeset-transitions-nonblocking") {
+ igt_dynamic_f("%ix-modeset-transitions-nonblocking", i)
+ run_modeset_transition(&display, i, true, false);
+ }
- igt_subtest_f("%ix-modeset-transitions-fencing", i)
- run_modeset_transition(&display, i, false, true);
+ igt_subtest_with_dynamic("modeset-transitions-fencing") {
+ igt_dynamic_f("%ix-modeset-transitions-fencing", i)
+ run_modeset_transition(&display, i, false, true);
+ }
- igt_subtest_f("%ix-modeset-transitions-nonblocking-fencing", i)
- run_modeset_transition(&display, i, true, true);
+ igt_subtest_with_dynamic("modeset-transitions-nonblocking-fencing") {
+ igt_dynamic_f("%ix-modeset-transitions-nonblocking-fencing", i)
+ run_modeset_transition(&display, i, true, true);
+ }
}
igt_fixture {
--
2.26.2
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2020-11-24 8:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-24 9:05 nidhi1.gupta [this message]
2020-11-24 9:12 ` [igt-dev] ✗ Fi.CI.BUILD: failure for Added dynamic Subtest (rev4) 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=20201124090500.26953-1-nidhi1.gupta@intel.com \
--to=nidhi1.gupta@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@intel.com \
/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 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.