Commit a0d11462 authored by Dominik Charousset's avatar Dominik Charousset

Disable OpenSSL module tests when runing with LSAN

parent 35e60d41
...@@ -4,6 +4,7 @@ WorkingDir="$PWD" ...@@ -4,6 +4,7 @@ WorkingDir="$PWD"
UsageString=" UsageString="
$0 build CMAKE_INIT_FILE SOURCE_DIR BUILD_DIR $0 build CMAKE_INIT_FILE SOURCE_DIR BUILD_DIR
OR $0 test BUILD_DIR OR $0 test BUILD_DIR
OR $0 test BUILD_DIR EXCLUDES
OR $0 assert WHAT OR $0 assert WHAT
" "
...@@ -43,12 +44,21 @@ elif [ $# = 2 ]; then ...@@ -43,12 +44,21 @@ elif [ $# = 2 ]; then
if [ "$1" = 'test' ] && [ -d "$2" ]; then if [ "$1" = 'test' ] && [ -d "$2" ]; then
Mode='test' Mode='test'
BuildDir=`makeAbsolute $2` BuildDir=`makeAbsolute $2`
Excludes=""
elif [ "$1" = 'assert' ]; then elif [ "$1" = 'assert' ]; then
Mode='assert' Mode='assert'
What="$2" What="$2"
else else
usage usage
fi fi
elif [ $# = 3 ]; then
if [ "$1" = 'test' ] && [ -d "$2" ]; then
Mode='test'
BuildDir=`makeAbsolute $2`
Excludes="$3"
else
usage
fi
else else
usage usage
fi fi
...@@ -80,9 +90,11 @@ runBuild() { ...@@ -80,9 +90,11 @@ runBuild() {
} }
runTest() { runTest() {
cd "$BuildDir" if [ -z "$Excludes" ]; then
$CTestCommand --output-on-failure $CTestCommand --test-dir "$BuildDir" --output-on-failure
cd "$WorkingDir" else
$CTestCommand --test-dir "$BuildDir" --output-on-failure -E "$Excludes"
fi
} }
runLeakSanitizerCheck() { runLeakSanitizerCheck() {
......
...@@ -10,7 +10,8 @@ debug_build_template: &DEBUG_BUILD_TEMPLATE ...@@ -10,7 +10,8 @@ debug_build_template: &DEBUG_BUILD_TEMPLATE
asan_build_template: &ASAN_BUILD_TEMPLATE asan_build_template: &ASAN_BUILD_TEMPLATE
build_script: .ci/run.sh build .ci/asan-flags.cmake . build build_script: .ci/run.sh build .ci/asan-flags.cmake . build
test_script: .ci/run.sh test build # see GH issue #1396
test_script: .ci/run.sh test build openssl
# CentOS 7 EOL: June 2024 # CentOS 7 EOL: June 2024
centos7_task: centos7_task:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment