summaryrefslogtreecommitdiff
path: root/tests/testdisplay.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-01-21 16:38:23 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-01-21 21:57:30 +0200
commit34e312999df75d6ac68ca7714b9137df56acc3f8 (patch)
treee211ae348d331ecd763bb0ca3f040b368a7d5e0f /tests/testdisplay.c
parent1c1612bdc36b44a704095e7b0ba5542818ce793f (diff)
tests/testdisplay: Speed up testdisplay for ci
No point in sleeping 5 seconds between each modeset when running in ci. So let's just make the default sleep interval 0 seconds and leave it up to the user to bump it via -s when running interactively. On a KBL + LSPCON + a 4k HDMI display with 36 modes listed: time ./tests/testdisplay - real 3m12,026s - user 0m1,920s - sys 0m1,241s + real 0m14,681s + user 0m3,135s + sys 0m1,340s Cc: Martin Peres <martin.peres@linux.intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r--tests/testdisplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index 9972fb3c..b3657264 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -81,7 +81,7 @@ int drm_fd, modes;
int test_all_modes = 0, test_preferred_mode = 0, force_mode = 0, test_plane,
test_stereo_modes;
uint64_t tiling = LOCAL_DRM_FORMAT_MOD_NONE;
-int sleep_between_modes = 5;
+int sleep_between_modes = 0;
int do_dpms = 0; /* This aliases to DPMS_ON */
uint32_t depth = 24, stride, bpp;
int qr_code = 0;
@@ -525,7 +525,7 @@ static void __attribute__((noreturn)) usage(char *name, char opt)
igt_info("usage: %s [-hiasdpmtf]\n", name);
igt_info("\t-i\tdump info\n");
igt_info("\t-a\ttest all modes\n");
- igt_info("\t-s\t<duration>\tsleep between each mode test\n");
+ igt_info("\t-s\t<duration>\tsleep between each mode test (default: 0)\n");
igt_info("\t-d\t<depth>\tbit depth of scanout buffer\n");
igt_info("\t-p\t<planew,h>,<crtcx,y>,<crtcw,h> test overlay plane\n");
igt_info("\t-m\ttest the preferred mode\n");