Module: vkd3d Branch: master Commit: 53fd1a95fc53b78b8e60c1bb26560c2401999c9a URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/53fd1a95fc53b78b8e60c1bb26560c...
Author: Giovanni Mascellani gmascellani@codeweavers.com Date: Sat Apr 20 14:12:19 2024 +0200
tests: Allow skipping DXC tests at runtime.
---
tests/shader_runner.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/tests/shader_runner.c b/tests/shader_runner.c index f3b6972f..4a44e3c9 100644 --- a/tests/shader_runner.c +++ b/tests/shader_runner.c @@ -2088,9 +2088,13 @@ static IDxcCompiler3 *dxcompiler_create(void) { DxcCreateInstanceProc create_instance; IDxcCompiler3 *compiler; + const char *skip_dxc; HRESULT hr; void *dll;
+ if ((skip_dxc = getenv("VKD3D_TESTS_SKIP_DXC")) && strcmp(skip_dxc, "") != 0) + return NULL; + dll = vkd3d_dlopen(SONAME_LIBDXCOMPILER); ok(dll, "Failed to load dxcompiler library, %s.\n", vkd3d_dlerror()); if (!dll)