summaryrefslogtreecommitdiffstats
path: root/jjb/scripts/vpp/debug-build.sh
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2020-12-04 15:25:45 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-12-04 19:47:47 +0000
commit868d7eb764156c882b7b8a69a45db917290466ae (patch)
tree40e408a9be85e8c4742f6c1e976f5a85afaa1344 /jjb/scripts/vpp/debug-build.sh
parent1c01372a3ddefe84ea755c17347e4ca760af9c1b (diff)
run ASAN within the non-voting VPP debug verify job
Address sanitizer catches a wide range of failures like buffer overruns, etc. So makes sense to run it during the debug test run. However, it is a bit picky to the compiler - currently it only works well only on GCC 8+, so this patch accounts for that by moving the job to 20.04 executor which has gcc-9 by default. Thanks to Benoit for the help getting it working. Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com> Change-Id: If086907d1f20e99503aa0e811fd2ae95c168d731
Diffstat (limited to 'jjb/scripts/vpp/debug-build.sh')
-rw-r--r--jjb/scripts/vpp/debug-build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/jjb/scripts/vpp/debug-build.sh b/jjb/scripts/vpp/debug-build.sh
index e7f18521..a9887340 100644
--- a/jjb/scripts/vpp/debug-build.sh
+++ b/jjb/scripts/vpp/debug-build.sh
@@ -25,11 +25,11 @@ echo "sha1sum of this script: ${0}"
sha1sum $0
# run with ASAN on
-# export VPP_EXTRA_CMAKE_ARGS='-DVPP_ENABLE_SANITIZE_ADDR=ON'
+export VPP_EXTRA_CMAKE_ARGS='-DVPP_ENABLE_SANITIZE_ADDR=ON'
# clang is not working with ASAN right now - see change 27268
-# apparently gcc neither...
-# export CC=gcc
+# also, it does not work with gcc-7, we need gcc-8 at least
+# on ubuntu 20.04 executor the gcc is gcc9
make UNATTENDED=yes install-dep
make UNATTENDED=yes install-ext-deps