Add option for skipping the sanitize-address test.
This commit is contained in:
parent
e47a6ebe87
commit
71fc42daf1
|
@ -10,6 +10,7 @@
|
||||||
# tests, in order to run those that are giving errors. The following options
|
# tests, in order to run those that are giving errors. The following options
|
||||||
# do this:
|
# do this:
|
||||||
#
|
#
|
||||||
|
# -noasan skip the test that uses -fsanitize=address
|
||||||
# -nojit skip JIT tests
|
# -nojit skip JIT tests
|
||||||
# -nomain skip the main set of tests
|
# -nomain skip the main set of tests
|
||||||
# -notmp skip the test in a temporary directory
|
# -notmp skip the test in a temporary directory
|
||||||
|
@ -22,6 +23,7 @@
|
||||||
# newline recognition because they don't work. I am hoping to reduce this as
|
# newline recognition because they don't work. I am hoping to reduce this as
|
||||||
# much as possible in due course.
|
# much as possible in due course.
|
||||||
|
|
||||||
|
useasan=1
|
||||||
usejit=1
|
usejit=1
|
||||||
usemain=1
|
usemain=1
|
||||||
usetmp=1
|
usetmp=1
|
||||||
|
@ -30,6 +32,7 @@ verbose=0
|
||||||
|
|
||||||
while [ $# -gt 0 ] ; do
|
while [ $# -gt 0 ] ; do
|
||||||
case $1 in
|
case $1 in
|
||||||
|
-noasan) useasan=0;;
|
||||||
-nojit) usejit=0;;
|
-nojit) usejit=0;;
|
||||||
-nomain) usemain=0;;
|
-nomain) usemain=0;;
|
||||||
-notmp) usetmp=0;;
|
-notmp) usetmp=0;;
|
||||||
|
@ -183,7 +186,8 @@ runtest()
|
||||||
|
|
||||||
testtotal=`expr 20 \* $usemain + \
|
testtotal=`expr 20 \* $usemain + \
|
||||||
1 \* $usetmp + \
|
1 \* $usetmp + \
|
||||||
2 \* $ISGCC \* $usemain + \
|
1 \* $ISGCC \* $usemain + \
|
||||||
|
1 \* $ISGCC \* $usemain \* $useasan + \
|
||||||
13 \* $usejit + \
|
13 \* $usejit + \
|
||||||
\( 3 + 2 \* $usejit \) \* $usevalgrind`
|
\( 3 + 2 \* $usejit \) \* $usevalgrind`
|
||||||
testcount=0
|
testcount=0
|
||||||
|
@ -221,11 +225,13 @@ if [ $ISGCC -ne 0 -a $usemain -ne 0 ]; then
|
||||||
echo "CFLAGS=$CFLAGS"
|
echo "CFLAGS=$CFLAGS"
|
||||||
opts="--disable-shared $enable_jit --enable-pcre2-16 --enable-pcre2-32"
|
opts="--disable-shared $enable_jit --enable-pcre2-16 --enable-pcre2-32"
|
||||||
runtest
|
runtest
|
||||||
|
if [ $useasan -ne 0 ]; then
|
||||||
echo "---------- Maximally configured test with -fsanitize=address ----------"
|
echo "---------- Maximally configured test with -fsanitize=address ----------"
|
||||||
CFLAGS="$OFLAGS $SAVECFLAGS -fsanitize=address"
|
CFLAGS="$OFLAGS $SAVECFLAGS -fsanitize=address"
|
||||||
echo "CFLAGS=$CFLAGS"
|
echo "CFLAGS=$CFLAGS"
|
||||||
opts="--disable-shared $enable_jit --disable-stack-for-recursion --enable-pcre2-16 --enable-pcre2-32"
|
opts="--disable-shared $enable_jit --disable-stack-for-recursion --enable-pcre2-16 --enable-pcre2-32"
|
||||||
runtest
|
runtest
|
||||||
|
fi
|
||||||
CFLAGS="$OFLAGS $SAVECFLAGS"
|
CFLAGS="$OFLAGS $SAVECFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue