mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
.gitlab-ci.yml: reenable address sanitizer
This disables all the tests that use LD_PRELOAD, and thus limits the test suite on the tests that are run as root. Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -192,3 +192,8 @@ XFAIL_TESTS = $(xfail_scripts)
|
||||
TESTS_ENVIRONMENT = srcdir="$(srcdir)" \
|
||||
top_builddir="$(top_builddir)"
|
||||
|
||||
if DISABLE_ASAN_BROKEN_TESTS
|
||||
TESTS_ENVIRONMENT += DISABLE_ASAN_BROKEN_TESTS=1
|
||||
else
|
||||
TESTS_ENVIRONMENT += DISABLE_ASAN_BROKEN_TESTS=0
|
||||
endif
|
||||
|
||||
@@ -30,12 +30,21 @@ if test -z "${OPENCONNECT}" || ! test -x ${OPENCONNECT};then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test "${DISABLE_ASAN_BROKEN_TESTS}" = 1;then
|
||||
echo "Disabling worker isolation to enable asan"
|
||||
ISOLATE_WORKERS=false
|
||||
fi
|
||||
|
||||
if test -z "$NO_NEED_ROOT";then
|
||||
if test "$(id -u)" != "0";then
|
||||
echo "You need to run this script as root"
|
||||
exit 77
|
||||
fi
|
||||
else
|
||||
if test "${DISABLE_ASAN_BROKEN_TESTS}" = 1;then
|
||||
echo "Skipping test requiring ldpreload"
|
||||
exit 77
|
||||
fi
|
||||
SOCKDIR="${srcdir}/tmp/sockwrap.$$.tmp"
|
||||
mkdir -p $SOCKDIR
|
||||
export SOCKET_WRAPPER_DIR=$SOCKDIR
|
||||
|
||||
Reference in New Issue
Block a user