All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/audio: Add suspend and hibernate tests for HDMI signal integrity
@ 2017-08-29 15:35 Paul Kocialkowski
  2017-08-29 16:50 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paul Kocialkowski @ 2017-08-29 15:35 UTC (permalink / raw)
  To: intel-gfx

This introduces tests for HDMI signal integrity after suspend and
hibernate. They simply test that signal integrity is ensured before
and after suspend or hibernate.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@linux.intel.com>
---
 tests/audio.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/tests/audio.c b/tests/audio.c
index 7fb91c97..560876a3 100644
--- a/tests/audio.c
+++ b/tests/audio.c
@@ -167,8 +167,27 @@ static void test_integrity(const char *device_name)
 	free(data.alsa);
 }
 
+static void test_suspend_resume_integrity(const char *device_name,
+					  enum igt_suspend_state state,
+					  enum igt_suspend_test test)
+{
+	test_integrity(device_name);
+
+	igt_system_suspend_autoresume(state, test);
+
+	test_integrity(device_name);
+}
+
 igt_main
 {
 	igt_subtest("hdmi-integrity")
 		test_integrity("HDMI");
+
+	igt_subtest("hdmi-integrity-after-suspend")
+		test_suspend_resume_integrity("HDMI", SUSPEND_STATE_MEM,
+					      SUSPEND_TEST_NONE);
+
+	igt_subtest("hdmi-integrity-after-hibernate")
+		test_suspend_resume_integrity("HDMI", SUSPEND_STATE_DISK,
+					      SUSPEND_TEST_DEVICES);
 }
-- 
2.14.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-30 18:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-29 15:35 [PATCH i-g-t] tests/audio: Add suspend and hibernate tests for HDMI signal integrity Paul Kocialkowski
2017-08-29 16:50 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-08-29 19:39 ` ✓ Fi.CI.IGT: " Patchwork
2017-08-30 18:42 ` [PATCH i-g-t] " Lyude Paul

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.