Skip to content
Snippets Groups Projects
Commit 3b35e786 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

[#3947] Exit 1 if one test fails

parent 54eaff7a
No related branches found
No related tags found
No related merge requests found
...@@ -4,10 +4,12 @@ ...@@ -4,10 +4,12 @@
# #
# Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com> # Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
set -x
# Compile the daemon # Compile the daemon
pushd sflphone-common pushd sflphone-common
./autogen.sh ./autogen.sh
# Compile pjproject first Compile pjproject first
pushd libs/pjproject pushd libs/pjproject
./autogen.sh ./autogen.sh
./configure ./configure
...@@ -20,7 +22,8 @@ popd ...@@ -20,7 +22,8 @@ popd
# Run the unit tests for the daemon # Run the unit tests for the daemon
pushd sflphone-common/test pushd sflphone-common/test
make check make check
./test --xml # if at least one test failed, exit
./test || exit 1
popd popd
# Compile the client # Compile the client
...@@ -30,4 +33,5 @@ pushd sflphone-client-gnome ...@@ -30,4 +33,5 @@ pushd sflphone-client-gnome
make make
popd popd
# SUCCESS
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment