]> git.ipfire.org Git - thirdparty/strongswan.git/commit
testing: Add option to run tests without leak detective
authorTobias Brunner <tobias@strongswan.org>
Fri, 15 Aug 2025 16:32:24 +0000 (18:32 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 18 Sep 2025 09:13:32 +0000 (11:13 +0200)
commite9ebe49d44ea342cf645503ab04054364257e75d
tree5f16bdae2565baf3321a8e5a262d04d9a6859e46
parent906205b7ee950a3be99a8869b9ab61678a487172
testing: Add option to run tests without leak detective

This new option allows to disable leak detective to reduce the runtime
during development.  Either only for the command line (swanctl, pki etc.)
or optionally also for the daemon(s).

Disabling leak detective only for the CLI tools already brings a
considerable reduction in runtime (from 48m to 38m on my dev host) as
there are many such calls in the post-test stage.  Any leaks in those
tools are also a lot less of an issue than leaks in the daemon.  So using
this during development should be fine as long as a full test run is done
regularly (in particular before releases).  Disabling leak detective
completely further reduces the runtime (to 30m on my dev host). But that
should probably only be used for functional regression tests after
verifying new code didn't introduce new leaks.

This also fixes the service script which is used for charon-tkm since
16fcdb460afd ("charon-tkm: Don't use starter/stroke with charon-tkm anymore").
testing/do-tests
testing/hosts/default/etc/ssh/sshd_config
testing/hosts/default/usr/local/bin/service
testing/hosts/default/usr/local/bin/systemctl
testing/hosts/default/usr/local/sbin/ipsec [new file with mode: 0755]
testing/scripts/build-guestimages
testing/ssh_config