diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-04-26 20:06:50 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-04-27 12:18:32 +0200 |
commit | 4af803d76e4c08ff5661c2b37dbd333f3aba866d (patch) | |
tree | 45af5e9170ed9747be4cb7d41f8bb292182a63c6 /CMakeLists.txt | |
parent | 9ef693edd6c9572c0ab0b1381fe5e65a8430e8fb (diff) |
build: output error messages on test failures
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 52d6262..c6bfec9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.17) include(CheckFunctionExists) include(CheckSymbolExists) @@ -104,6 +104,7 @@ IF(UNIT_TESTING) ENABLE_TESTING() ADD_DEFINITIONS(-DUNIT_TESTING) ADD_SUBDIRECTORY(tests) + LIST(APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure") IF(CMAKE_C_COMPILER_ID STREQUAL "Clang") ADD_EXECUTABLE(ucode-san ${UCODE_SOURCES}) |