From: Vincent Bernat Date: Thu, 11 Feb 2021 13:21:11 +0000 (+0100) Subject: tests: use electric-fence in addition to sanitizers X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7014ded17eaf020a7e018b6bc48910fcfeedc7f0;p=thirdparty%2Flldpd.git tests: use electric-fence in addition to sanitizers --- diff --git a/tests/ci/install.sh b/tests/ci/install.sh index 7139bdee..08b3cfb6 100755 --- a/tests/ci/install.sh +++ b/tests/ci/install.sh @@ -19,6 +19,7 @@ EOS libsnmp-dev libxml2-dev \ libevent-dev libreadline-dev libbsd-dev \ check libc6-dbg libseccomp-dev \ + electric-fence \ libpcap-dev libcap-dev systemtap-sdt-dev \ snmpd snmp \ python3-pip python3-setuptools python3-wheel diff --git a/tests/ci/run.sh b/tests/ci/run.sh index e1d36f3e..367d3609 100755 --- a/tests/ci/run.sh +++ b/tests/ci/run.sh @@ -43,8 +43,9 @@ case "$(uname -s)" in ;; Linux) # Integration tests + efence="env LD_PRELOAD=/usr/lib/libefence.so EF_DISABLE_BANNER=1 EF_ALLOW_MALLOC_0=1" cd tests/integration - sudo $(which python3) -m pytest -n 5 -vv --boxed || \ - sudo $(which python3) -m pytest -vvv --last-failed --maxfail=5 + sudo ${efence} $(which python3) -m pytest -n 5 -vv --boxed || \ + sudo ${efence} $(which python3) -m pytest -vvv --last-failed --maxfail=5 ;; esac