2 ------------------------------------
3 strongSwan UML - Running the Tests
4 ------------------------------------
10 1. Starting up the UML testing environment
11 2. Running the automated tests
15 1. Starting up the UML testing environment
16 ---------------------------------------
18 When the strongSwan UML testing environment has been put into place by
19 running the "make-testing" script then you are ready to start up the
20 UML instances by calling
22 ./start-testing <hosts>
24 This main script first calls the subscript
26 scripts/start-switches
28 that starts the three UML switches umlswitch0, umlswitch1, and umlswitch2
29 which are connecting the UML instances among each other and via tun/tap
30 devices also make them accessible from the host system.
32 Then depending on the setting of the UMLSTARTMODE variable defined
33 in "testing.conf", the UML instances given on the command line are started
34 up with different terminals:
36 If you are running the KDE graphical environment then by setting
42 scripts/kstart-umls <hosts>
44 is called which starts up each of the UML instances defined by <hosts> in
51 scripts/xstart-umls <hosts>
53 starts up the UML instances in an xterm each. And with the choice
57 the instances are started up by
59 scripts/start-umls <hosts>
61 in the background but the Linux command "screen -r <host>" can be used to
62 connect a terminal to the UML instance <host> if desired.
65 if [ $ENABLE_DO_TESTS = "yes" ]
70 either executes all the tests defined in the "testing/tests" directory
71 if the variable SELECTEDTESTSONLY in "testing.conf" is set to "no" or the
72 selected tests defined by the string in SELELECTEDTESTS if SELECTEDTESTSONLY
75 if [ $ENABLE_STOP_TESTING = "yes" ]
80 stops the both the UML switches and the UML instances designated by the
84 2. Running the automated tests
85 ---------------------------
89 ./do-tests <testnames>
91 runs the automated tests. With an empty <testnames> argument the tests
92 as defined in "testing.conf" are executed, otherwise the tests enumerated
93 by the <testnames> argument will be run as shown in the example below.
95 ./do-tests net2net-psk net2net-cert
97 Each test is divided into the following phases:
99 * scripts/load-testconfig <testname>
100 loads the UML hosts with test specific settings if such are provided.
102 * next the "pretest.dat" script found in each test directory is executed.
103 Among other commands, strongSwan is started on the IPsec hosts.
105 * the "evaltest.dat" script evaluates if the test has been successful.
107 * the "posttest.dat" script terminates the test e.g. by stopping
108 strongSwan on the IPsec hosts.
110 * scripts/restore-defaults <testname>
111 restores the default settings on the UML hosts.
113 The test results and configuration settings for all tests settings are stored
114 in a folder labeled with the current date in the directory
116 ~/strongswan-testing/testresults
118 the same results are also automatically transferred to the Apache server
119 running on UML instance "winnetou" and can be accessed via the URL
121 http://192.168.0.150/testresults/
127 The greates flexibility can be achieved with manual testing. Just set
130 ENABLE_STOP_TESTING="no"
132 in "testing.conf" and start the UML instances that you want to experiment with
135 ./start-testing <hosts>
137 If you want to preload a test scenario with configurations differing from
138 the default values, e.g. when using Preshared Keys then you can do this
141 scripts/load-testconfig net2net-psk
143 You can then log onto any UML instance using its konsole, xterm or screen
144 terminal as root with the default password
148 You can then execute any commands the UML instances, including changing
149 and recompiling the strongSwan source code located in the /root directory.
151 After you have finished testing, the default configuration settings can
152 restored with the command
154 scripts/restore-defaults net2net-psk
157 -----------------------------------------------------------------------------
159 This file is RCSID $Id: README,v 1.2 2004/12/20 16:26:39 as Exp $