/testing/guestbin/swan-prep --46 --nokey
Creating empty NSS database
west #
 # default is to use WHACK_BASIC_MAGIC
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --shutdown
Pluto is shutting down
west #
 # force shutdown with current WHACK_MAGIC (aka 0) and not
west #
 # WHACK_BASIC_MAGIC
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --shutdown --magic 0
Pluto is shutting down
west #
 # try legacy WHACK_MAGIC=1869114161 from 4.x and 5.0, should fail
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --shutdown --magic 1869114161 | sed -e 's/should be [0-9]*/should be .../'
ignoring message from whack with bad magic 1869114161; should be ...; Mismatched versions of userland tools.
west #
