brintos

brintos / llvm-project-archived public Read only

0
0
Text · 792 B · 80af27f Raw
21 lines · plain
1import os2 3import lit.formats4import lit.util5 6config.name = "shtest-readfile"7config.suffixes = [".txt"]8lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")9use_lit_shell = lit.util.pythonize_bool(lit_shell_env)10config.test_format = lit.formats.ShTest(execute_external=not use_lit_shell)11config.test_source_root = None12config.test_exec_root = None13config.substitutions.append(("%{python}", '"%s"' % (sys.executable)))14 15# If we are testing with the external shell, remove the fake-externals from16# PATH so that we use mkdir in the tests.17if 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)21