diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-10-10 17:27:09 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-10-10 17:27:09 +0000 |
commit | 27c23653aec79e447193281f2f29da15d8bb1bf9 (patch) | |
tree | c019c448c0e39f2303e1d0a50130afd63eab0c9c /lldb/packages/Python/lldbsuite/test/dotest_args.py | |
parent | 2d2cf936ac6c80fdc851fbd489c192e9bd8c4e9a (diff) | |
download | bcm5719-llvm-27c23653aec79e447193281f2f29da15d8bb1bf9.tar.gz bcm5719-llvm-27c23653aec79e447193281f2f29da15d8bb1bf9.zip |
[test] Use a different module cache for Shell and API tests.
Before the test reorganization, everything was part of a single test
suite with a single module cache. Now that things are properly separated
this is no longer the case. Only the shell tests inherited the logic to
properly configure and wipe the module caches. This patch adds that
logic back for the API tests. While doing so, I noticed that we were
configuring a Clang module cache in CMake, but weren't actually using it
from dotest.py. I included a fix for that in this patch as well.
Differential revision: https://reviews.llvm.org/D68755
llvm-svn: 374386
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest_args.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest_args.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest_args.py b/lldb/packages/Python/lldbsuite/test/dotest_args.py index 4922f27c7bf..fd77c7dc88f 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest_args.py +++ b/lldb/packages/Python/lldbsuite/test/dotest_args.py @@ -150,10 +150,15 @@ def create_parser(): default='lldb-test-build.noindex', help='The root build directory for the tests. It will be removed before running.') group.add_argument( - '--module-cache-dir', - dest='module_cache_dir', + '--lldb-module-cache-dir', + dest='lldb_module_cache_dir', metavar='The clang module cache directory used by LLDB', - help='The clang module cache directory used by LLDB. This is not the one used by the makefiles. Defaults to <test build directory>/module-cache-lldb.') + help='The clang module cache directory used by LLDB. Defaults to <test build directory>/module-cache-lldb.') + group.add_argument( + '--clang-module-cache-dir', + dest='clang_module_cache_dir', + metavar='The clang module cache directory used by Clang', + help='The clang module cache directory used in the Make files by Clang while building tests. Defaults to <test build directory>/module-cache-clang.') # Configuration options group = parser.add_argument_group('Remote platform options') |