diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-03-25 11:46:17 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-03-27 10:52:45 +0100 |
commit | 29b7377530b8464c2705b66ce277ce696c12dff9 (patch) | |
tree | 2857e235ece15638f1d125b03c6019c13f2faf17 /scripts/test.sh | |
parent | 58d8c52190c19b24022a1de7bb218f26c8c83c89 (diff) | |
download | strongswan-29b7377530b8464c2705b66ce277ce696c12dff9.tar.bz2 strongswan-29b7377530b8464c2705b66ce277ce696c12dff9.tar.xz |
travis: Run the "all" test case with leak detective enabled
But disable the gcrypt plugin, as it causes leaks.
Also disable the backtraces by libunwind as they seem to cause
threads to get cleaned up after the leak detective already has been
disabled, which leads to invalid free()s.
Diffstat (limited to 'scripts/test.sh')
-rwxr-xr-x | scripts/test.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/test.sh b/scripts/test.sh index 4785d0603..5e95faa92 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -32,6 +32,12 @@ all) --disable-dumm --disable-kernel-pfroute --disable-keychain --disable-lock-profiler --disable-maemo --disable-padlock --disable-osx-attr --disable-tkm --disable-uci" + if test "$LEAK_DETECTIVE" = "yes"; then + # libgcrypt can't be deinitialized + CONFIG="$CONFIG --disable-gcrypt" + # libunwind causes threads to be cleaned up after LD is disabled + CONFIG="$CONFIG --disable-unwind-backtraces" + fi # not enabled on the build server CONFIG="$CONFIG --disable-af-alg" # TODO: enable? perhaps via coveralls.io (cpp-coveralls)? |