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