[igt-dev] [PATCH i-g-t] i915/i915_pm_rpm: Split the planes into dynamic subtests
Chris Wilson
chris at chris-wilson.co.uk
Wed Apr 22 08:10:11 UTC 2020
Use the dynamic subtests to allow the user to individually run the
per-plane rpm tests.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Petri Latvala <petri.latvala at intel.com>
---
tests/i915/i915_pm_rpm.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index 4f8124dc4..2521ae0dc 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -1803,7 +1803,8 @@ static void planes_subtest(bool universal, bool dpms)
type = universal ? get_plane_type(plane->plane_id) :
PLANE_OVERLAY;
- test_one_plane(dpms, plane->plane_id, type);
+ igt_dynamic_f("plane-%d\n", plane->plane_id)
+ test_one_plane(dpms, plane->plane_id, type);
planes_tested++;
}
drmModeFreePlane(plane);
@@ -2062,13 +2063,13 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
cursor_subtest(false);
igt_subtest("cursor-dpms")
cursor_subtest(true);
- igt_subtest("legacy-planes")
+ igt_subtest_with_dynamic("legacy-planes")
planes_subtest(false, false);
- igt_subtest("legacy-planes-dpms")
+ igt_subtest_with_dynamic("legacy-planes-dpms")
planes_subtest(false, true);
- igt_subtest("universal-planes")
+ igt_subtest_with_dynamic("universal-planes")
planes_subtest(true, false);
- igt_subtest("universal-planes-dpms")
+ igt_subtest_with_dynamic("universal-planes-dpms")
planes_subtest(true, true);
/* Misc */
--
2.26.2
More information about the igt-dev
mailing list