File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1+ import os
2+
13import lit .llvm
24import lit .util
35
46lit .llvm .initialize (lit_config , config )
57lit .llvm .llvm_config .clang_setup ()
68lit .llvm .llvm_config .use_default_substitutions ()
79
10+ # TODO: Consolidate the logic for turning on the internal shell by default for all LLVM test suites.
11+ # See https://github.com/llvm/llvm-project/issues/106636 for more details.
12+ #
13+ # We prefer the lit internal shell which provides a better user experience on failures
14+ # and is faster unless the user explicitly disables it with LIT_USE_INTERNAL_SHELL=0
15+ # env var.
16+ use_lit_shell = True
17+ lit_shell_env = os .environ .get ("LIT_USE_INTERNAL_SHELL" )
18+ if lit_shell_env :
19+ use_lit_shell = lit .util .pythonize_bool (lit_shell_env )
20+
821config .name = "Clangd"
922config .suffixes = [".test" ]
1023config .excludes = ["Inputs" ]
11- config .test_format = lit .formats .ShTest (not lit . llvm . llvm_config . use_lit_shell )
24+ config .test_format = lit .formats .ShTest (not use_lit_shell )
1225config .test_source_root = config .clangd_source_dir + "/test"
1326config .test_exec_root = config .clangd_binary_dir + "/test"
1427
Original file line number Diff line number Diff line change 55
66# Create a bin directory to store the mock-driver and add it to the path
77# RUN: mkdir -p %t.dir/bin
8- # RUN: %python -c "print(__import__('os').environ['PATH'])" > %t.path
8+ # RUN: %python -c "print(__import__('os').environ['PATH'])" | tr -d '\n' > %t.path
99# RUN: export PATH=%t.dir/bin:%{readfile:%t.path}
1010# Generate a mock-driver that will print %temp_dir%/my/dir and
1111# %temp_dir%/my/dir2 as include search paths.
You can’t perform that action at this time.
0 commit comments