Skip to content

Commit

Permalink
[TESTS] Now using downloaded FileCheck directly without copying it (t…
Browse files Browse the repository at this point in the history
  • Loading branch information
ptillet authored Mar 7, 2023
1 parent e100f8d commit f53d35f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 0 additions & 7 deletions bin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
add_custom_target(copy-FileCheck ALL
COMMAND ${CMAKE_COMMAND} -E copy
"${LLVM_LIBRARY_DIR}/../bin/FileCheck"
"${CMAKE_CURRENT_BINARY_DIR}/FileCheck"
COMMENT "Copying FileCheck to the current directory"
)

get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)

Expand Down
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ configure_lit_site_cfg(

set(TRITON_TEST_DEPENDS
triton-opt
copy-FileCheck
)

set(FILECHECK_PATH "${LLVM_LIBRARY_DIR}/../bin/FileCheck")
set(LIT_ARGS "-Dfilecheck=${FILECHECK_PATH}")
add_lit_testsuite(check-triton-lit-tests "Running the triton regression tests"
${CMAKE_CURRENT_BINARY_DIR}
ARGS ${LIT_ARGS}
DEPENDS ${TRITON_TEST_DEPENDS}
)

Expand Down

0 comments on commit f53d35f

Please sign in to comment.