[lldb] [lit] Set LD_LIBRARY_PATH or alike for Suite tests
authorMichal Gorny <mgorny@gentoo.org>
Tue, 26 Feb 2019 19:46:29 +0000 (19:46 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Tue, 26 Feb 2019 19:46:29 +0000 (19:46 +0000)
commit6d6afb72b3a2c8b85c3c6e3acd39d96baa6e443e
tree62a31c97438b92dca1bf6bc309de6fced1756913
parent9026404125bcb7b7a3f8e21c5536a1b60e9e07b6
[lldb] [lit] Set LD_LIBRARY_PATH or alike for Suite tests

Set LD_LIBRARY_PATH or local platform's equivalent of it when running
the 'Suite' tests.  This is necessary when running tests inside build
tree with BUILD_SHARED_LIBS enabled, in order to make the LLDB modules
load freshly built LLVM libraries.

The code is copied from clang (test/Unit/lit.cfg).  SHLIBDIR
substitution is added to site-config (already present in top-level LLDB
site-config) to future-proof this into supporting stand-alone builds
with shared LLDB libraries.

Differential Revision: https://reviews.llvm.org/D58610

llvm-svn: 354920
lldb/lit/Suite/lit.cfg
lldb/lit/Suite/lit.site.cfg.in