Changeset View
Changeset View
Standalone View
Standalone View
src/iguana/CMakeLists.txt
Show All 29 Lines | |||||
endif() | endif() | ||||
add_to_symbols_check(iguana) | add_to_symbols_check(iguana) | ||||
add_to_security_check(iguana) | add_to_security_check(iguana) | ||||
install_target(iguana EXCLUDE_FROM_ALL) | install_target(iguana EXCLUDE_FROM_ALL) | ||||
find_package(Python COMPONENTS Interpreter) | find_package(Python COMPONENTS Interpreter) | ||||
add_custom_target(check-iguana | |||||
COMMAND | include(TestSuite) | ||||
add_test_custom_target(check-iguana | |||||
TEST_COMMAND | |||||
"${CMAKE_COMMAND}" | "${CMAKE_COMMAND}" | ||||
-E env | -E env | ||||
IGUANA_BIN="${CMAKE_CURRENT_BINARY_DIR}/iguana" | IGUANA_BIN="${CMAKE_CURRENT_BINARY_DIR}/iguana" | ||||
CMAKE_PROJECT_VERSION="${CMAKE_PROJECT_VERSION}" | CMAKE_PROJECT_VERSION="${CMAKE_PROJECT_VERSION}" | ||||
PYTHONPATH="${CMAKE_SOURCE_DIR}/test/functional" | PYTHONPATH="${CMAKE_SOURCE_DIR}/test/functional" | ||||
"${Python_EXECUTABLE}" | "${Python_EXECUTABLE}" | ||||
-m pytest | -m pytest | ||||
-v | -q | ||||
CUSTOM_TARGET_ARGS | |||||
COMMENT "Running iguana test suite..." | |||||
WORKING_DIRECTORY | WORKING_DIRECTORY | ||||
"${CMAKE_CURRENT_SOURCE_DIR}" | "${CMAKE_CURRENT_SOURCE_DIR}" | ||||
DEPENDS | DEPENDS | ||||
iguana | iguana | ||||
) | ) | ||||
add_dependencies(check check-iguana) |