mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-19 14:45:29 +00:00
Add a build check for the OpenGL GPU driver
This commit is contained in:
parent
b8c266a0d4
commit
2489b171c6
1 changed files with 11 additions and 0 deletions
|
|
@ -150,6 +150,17 @@ class TestBuild(BaseTest):
|
|||
self.assertTrue(os.path.isfile(path), f'{path} is not a file')
|
||||
self.assertTrue(os.access(path, os.X_OK), f'{path} is not executable')
|
||||
|
||||
def test_gpu_drivers(self) -> None:
|
||||
from kitty.constants import gpu_driver_path
|
||||
|
||||
path = gpu_driver_path('opengl')
|
||||
self.assertTrue(os.path.isfile(path), f'{path} is not a file')
|
||||
self.assertTrue(os.access(path, os.X_OK), f'{path} is not executable')
|
||||
import ctypes
|
||||
|
||||
lib = ctypes.CDLL(path)
|
||||
self.assertTrue(hasattr(lib, 'kitty_gpu_driver_load'), f'{path} does not export kitty_gpu_driver_load')
|
||||
|
||||
def test_all_kitten_names(self) -> None:
|
||||
from kittens.runner import all_kitten_names
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue