summaryrefslogtreecommitdiff
path: root/cmake/run_test.cmake
blob: c49fb14f763aa070a81e145f76e7a319e4a71e81 (plain)
1
2
3
4
5

execute_process(COMMAND $ENV{TESTS_EXECUTABLE_LOADER} $ENV{TESTS_EXECUTABLE_LOADER_ARGUMENTS} ${TEST_EXECUTABLE} $ENV{TESTS_ARGUMENTS} RESULT_VARIABLE result)
if(NOT "${result}" STREQUAL "0")
    message(FATAL_ERROR "Test failed with return value '${result}'")
endif()