From 5c624f9dda3dd99de33dcb5cbe560e084b4313e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 2 Jan 2018 15:36:39 +0200 Subject: [PATCH] Print output for failed unit tests Add arguments so that CTest prints the output of the test if it fails. --- BUILD/build_deb_local.sh | 2 +- BUILD/build_rpm_local.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD/build_deb_local.sh b/BUILD/build_deb_local.sh index 13b8bab1d..dd69bd818 100755 --- a/BUILD/build_deb_local.sh +++ b/BUILD/build_deb_local.sh @@ -17,7 +17,7 @@ make if [[ "$cmake_flags" =~ "BUILD_TESTS" ]] then # All tests must pass otherwise the build is considered a failure - make test || exit 1 + ctest --output-on-failure || exit 1 fi export LD_LIBRARY_PATH=$(for i in `find $PWD/ -name '*.so*'`; do echo $(dirname $i); done|sort|uniq|xargs|sed -e 's/[[:space:]]/:/g') diff --git a/BUILD/build_rpm_local.sh b/BUILD/build_rpm_local.sh index ab28f06e0..39006c778 100755 --- a/BUILD/build_rpm_local.sh +++ b/BUILD/build_rpm_local.sh @@ -15,7 +15,7 @@ make if [[ "$cmake_flags" =~ "BUILD_TESTS" ]] then # All tests must pass otherwise the build is considered a failure - make test || exit 1 + ctest --output-on-failure || exit 1 fi if [ $remove_strip == "yes" ] ; then