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:
@ -17,7 +17,7 @@ make
|
|||||||
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
||||||
then
|
then
|
||||||
# All tests must pass otherwise the build is considered a failure
|
# All tests must pass otherwise the build is considered a failure
|
||||||
make test || exit 1
|
ctest --output-on-failure || exit 1
|
||||||
fi
|
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')
|
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" ]]
|
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
||||||
then
|
then
|
||||||
# All tests must pass otherwise the build is considered a failure
|
# All tests must pass otherwise the build is considered a failure
|
||||||
make test || exit 1
|
ctest --output-on-failure || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $remove_strip == "yes" ] ; then
|
if [ $remove_strip == "yes" ] ; then
|
||||||
|
Reference in New Issue
Block a user