summaryrefslogtreecommitdiffstats
path: root/llvm/test/Unit
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-08 19:47:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-08 19:47:36 +0000
commit0f620b81c1755e93eee7b73bbeded23b899038ed (patch)
treeffa7b0d8a3c955078c98da860216081eecafadae /llvm/test/Unit
parentdc3e58eb8993bd1b47c6c46455209efe56dc8c55 (diff)
downloadbcm5719-llvm-0f620b81c1755e93eee7b73bbeded23b899038ed.tar.gz
bcm5719-llvm-0f620b81c1755e93eee7b73bbeded23b899038ed.zip
CMake/lit: Add llvm_{unit_,}site_config parameters, and always pass them when running tests from the project files.
llvm-svn: 90869
Diffstat (limited to 'llvm/test/Unit')
-rw-r--r--llvm/test/Unit/lit.cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Unit/lit.cfg b/llvm/test/Unit/lit.cfg
index 8321593cf71..34372bb6cbe 100644
--- a/llvm/test/Unit/lit.cfg
+++ b/llvm/test/Unit/lit.cfg
@@ -32,6 +32,12 @@ if config.test_exec_root is None:
# configuration hasn't been created by the build system, or we are in an
# out-of-tree build situation).
+ # Check for 'llvm_unit_site_config' user parameter, and use that if available.
+ site_cfg = lit.params.get('llvm_unit_site_config', None)
+ if site_cfg and os.path.exists(site_cfg):
+ lit.load_config(config, site_cfg)
+ raise SystemExit
+
# Try to detect the situation where we are using an out-of-tree build by
# looking for 'llvm-config'.
#
OpenPOWER on IntegriCloud