[Lldb-commits] [PATCH] D68755: [test] Use a different module cache for Shell and API tests.
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 9 18:22:56 PDT 2019
JDevlieghere created this revision.
JDevlieghere added reviewers: aprantl, labath.
Herald added subscribers: teemperor, mgorny.
Herald added a project: LLDB.
JDevlieghere added a reviewer: friss.
JDevlieghere marked an inline comment as done.
JDevlieghere added inline comments.
================
Comment at: lldb/packages/Python/lldbsuite/test/make/Makefile.rules:316
-# Use a shared module cache when building in the default test build directory.
-CLANG_MODULE_CACHE_DIR := $(shell echo "$(BUILDDIR)" | sed $(QUOTE)s/lldb-test-build.noindex.*/lldb-test-build.noindex\/module-cache-clang/$(QUOTE))
----------------
We should have a fallback here that defaults to `$(BUILDDIR)/module-cache` if the variable is not set in the environment.
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.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D68755
Files:
lldb/packages/Python/lldbsuite/test/configuration.py
lldb/packages/Python/lldbsuite/test/dotest.py
lldb/packages/Python/lldbsuite/test/dotest_args.py
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/packages/Python/lldbsuite/test/make/Makefile.rules
lldb/test/API/lit.cfg
lldb/test/API/lit.site.cfg.in
lldb/test/CMakeLists.txt
lldb/test/Shell/lit.cfg.py
lldb/test/Shell/lit.site.cfg.py.in
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68755.224224.patch
Type: text/x-patch
Size: 10652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191010/ac2eff06/attachment.bin>
More information about the lldb-commits
mailing list