Run unit tests for each build
The unit tests must pass for the build to successfully continue.
This commit is contained in:
@ -14,6 +14,12 @@ cmake .. $cmake_flags
|
|||||||
export LD_LIBRARY_PATH=$PWD/log_manager:$PWD/query_classifier
|
export LD_LIBRARY_PATH=$PWD/log_manager:$PWD/query_classifier
|
||||||
make
|
make
|
||||||
|
|
||||||
|
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
||||||
|
then
|
||||||
|
# All tests must pass otherwise the build is considered a failure
|
||||||
|
make test || 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')
|
export LD_LIBRARY_PATH=$(for i in `find $PWD/ -name '*.so*'`; do echo $(dirname $i); done|sort|uniq|xargs|sed -e 's/[[:space:]]/:/g')
|
||||||
make package
|
make package
|
||||||
res=$?
|
res=$?
|
||||||
|
@ -12,6 +12,12 @@ cd _build
|
|||||||
cmake .. $cmake_flags
|
cmake .. $cmake_flags
|
||||||
make
|
make
|
||||||
|
|
||||||
|
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
||||||
|
then
|
||||||
|
# All tests must pass otherwise the build is considered a failure
|
||||||
|
make test || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $remove_strip == "yes" ] ; then
|
if [ $remove_strip == "yes" ] ; then
|
||||||
sudo rm -rf /usr/bin/strip
|
sudo rm -rf /usr/bin/strip
|
||||||
sudo touch /usr/bin/strip
|
sudo touch /usr/bin/strip
|
||||||
|
Reference in New Issue
Block a user