From 2489b171c60b98008bfa032fa590b1005a0f9f5d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Nov 2026 09:46:29 +0530 Subject: [PATCH] Add a build check for the OpenGL GPU driver --- kitty_tests/check_build.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kitty_tests/check_build.py b/kitty_tests/check_build.py index 63f21b302..04f64752f 100644 --- a/kitty_tests/check_build.py +++ b/kitty_tests/check_build.py @@ -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