Fix check for unit tests in scripts
This commit is contained in:
@ -14,7 +14,7 @@ cmake .. $cmake_flags
|
|||||||
export LD_LIBRARY_PATH=$PWD/log_manager:$PWD/query_classifier
|
export LD_LIBRARY_PATH=$PWD/log_manager:$PWD/query_classifier
|
||||||
make || exit 1
|
make || exit 1
|
||||||
|
|
||||||
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
if [[ "$cmake_flags" =~ "BUILD_TESTS=Y" ]]
|
||||||
then
|
then
|
||||||
# We don't care about memory leaks in the tests (e.g. servers are never freed)
|
# We don't care about memory leaks in the tests (e.g. servers are never freed)
|
||||||
export ASAN_OPTIONS=detect_leaks=0
|
export ASAN_OPTIONS=detect_leaks=0
|
||||||
|
|||||||
@ -12,7 +12,7 @@ cd _build
|
|||||||
cmake .. $cmake_flags
|
cmake .. $cmake_flags
|
||||||
make || exit 1
|
make || exit 1
|
||||||
|
|
||||||
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
if [[ "$cmake_flags" =~ "BUILD_TESTS=Y" ]]
|
||||||
then
|
then
|
||||||
# We don't care about memory leaks in the tests (e.g. servers are never freed)
|
# We don't care about memory leaks in the tests (e.g. servers are never freed)
|
||||||
export ASAN_OPTIONS=detect_leaks=0
|
export ASAN_OPTIONS=detect_leaks=0
|
||||||
|
|||||||
Reference in New Issue
Block a user