[Swan] Running KVM test cases, was Re: Who changed parser.l ????

Paul Wouters pwouters at redhat.com
Tue Jan 8 21:38:57 EET 2013


On Tue, 8 Jan 2013, Wes Hardaker wrote:

> Paul Wouters <paul at nohats.ca> writes:
>
>> We do have a test program "ipsec readwrite" and a few test cases that
>> should be using that.
>
> How about if we create a test suite that has a number of different
> sub-suites in it.  EG,
>
> 1) a minimal set that just does config file parsing and other, um,
>   simple tests that doesn't require a complete tunnel setup.
>   + can be run by anyone, no root access required

Those are tests in testing/scripts/readwrite*

> 3) a more extensive one like people have worked on that brings up
>   virtual machines, or something.
>   + requires an emulation environment set up
>   + requires root
>   + is much slower but a much more extensive test suite

Those tests are in testing/pluto/*

Antony and I have been working on bring these tests up (from its orignal
UML base to the current KVM base). It works but is still very rough
at the edges, due to some recent changes, like systemd and its own
core dump handling, 9p filesystem mounts, etc.

But anyone with fedora18beta or better can build the test harnass using:

testing/libvirt/install.sh

and run a test, say basic-pluto-01, by running:

cd testing/pluto/basic-pluto-01
../../utils/do.test.sh

You can manually login to the main two test VMs east and west using ssh
to 192.1.2.23/192.1.2.45. To setup a test within the guest, you can run:

/testing/guestbin/swaninit basic-pluto-01

you can then either run /testing/guestbin/swanrun to start the test (on
the initiator, usually west, not east) or you can look at the control
file in /testing/pluto/basic-pluto-01/westrun.sh and issue those
commands manually to see where it is failing.

If anyone wants help running tests, please come to IRC at #swan on
freenode.

Paul


More information about the Swan mailing list