2020-04-27 08:55:15 +08:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
set(NPCOMP_OPT_TEST_DEPENDS
|
|
|
|
FileCheck count not
|
|
|
|
npcomp-opt
|
2020-05-29 07:41:36 +08:00
|
|
|
npcomp-run-mlir
|
2020-04-27 08:55:15 +08:00
|
|
|
)
|
|
|
|
|
2020-05-29 07:41:36 +08:00
|
|
|
# TODO: Rename this to just check-npcomp, now that npcomp-run-mlir exists
|
|
|
|
# too.
|
2020-04-27 08:55:15 +08:00
|
|
|
add_lit_testsuite(check-npcomp-opt "Running the npcomp-opt regression tests"
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
DEPENDS ${NPCOMP_OPT_TEST_DEPENDS}
|
|
|
|
)
|
|
|
|
set_target_properties(check-npcomp-opt PROPERTIES FOLDER "Tests")
|
|
|
|
|
|
|
|
add_lit_testsuites(NPCOMP_OPT ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${NPCOMP_OPT_TEST_DEPENDS})
|