File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,11 @@ configure_lit_site_cfg(
15
15
${CMAKE_CURRENT_SOURCE_DIR} /lit.site.cfg.py.in
16
16
${CMAKE_CURRENT_SOURCE_DIR} /lit.cfg.py )
17
17
18
- set (CATALYST_OPT_TEST_DEPENDS
19
- FileCheck
20
- mqt-core-catalyst-plugin
21
- )
18
+ set (CATALYST_OPT_TEST_DEPENDS FileCheck mqt-core-catalyst-plugin )
22
19
23
20
add_lit_testsuite (
24
- check-mqt-core-catalyst-plugin
25
- "Running the mqt-core-catalyst-plugin regression tests"
26
- ${CMAKE_CURRENT_BINARY_DIR}
27
- DEPENDS ${CATALYST_OPT_TEST_DEPENDS}
28
- )
21
+ check-mqt-core-catalyst-plugin "Running the mqt-core-catalyst-plugin regression tests"
22
+ ${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${CATALYST_OPT_TEST_DEPENDS} )
29
23
set_target_properties (check-mqt-core-catalyst-plugin PROPERTIES FOLDER "Tests" EXCLUDE_FROM_ALL ON )
30
24
31
- add_lit_testsuites (CATALYST_OPT ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${CATALYST_OPT_TEST_DEPENDS} )
25
+ add_lit_testsuites (CATALYST_OPT ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${CATALYST_OPT_TEST_DEPENDS} )
Original file line number Diff line number Diff line change 12
12
13
13
This file configures the LLVM LIT testing infrastructure for MLIR dialect tests.
14
14
"""
15
+
15
16
from __future__ import annotations
17
+
16
18
from pathlib import Path
19
+
17
20
import lit .formats
18
21
19
22
config = globals ().get ("config" )
20
23
if config is None :
21
- raise RuntimeError ("LIT config object is missing. Ensure lit.site.cfg.py is loaded first." )
24
+ msg = "LIT config object is missing. Ensure lit.site.cfg.py is loaded first."
25
+ raise RuntimeError (msg )
22
26
23
27
config .name = "MQT MLIR Catalyst Plugin test suite"
24
28
config .test_format = lit .formats .ShTest (execute_external = True )
30
34
# Optional: ensure FileCheck is available if CMake provided a tools dir
31
35
try :
32
36
from lit .llvm import llvm_config
37
+
33
38
if getattr (config , "llvm_tools_dir" , None ):
34
39
llvm_config .with_environment ("PATH" , config .llvm_tools_dir , append_path = True )
35
40
except Exception :
36
41
pass # non-fatal; assume FileCheck is on PATH
37
42
38
43
# Dynamic plugin path substitution (prefers installed wheel; env override supported by the helper)
39
44
from mqt .core .plugins .catalyst import get_catalyst_plugin_abs_path
45
+
40
46
plugin_path = get_catalyst_plugin_abs_path ()
41
- config .substitutions .append (("%mqt_plugin_path%" , str (plugin_path )))
47
+ config .substitutions .append (("%mqt_plugin_path%" , str (plugin_path )))
You can’t perform that action at this time.
0 commit comments