Skip to content

Commit 165d479

Browse files
committedAug 28, 2019
[dotest] Don't try to guess the llvm binary dir.
Now that all supported build systems create a valid dotest.py invocation, we no longer need to guess the directory where any of the llvm tools live. Additionally, the current logic is incomplete: it doesn't try to find any other tools than FileCheck, such as dsymutil for example. If no FileCheck is provided, we should print a warning and skip the tests that need it, but that's not part of this patch. Differential revision: https://reviews.llvm.org/D66893 llvm-svn: 370232
1 parent 0a114b3 commit 165d479

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed
 

‎lldb/packages/Python/lldbsuite/test/dotest.py

-35
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,6 @@ def parseOptionsAndInitTestdirs():
295295
# target. However, when invoking dotest.py directly, a valid --filecheck
296296
# option needs to be given.
297297
configuration.filecheck = os.path.abspath(args.filecheck)
298-
else:
299-
outputPaths = get_llvm_bin_dirs()
300-
for outputPath in outputPaths:
301-
candidatePath = os.path.join(outputPath, 'FileCheck')
302-
if is_exe(candidatePath):
303-
configuration.filecheck = candidatePath
304-
break
305298

306299
if not configuration.get_filecheck_path():
307300
logging.warning('No valid FileCheck executable; some tests may fail...')
@@ -552,34 +545,6 @@ def getOutputPaths(lldbRootDirectory):
552545

553546
return result
554547

555-
def get_llvm_bin_dirs():
556-
"""
557-
Returns an array of paths that may have the llvm/clang/etc binaries
558-
in them, relative to this current file.
559-
Returns an empty array if none are found.
560-
"""
561-
result = []
562-
563-
lldb_root_path = os.path.join(
564-
os.path.dirname(__file__), "..", "..", "..", "..")
565-
paths_to_try = [
566-
"llvm-build/Release+Asserts/x86_64/bin",
567-
"llvm-build/Debug+Asserts/x86_64/bin",
568-
"llvm-build/Release/x86_64/bin",
569-
"llvm-build/Debug/x86_64/bin",
570-
"llvm-build/Ninja-DebugAssert/llvm-macosx-x86_64/bin",
571-
"llvm-build/Ninja-DebugAssert+asan/llvm-macosx-x86_64/bin",
572-
"llvm-build/Ninja-ReleaseAssert/llvm-macosx-x86_64/bin",
573-
"llvm-build/Ninja-ReleaseAssert+asan/llvm-macosx-x86_64/bin",
574-
"llvm-build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin",
575-
"llvm-build/Ninja-RelWithDebInfoAssert+asan/llvm-macosx-x86_64/bin",
576-
]
577-
for p in paths_to_try:
578-
path = os.path.join(lldb_root_path, p)
579-
if os.path.exists(path):
580-
result.append(path)
581-
582-
return result
583548

584549
def setupSysPath():
585550
"""

0 commit comments

Comments
 (0)
Please sign in to comment.