Commit 0cd9a67c by Nicolas Capens Committed by Nicolas Capens

Enable running vk-unittests from any directory

By setting LD_LIBRARY_PATH to the directory containing libvk_swiftshader.so, this change enables running vk-unittests from any working directory. Bug: b/128618202 Change-Id: Ib10e4742b90a41d1ef9867b59ce2ccb7394e2b02 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/36811 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent df782a73
...@@ -86,7 +86,8 @@ bool Driver::loadSwiftShader() ...@@ -86,7 +86,8 @@ bool Driver::loadSwiftShader()
#elif OS_LINUX #elif OS_LINUX
return load("./build/Linux/libvk_swiftshader.so") || return load("./build/Linux/libvk_swiftshader.so") ||
load("swiftshader/libvk_swiftshader.so") || load("swiftshader/libvk_swiftshader.so") ||
load("./libvk_swiftshader.so"); load("./libvk_swiftshader.so") ||
load("libvk_swiftshader.so");
#elif OS_ANDROID || OS_FUCHSIA #elif OS_ANDROID || OS_FUCHSIA
return load("libvk_swiftshader.so"); return load("libvk_swiftshader.so");
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment