Skip to content

Commit

Permalink
better approach
Browse files Browse the repository at this point in the history
  • Loading branch information
svuckovicTT committed Jan 9, 2025
1 parent be6332d commit 0a2c90a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,26 @@ llvm_canonicalize_cmake_booleans(
MLIR_ENABLE_BINDINGS_PYTHON
)

# Configure into build dir
#
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
MAIN_CONFIG
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
)

# Configure into source dir
#
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py
MAIN_CONFIG
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
)

# Configure into unit tests dir
#
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/unittests/lit.site.cfg.py.in
${CMAKE_CURRENT_BINARY_DIR}/unittests/lit.site.cfg.py
Expand All @@ -35,8 +48,6 @@ add_lit_testsuite(check-ttmlir "Running the ttmlir regression tests"
)
set_target_properties(check-ttmlir PROPERTIES FOLDER "Tests")

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py @ONLY)

add_lit_testsuites(TTMLIRStatic ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${TTMLIR_TEST_DEPENDS})

install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/ DESTINATION test COMPONENT Test EXCLUDE_FROM_ALL)

0 comments on commit 0a2c90a

Please sign in to comment.