diff options
Diffstat (limited to 'meta-selftest/lib/oeqa/runtime/cases/virgl.py')
-rw-r--r-- | meta-selftest/lib/oeqa/runtime/cases/virgl.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-selftest/lib/oeqa/runtime/cases/virgl.py b/meta-selftest/lib/oeqa/runtime/cases/virgl.py new file mode 100644 index 0000000000..fd6b7851db --- /dev/null +++ b/meta-selftest/lib/oeqa/runtime/cases/virgl.py | |||
@@ -0,0 +1,17 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | ||
2 | from oeqa.core.decorator.depends import OETestDepends | ||
3 | import subprocess | ||
4 | |||
5 | class VirglTest(OERuntimeTestCase): | ||
6 | |||
7 | @OETestDepends(['ssh.SSHTest.test_ssh']) | ||
8 | def test_kernel_driver(self): | ||
9 | status, output = self.target.run('dmesg|grep virgl') | ||
10 | self.assertEqual(status, 0, "Checking for virgl driver in dmesg returned non-zero: %d\n%s" % (status, output)) | ||
11 | self.assertIn("virgl 3d acceleration enabled", output, "virgl acceleration seems to be disabled:\n%s" %(output)) | ||
12 | |||
13 | @OETestDepends(['virgl.VirglTest.test_kernel_driver']) | ||
14 | def test_kmscube(self): | ||
15 | status, output = self.target.run('kmscube', timeout=30) | ||
16 | self.assertEqual(status, 0, "kmscube exited with non-zero status %d and output:\n%s" %(status, output)) | ||
17 | self.assertIn('renderer: "virgl"', output, "kmscube does not seem to use virgl:\n%s" %(output)) | ||