aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Capens <capn@google.com>2019-10-01 17:21:50 -0400
committerNicolas Capens <nicolascapens@google.com>2019-10-02 01:57:32 +0000
commit0cd9a67ce84f0083fef7aee7e0f3a0e5e59b8053 (patch)
treed3a1ef46e6d4c5dbb6f9eb5d0b8b2453d900b73e
parentdf782a7348d8818a138e6eea28bd5767241143bd (diff)
downloadswiftshader-0cd9a67ce84f0083fef7aee7e0f3a0e5e59b8053.tar.gz
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: Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: Alexis Hétu <sugoi@google.com>
-rw-r--r--tests/VulkanUnitTests/Driver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/VulkanUnitTests/Driver.cpp b/tests/VulkanUnitTests/Driver.cpp
index 047e3942e..0e795e8d5 100644
--- a/tests/VulkanUnitTests/Driver.cpp
+++ b/tests/VulkanUnitTests/Driver.cpp
@@ -86,7 +86,8 @@ bool Driver::loadSwiftShader()
#elif OS_LINUX
return load("./build/Linux/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
return load("libvk_swiftshader.so");
#else