diff options
Diffstat (limited to 'py/tests/functest.py')
-rwxr-xr-x | py/tests/functest.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/py/tests/functest.py b/py/tests/functest.py new file mode 100755 index 0000000..836b880 --- /dev/null +++ b/py/tests/functest.py | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/usr/bin/python3 | ||
2 | |||
3 | import pykms | ||
4 | |||
5 | card = pykms.Card() | ||
6 | res = pykms.ResourceManager(card) | ||
7 | conn = res.reserve_connector() | ||
8 | crtc = res.reserve_crtc(conn) | ||
9 | |||
10 | mode = conn.get_default_mode() | ||
11 | |||
12 | fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); | ||
13 | pykms.draw_test_pattern(fb); | ||
14 | |||
15 | crtc.set_mode(conn, fb, mode) | ||
16 | |||
17 | print("OK") | ||
18 | |||