xref: /llvm-project/lldb/test/API/sanity/TestModuleCacheSanity.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
199451b44SJordan Rupprecht"""
299451b44SJordan RupprechtThis is a sanity check that verifies that the module cache path is set
399451b44SJordan Rupprechtcorrectly and points inside the default test build directory.
499451b44SJordan Rupprecht"""
599451b44SJordan Rupprecht
699451b44SJordan Rupprecht
799451b44SJordan Rupprechtimport lldb
899451b44SJordan Rupprechtimport lldbsuite.test.lldbutil as lldbutil
999451b44SJordan Rupprechtfrom lldbsuite.test.lldbtest import *
1099451b44SJordan Rupprecht
1199451b44SJordan Rupprecht
1299451b44SJordan Rupprechtclass ModuleCacheSanityTestCase(TestBase):
1399451b44SJordan Rupprecht    NO_DEBUG_INFO_TESTCASE = True
1499451b44SJordan Rupprecht
1599451b44SJordan Rupprecht    def test(self):
1699451b44SJordan Rupprecht        self.expect(
17*2238dcc3SJonas Devlieghere            "settings show symbols.clang-modules-cache-path",
18*2238dcc3SJonas Devlieghere            substrs=["lldb-test-build.noindex", "module-cache-lldb"],
19*2238dcc3SJonas Devlieghere        )
20