changes in testing sub-system: umlplutotest

Michael Richardson <[email protected]> Thu, 20 Feb 2003 14:05:52 -0500
Newsgroups gmane.network.freeswan.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----


In order to write a new test case for co-terminal tunnels, I needed
to have three UMLs under "management" (meaning, I can control the
setup and configuration of them via commands sent to the console)

The current test "umlplutotest" can manage at most two such systems.

I started by generalizing the "2host-test.tcl" to 3, and decided to
do 'X' systems instead. I then rewrote the umlplutotest to actually use
the X-capable test, "Xhost-test.tcl" (Maybe I should called it "Nhost-test")

There are three things which have similar sounding names which may get
confusing:
	1) machines. Names include: east, west, nic, japan, sunrise, sunset.
	2) networks. Names include: east, west, public
	3) managed slots: Names include: EAST, WEST.

Usually, the "EAST" slot contains the "east" machine, which connects to 
the "east" network and the "public" network, but this doesn't have to be
the case. The oe-snat-01 test, for instance, needing only two machines
under management, has:
      EAST=sunset
      WEST=west

I realize that this can be confusing. The Xhost test now has a list. A
test may define:
     XHOST_LIST="EAST WEST FOO BAR"

to create slots by those names. It could equally well be:
   XHOST_LIST="HOST1 HOST2 HOST3 HOST4"


For each host defined, there are five variables that must be set for
Xhost-test.tcl.

	${host}_START		- program to start UML. Usually set
				  for you by functions.sh

	${host}_{INIT,RUN,FINAL}_SCRIPT	  - script to run during init,
				during runtime, and to shutdown the UML.

	REF_${host}_CONSOLE_OUTPUT     - copy of console output to be
				  compared against.


This code is in HEAD, and snapshots, but is not expected to release with
2.00.

]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] [email protected] http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Finger me for keys

iQCVAwUBPlUnDoqHRg3pndX9AQHxzQP9EjHYlqYtm65P4duKCavG+km+TCH1Xe5p
xHsoAIhV49rPAHL9k1QbpwuDvVfCoKoABjuc/pmknpPVRdmg+4zmC49AmXF4LAHf
J3J3HgKilQjNi0QlDBEtUbFS5jvrp9LhUDQXETvSWa5BmNEP4qOtIlXBECllxTw7
G8fH7HQ9N8Y=
=QbZW
-----END PGP SIGNATURE-----