diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-01-21 17:09:39 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-01-21 17:09:39 +0000 |
commit | c67bb59d455ba20af7453c3cb42f0860664acc07 (patch) | |
tree | 16dcc70ce17d74f74a30af558b1841c70cedf224 | |
parent | 38474aa780b095259b21001d589fb9875de2619d (diff) |
Tweak OptionalTests paths.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94082 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/OptionalTests/lit.cfg | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/utils/OptionalTests/lit.cfg b/utils/OptionalTests/lit.cfg index 47f0a06b37..592c424725 100644 --- a/utils/OptionalTests/lit.cfg +++ b/utils/OptionalTests/lit.cfg @@ -14,4 +14,13 @@ config.name = 'Clang-Opt-Tests' config.suffixes = [] # Reset these from the Clang config. -config.test_source_root = config.test_exec_root = None + +# test_source_root: The root path where tests are located. +config.test_source_root = os.path.dirname(__file__) + +# test_exec_root: The root path where tests should be run. +clang_obj_root = getattr(config, 'clang_obj_root', None) +if clang_obj_root is not None: + config.test_exec_root = os.path.join(clang_obj_root, 'utils', + 'OptionalTests') + |