Print output for failed unit tests

Add arguments so that CTest prints the output of the test if it fails.
This commit is contained in:
Markus Mäkelä 2018-01-02 15:36:39 +02:00
parent 9a8bf8555a
commit 5c624f9dda
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -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