summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-18 19:52:26 -0700
committerSimon Glass <sjg@chromium.org>2016-01-20 19:10:16 -0700
commit3c97c4fb52af9d4da4546cbb8a52bdb6f0d4b57f (patch)
tree3c8c5df8e8f2a1eed705ef2ae350767333f9c8c8 /include/dm
parent3ade5bc4dc24edf5e1f13f3c43a9e8b7f8c2d853 (diff)
dm: video: test: Add tests for the video uclass
Add tests that check that the video console is working correcty. Also check that text output produces the expected result. Test coverage includes character output, wrapping and scrolling. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/test.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dm/test.h b/include/dm/test.h
index a4bc5c8404a..ca924d9237b 100644
--- a/include/dm/test.h
+++ b/include/dm/test.h
@@ -155,6 +155,14 @@ enum {
/* Declare a new driver model test */
#define DM_TEST(_name, _flags) UNIT_TEST(_name, _flags, dm_test)
+/* This platform data is needed in tests, so declare it here */
+struct sandbox_sdl_plat {
+ int xres;
+ int yres;
+ int bpix;
+ int rot;
+};
+
/* Declare ping methods for the drivers */
int test_ping(struct udevice *dev, int pingval, int *pingret);
int testfdt_ping(struct udevice *dev, int pingval, int *pingret);