diff mbox series

[35/52] expo: Check the screen contents after rendering

Message ID 20250319145512.2391122-36-sjg@chromium.org
State Superseded
Delegated to: Tom Rini
Headers show
Series expo: Various features and improvements | expand

Commit Message

Simon Glass March 19, 2025, 2:54 p.m. UTC
Make sure that the screen contents are as expected when a scene has been
rendered.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 test/boot/expo.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/test/boot/expo.c b/test/boot/expo.c
index a50e9f721de..ba60267f00c 100644
--- a/test/boot/expo.c
+++ b/test/boot/expo.c
@@ -11,6 +11,7 @@ 
 #include <video.h>
 #include <linux/input.h>
 #include <test/ut.h>
+#include <test/video.h>
 #include "bootstd_common.h"
 #include <test/cedit-test.h>
 #include "../../boot/scene_internal.h"
@@ -645,6 +646,9 @@  static int expo_render_image(struct unit_test_state *uts)
 	ut_assertok(scene_arrange(scn));
 	ut_assertok(expo_render(exp));
 
+	ut_asserteq(10345, video_compress_fb(uts, dev, false));
+	ut_assertok(video_check_copy_fb(uts, dev));
+
 	/* make sure only the preview for the second item is shown */
 	obj = scene_obj_find(scn, ITEM1_PREVIEW, SCENEOBJT_NONE);
 	ut_asserteq(true, obj->flags & SCENEOF_HIDE);