polserver/cmake/core_tests_start.cmake
turleypol da3f87ff4a
fixed ReloadConfiguration() (#550)
memleak of npc templates, race condition of pol.cfg client settings.
2023-10-16 07:49:14 +02:00

12 lines
336 B
CMake

find_package(Python3 COMPONENTS Interpreter REQUIRED QUIET)
execute_process(
COMMAND ${Python3_EXECUTABLE} ${testdir}/testclient/pyuo/testclient.py
COMMAND ${pol}
COMMAND_ECHO STDOUT
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
RESULT_VARIABLE res
TIMEOUT 600
)
if(NOT "${res}" STREQUAL "0")
message(SEND_ERROR "${res}")
endif()