File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 2
2
from contextlib import contextmanager
3
3
from includes import *
4
4
5
+ SANITIZER = os .getenv ('SANITIZER' , '' ) # typically 'address' or 'memory'
6
+ VALGRIND = os .getenv ('VALGRIND' , '0' ) == '1'
7
+ CODE_COVERAGE = os .getenv ('CODE_COVERAGE' , '0' ) == '1'
8
+
5
9
MEMINFO = os .getenv ('MEMINFO' , '0' ) == '1'
6
10
SERDE_JSON = os .getenv ('SERDE_JSON' , '0' ) == '1'
7
11
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def __del__(self):
30
30
def testKeys (self ):
31
31
env = self .env
32
32
env .skipOnCluster ()
33
- if env .useAof or env .useSlaves :
33
+ if env .useAof or env .useSlaves or SANITIZER != '' :
34
34
env .skip ()
35
35
36
36
def add_and_check (title ):
@@ -60,7 +60,7 @@ def delete():
60
60
def testFields (self ):
61
61
env = self .env
62
62
env .skipOnCluster ()
63
- if env .useAof or env .useSlaves :
63
+ if env .useAof or env .useSlaves or SANITIZER != '' :
64
64
env .skip ()
65
65
66
66
def add_and_check (title ):
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ install_git_lfs() {
54
54
55
55
setup_redis_server () {
56
56
if [[ -n $SAN ]]; then
57
- if [[ $SAN == addr || $SAN == address ]]; then
57
+ if [[ $SAN == address ]]; then
58
58
REDIS_SERVER=${REDIS_SERVER:- redis-server-asan-6.2}
59
59
if ! command -v $REDIS_SERVER > /dev/null; then
60
60
echo Building Redis for clang-asan ...
@@ -64,7 +64,7 @@ setup_redis_server() {
64
64
export ASAN_OPTIONS=detect_odr_violation=0
65
65
# :detect_leaks=0
66
66
67
- elif [[ $SAN == mem || $SAN == memory ]]; then
67
+ elif [[ $SAN == memory ]]; then
68
68
REDIS_SERVER=${REDIS_SERVER:- redis-server-msan-6.2}
69
69
if ! command -v $REDIS_SERVER > /dev/null; then
70
70
echo Building Redis for clang-msan ...
@@ -92,6 +92,8 @@ setup_redis_server() {
92
92
# ----------------------------------------------------------------------------------------------
93
93
94
94
valgrind_config () {
95
+ export VALGRIND=1 # for RLTest
96
+
95
97
export VG_OPTIONS="
96
98
-q \
97
99
--leak-check=full \
245
247
246
248
export OS=$( $READIES /bin/platform --os)
247
249
250
+ if [[ -n $SAN ]]; then
251
+ # for RLTest
252
+ export SANITIZER=" $SAN "
253
+ fi
254
+
248
255
# ----------------------------------------------------------------------------------------------
249
256
250
257
cd $ROOT /tests/pytest
You can’t perform that action at this time.
0 commit comments