From aefd63d4158cc80f1de909db38f9c97bdb399b75 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 8 Dec 2009 19:47:36 +0000 Subject: CMake/lit: Add llvm_{unit_,}site_config parameters, and always pass them when running tests from the project files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90869 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Unit/lit.cfg | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/Unit') diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg index 8321593cf7..34372bb6cb 100644 --- a/test/Unit/lit.cfg +++ b/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'. # -- cgit v1.2.3