From 53fd1a95fc53b78b8e60c1bb26560c2401999c9a Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Sat, 20 Apr 2024 14:12:19 +0200 Subject: [PATCH] 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)