Libreswan's Online Documentation
View the Project on GitHub libreswan/libreswan.github.io
SupportThere are two ways to run an individual test. We’ll refer to this as single-test mode.
./kvm check testing/pluto/basic-pluto-01
./kvm check basic-pluto-01 also works.
./kvm from the test directory in questioncd testing/pluto/basic-pluto-01
../../../kvm
../../../kvm diff
In normal mode (i.e., running more than one test) ./kvm performs
additional post-mortem steps as each test completes. These steps
helps to flush out common problems such as core dumps and memory leaks
that often occur while pluto is shutting down. The steps include:
In single-test mode ./kvm skips the post-mortem steps, and instead:
pluto runningThis way, once the test has completed, it is possible to login, look
around, and even debug pluto. Here’s an example where pluto is
shutdown from the debugger:
./kvm sh east
east# ipsec status
east# gdb --pid $(pidof pluto)
(gdb) shell ipsec stop &
(gdb) continue
To force post-mortem when running a single test, add -pm vis:
./kvm check -pm testing/pluto/basic-pluto-01
Alternatively, add
KVM_RUN_POST_MORTEM=true
to Makefile.inc.local.
Think of having ./kvm skip post-mortem in single-test mode as the least worst option.