[Swan] Who changed parser.l ????

Wes Hardaker opensource at hardakers.net
Tue Jan 8 18:53:18 EET 2013


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

2) a test suite you can run if you have a tunnel configured from the
   build machine to somewhere else, so you can do "make tunneltests
   TUNNEL=tohere" and have it bring up and down the service.
   + requires a working config
   + requires root

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

I've set up things like that in the past (see the Net-SNMP extensive
test suite as an example), and it's highly beneficial to have the
various test harnesses separated out so you can run only small parts
when needed or the full suite before a release or after major changes, eg.
-- 
Wes Hardaker                                     
My Pictures:  http://capturedonearth.com/
My Thoughts:  http://pontifications.hardakers.net/


More information about the Swan mailing list