]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: use electric-fence in addition to sanitizers feature/electric-fence
authorVincent Bernat <vincent@bernat.ch>
Thu, 11 Feb 2021 13:21:11 +0000 (14:21 +0100)
committerVincent Bernat <vincent@bernat.ch>
Thu, 11 Feb 2021 13:28:47 +0000 (14:28 +0100)
tests/ci/install.sh
tests/ci/run.sh

index 7139bdeeaff90ca4b7c063cbff2629480ef0490e..08b3cfb6cf21004a026858314b9d801201848e30 100755 (executable)
@@ -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
index e1d36f3ecb95bca6ba4fd35a5d45d41aa668c9d7..367d36093a0551ed190834c35075b84ad9907baf 100755 (executable)
@@ -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