aboutsummaryrefslogtreecommitdiffstats
path: root/test/lit.cfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit.cfg.py')
-rw-r--r--test/lit.cfg.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/lit.cfg.py b/test/lit.cfg.py
index 9fb5b54..a6a3d24 100644
--- a/test/lit.cfg.py
+++ b/test/lit.cfg.py
@@ -30,7 +30,6 @@ config.test_source_root = os.path.dirname(__file__)
config.test_exec_root = os.path.join(config.standalone_obj_root, 'test')
config.substitutions.append(('%PATH%', config.environment['PATH']))
-config.substitutions.append(('%shlibext', config.llvm_shlib_ext))
llvm_config.with_system_environment(
['HOME', 'INCLUDE', 'LIB', 'TMP', 'TEMP'])
@@ -42,9 +41,6 @@ llvm_config.use_default_substitutions()
# directories.
config.excludes = ['Inputs', 'Examples', 'CMakeLists.txt', 'README.txt', 'LICENSE.txt']
-# test_source_root: The root path where tests are located.
-config.test_source_root = os.path.dirname(__file__)
-
# test_exec_root: The root path where tests should be run.
config.test_exec_root = os.path.join(config.standalone_obj_root, 'test')
config.standalone_tools_dir = os.path.join(config.standalone_obj_root, 'bin')
@@ -54,8 +50,13 @@ llvm_config.with_environment('PATH', config.llvm_tools_dir, append_path=True)
tool_dirs = [config.standalone_tools_dir, config.llvm_tools_dir]
tools = [
+ 'standalone-capi-test',
'standalone-opt',
- 'standalone-translate'
+ 'standalone-translate',
]
llvm_config.add_tool_substitutions(tools, tool_dirs)
+
+llvm_config.with_environment('PYTHONPATH', [
+ os.path.join(config.mlir_obj_dir, 'python_packages', 'standalone'),
+], append_path=True)