aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'py/tests/functest.py')
-rwxr-xr-xpy/tests/functest.py18
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
3import pykms
4
5card = pykms.Card()
6res = pykms.ResourceManager(card)
7conn = res.reserve_connector()
8crtc = res.reserve_crtc(conn)
9
10mode = conn.get_default_mode()
11
12fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
13pykms.draw_test_pattern(fb);
14
15crtc.set_mode(conn, fb, mode)
16
17print("OK")
18