2 # Global configuration file for strongswan UML testing.
4 # Copyright (C) 2004 Eric Marchionni, Patrik Rayo
5 # Zuercher Hochschule Winterthur
7 # This program is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by the
9 # Free Software Foundation; either version 2 of the License, or (at your
10 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 # RCSID $Id: testing.conf,v 1.52 2006/04/24 16:58:03 as Exp $
19 # Root directory of testing
20 UMLTESTDIR=~/strongswan-testing
22 # Bzipped kernel sources
23 # (file extension .tar.bz2 required)
24 KERNEL=$UMLTESTDIR/linux-2.6.16.19.tar.bz2
26 # Extract kernel version
27 KERNELVERSION=`basename $KERNEL .tar.bz2 | sed -e 's/linux-//'`
29 # Kernel configuration file
30 KERNELCONFIG=$UMLTESTDIR/.config-2.6.16
32 # Bzipped uml patch for kernel
33 # (not needed anymore for 2.6.9 kernel or higher)
36 # Bzipped source of strongSwan
37 STRONGSWAN=$UMLTESTDIR/strongswan-4.0.1.tar.bz2
39 # strongSwan compile options (use "yes" or "no")
43 # Gentoo linux root filesystem
44 ROOTFS=$UMLTESTDIR/gentoo-fs-20060330.tar.bz2
46 # Size of the finished root filesystem in MB
49 # Amount of Memory to use per UML [MB].
50 # If "auto" is stated 1/12 of total host ram will be used.
51 # Examples: MEM=64, MEM="128", MEM="auto"
54 # Directory where the UML kernels and file system will be built
55 BUILDDIR=$UMLTESTDIR/umlbuild
57 # Filename of the built UML Kernel
58 UMLKERNEL=$BUILDDIR/linux-uml-$KERNELVERSION
60 # Directory where test results will be stored
61 TESTRESULTSDIR=$UMLTESTDIR/testresults
63 # Timezone for the UMLs, look in /usr/share/zoneinfo!
66 ##############################################################
67 # Enable particular steps in the make-testing and
68 # start-testing scripts
70 ENABLE_BUILD_UMLKERNEL="yes"
71 ENABLE_BUILD_SSHKEYS="yes"
72 ENABLE_BUILD_HOSTCONFIG="yes"
73 ENABLE_BUILD_UMLROOTFS="yes"
74 ENABLE_BUILD_UMLHOSTFS="yes"
75 ENABLE_START_TESTING="yes"
77 ENABLE_STOP_TESTING="no"
79 ##############################################################
80 # How to start the UMLs?
82 # Start the UML instance in KDE konsole (requires KDE)
83 UMLSTARTMODE="konsole"
84 # Start the UML instance in an xterm (requires X11R6)
85 # UMLSTARTMODE="xterm"
86 # Start the UML instance without a terminal window
87 # but screen -r <host> can open a window anytime
88 # UMLSTARTMODE="screen"
90 ##############################################################
91 # If set to "yes" only the tests stated at $SELECTEDTESTS
92 # will be executed. (use "yes" or "no")
94 SELECTEDTESTSONLY="no"
96 # Tests to do if $SELECTEDTESTSONLY is set "yes".
98 SELECTEDTESTS="net2net-cert"
100 ##############################################################
101 # hostname and corresponding IPv4 and IPv6 addresses
102 # You may change the IPs but keep them in the same subnet,
103 # this means retain the netmasks!
104 # Also don't use IPs ending with 254, they are reserved!
109 moon,192.168.0.1,10.1.0.1 \
110 carol,192.168.0.100,10.3.0.1 \
111 winnetou,192.168.0.150 \
112 dave,192.168.0.200,10.3.0.2 \
113 sun,192.168.0.2,10.2.0.1 \
119 moon,fec0::1,fec1::1 \
120 carol,fec0::10,fec3::1 \
122 dave,fec0::20,fec3::2 \
123 sun,fec0::2,fec2::1 \
126 ##############################################################
127 # VPN gateways / clients
128 # The hosts stated here will be created. Possible values
129 # are sun, moon, dave, carol, alice, venus, bob, winnetou.
130 # It's fine to make them all unless you don't have much
131 # ressources. In this case we assume you know what you do!
133 STRONGSWANHOSTS="sun moon dave carol alice venus bob winnetou"
135 ##############################################################
136 # Needed programs, do not change!
138 PROGRAMS="uml_switch uml_mconsole ssh ssh-keygen iptables \
139 chroot screen mkreiserfs"
141 ##############################################################
142 # IP parameters of the UML switches
144 IFCONFIG_0="192.168.0.254 netmask 255.255.255.0"
145 IFCONFIG_1="10.1.0.254 netmask 255.255.0.0"
146 IFCONFIG_2="10.2.0.254 netmask 255.255.0.0"
148 ##############################################################
149 # Network interfaces of the UML instances
151 SWITCH_alice="eth0=daemon,,unix,/tmp/umlswitch1"
152 SWITCH_venus="eth0=daemon,,unix,/tmp/umlswitch1"
153 SWITCH_moon="eth0=daemon,,unix,/tmp/umlswitch0 \
154 eth1=daemon,,unix,/tmp/umlswitch1"
155 SWITCH_carol="eth0=daemon,,unix,/tmp/umlswitch0"
156 SWITCH_winnetou="eth0=daemon,,unix,/tmp/umlswitch0"
157 SWITCH_dave="eth0=daemon,,unix,/tmp/umlswitch0"
158 SWITCH_sun="eth0=daemon,,unix,/tmp/umlswitch0 \
159 eth1=daemon,,unix,/tmp/umlswitch2"
160 SWITCH_bob="eth0=daemon,,unix,/tmp/umlswitch2"