[PATCH] libosmocore[master]: jenkins.sh: add -fsanitize flags, add 'make check'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Holger Freyther gerrit-no-reply at lists.osmocom.org
Mon Oct 3 10:08:03 UTC 2016


Hello Neels Hofmeyr, Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/978

to look at the new patch set (#3).

jenkins.sh: add -fsanitize flags, add 'make check'

Change-Id: I1692a4730e83b71f2976651993e94de0fe060b8e
---
M contrib/jenkins.sh
1 file changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/78/978/3

diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index e9f63e4..b4eaa18 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -3,8 +3,15 @@
 
 set -ex
 
+export CFLAGS="-fsanitize=address -fsanitize=undefined"
+export CPPFLAGS="-fsanitize=address -fsanitize=undefined"
+export LDFLAGS="-fsanitize=address -fsanitize=undefined"
+export ASAN_OPTIONS="detect_leaks=0"
+export UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1"
+
 autoreconf --install --force
 ./configure --enable-static
-$MAKE $PARALLEL_MAKE
+$MAKE $PARALLEL_MAKE check \
+  || cat-testlogs.sh
 $MAKE distcheck \
   || cat-testlogs.sh

-- 
To view, visit https://gerrit.osmocom.org/978
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I1692a4730e83b71f2976651993e94de0fe060b8e
Gerrit-PatchSet: 3
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list