From bd1b89a35425af653b0dc017cd0bbb22669213b7 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Thu, 7 Feb 2019 17:43:39 +0000 Subject: [PATCH] all.sh: Enable verbose failure messages for CMake Set the CMake-observed variable `CTEST_OUTPUT_ON_FAILURE`, so that when a "make test" run by CMake fails, verbose test output about the detail of failure is available. Signed-off-by: Gilles Peskine --- tests/scripts/all.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 1184119e7..07ff62da7 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -185,6 +185,9 @@ pre_initialize_variables () { export MAKEFLAGS="-j" fi + # Include more verbose output for failing tests run by CMake + export CTEST_OUTPUT_ON_FAILURE=1 + # CFLAGS and LDFLAGS for Asan builds that don't use CMake ASAN_CFLAGS='-Werror -Wall -Wextra -fsanitize=address,undefined -fno-sanitize-recover=all'