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:
parent
9a8bf8555a
commit
5c624f9dda
@ -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')
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user