2020-06-08 05:29:39 +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_TEST_DEPENDS
|
|
|
|
FileCheck count not
|
|
|
|
npcomp-opt
|
|
|
|
NPCOMPNativePyExt
|
|
|
|
)
|
|
|
|
|
2020-06-08 05:35:58 +08:00
|
|
|
add_lit_testsuite(check-npcomp-pytest-lit "Running npcomp python lit tests"
|
2020-06-08 05:29:39 +08:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
DEPENDS ${NPCOMP_TEST_DEPENDS}
|
|
|
|
)
|
2020-06-08 05:35:58 +08:00
|
|
|
set_target_properties(check-npcomp-pytest-lit PROPERTIES FOLDER "Tests")
|
2020-06-08 05:29:39 +08:00
|
|
|
|
|
|
|
add_lit_testsuites(NPCOMP_PYTEST ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${NPCOMP_TEST_DEPENDS})
|
2020-06-08 05:35:58 +08:00
|
|
|
|
|
|
|
add_dependencies(check-npcomp check-npcomp-pytest-lit)
|