Debian Codegraph @

llvm/utils/lit/tests/Inputs/shtest-readfile/lit.cfg

raw
1 import os
2
3 import lit.formats
4 import lit.util
5
6 config.name = "shtest-readfile"
7 config.suffixes = [".txt"]
8 lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")
9 use_lit_shell = lit.util.pythonize_bool(lit_shell_env)
10 config.test_format = lit.formats.ShTest(execute_external=not use_lit_shell)
11 config.test_source_root = None
12 config.test_exec_root = None
13 config.substitutions.append(("%{python}", '"%s"' % (sys.executable)))
14
15 # If we are testing with the external shell, remove the fake-externals from
16 # PATH so that we use mkdir in the tests.
17 if not use_lit_shell:
18 path_parts = config.environment["PATH"].split(os.path.pathsep)
19 path_parts = [path_part for path_part in path_parts if "fake-externals" not in path_part]
20 config.environment["PATH"] = os.path.pathsep.join(path_parts)