2 # Global configuration file for strongswan integration 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 # Root directory of testing
18 UMLTESTDIR=~/strongswan-testing
20 # Kernel configuration
22 KERNEL=linux-$KERNELVERSION
23 KERNELTARBALL=$KERNEL.tar.bz2
24 KERNELCONFIG=$PWD/config/kernel/config-3.5
25 KERNELPATCH=ha-3.0.patch.bz2
27 # strongSwan version used in tests
30 # Amount of Memory to use per UML [MB].
31 # If "auto" is stated 1/12 of total host ram will be used.
32 # Examples: MEM=64, MEM="128", MEM="auto"
35 # Directory where the UML kernels and file system will be built
36 BUILDDIR=$UMLTESTDIR/umlbuild
39 LOGFILE=$BUILDDIR/testing.log
41 # Directory used for loop-mounts
42 LOOPDIR=$BUILDDIR/loop
48 ROOTFS=$BUILDDIR/debian-$ROOTFSSUITE-$ROOTFSARCH.img
49 ROOTFSMIRROR=http://cdn.debian.net/debian
50 ROOTFSCOMPILEDIR=$BUILDDIR/compile
52 # Path to guest images
53 ROOTFSDIR=$BUILDDIR/root-fs
55 # Filename of the built UML Kernel
56 UMLKERNEL=$BUILDDIR/linux-uml-$KERNELVERSION
58 # Directory where test results will be stored
59 TESTRESULTSDIR=$UMLTESTDIR/testresults
61 # SSH configuration (speedup SSH)
62 SSHCONF="-F $UMLTESTDIR/testing/ssh_config"
64 # Timezone for the UMLs, look in /usr/share/zoneinfo!
67 ##############################################################
68 # Enable particular steps in the make-testing and
69 # start-testing scripts
71 ENABLE_BUILD_BASEIMAGE="yes"
72 ENABLE_BUILD_GUESTKERNEL="yes"
73 ENABLE_BUILD_UMLROOTFS="yes"
74 ENABLE_BUILD_UMLHOSTFS="yes"
76 ##############################################################
77 # If set to "yes" only the tests stated at $SELECTEDTESTS
78 # will be executed. (use "yes" or "no")
80 SELECTEDTESTSONLY="no"
82 # Tests to do if $SELECTEDTESTSONLY is set "yes".
84 SELECTEDTESTS="ikev2/rw-cert"
86 ##############################################################
87 # hostname and corresponding IPv4 and IPv6 addresses
88 # You may change the IPs but keep them in the same subnet,
89 # this means retain the netmasks!
90 # Also don't use IPs ending with 254, they are reserved!
93 alice,10.1.0.10,192.168.0.50 \
95 moon,192.168.0.1,10.1.0.1 \
96 carol,192.168.0.100,10.3.0.1 \
97 winnetou,192.168.0.150 \
98 dave,192.168.0.200,10.3.0.2 \
99 sun,192.168.0.2,10.2.0.1 \
103 alice,fec1::10,fec0::5 \
105 moon,fec0::1,fec1::1 \
106 carol,fec0::10,fec3::1 \
108 dave,fec0::20,fec3::2 \
109 sun,fec0::2,fec2::1 \
112 ##############################################################
113 # VPN gateways / clients
114 # The hosts stated here will be created. Possible values
115 # are sun, moon, dave, carol, alice, venus, bob, winnetou.
116 # It's fine to make them all unless you don't have much
117 # resources. In this case we assume you know what you do!
119 STRONGSWANHOSTS="sun moon dave carol alice venus bob winnetou"
121 ##############################################################
122 # Needed programs, do not change!
124 PROGRAMS="uml_switch uml_mconsole ssh ssh-keygen iptables \
125 chroot screen mkreiserfs"
127 ##############################################################
128 # IP parameters of the UML switches
130 IFCONFIG_0="192.168.0.254 netmask 255.255.255.0"
131 IFCONFIG_1="10.1.0.254 netmask 255.255.0.0"
132 IFCONFIG_2="10.2.0.254 netmask 255.255.0.0"
134 ##############################################################
135 # Network interfaces of the UML instances
137 SWITCH_alice="eth0=tuntap,tap1_alice,fe:fd:0a:01:00:0a \
138 eth1=tuntap,tap0_alice,fe:fd:c0:a8:00:32"
139 SWITCH_venus="eth0=tuntap,tap1_venus,fe:fd:0a:01:00:14"
140 SWITCH_moon="eth0=tuntap,tap0_moon,fe:fd:c0:a8:00:01 \
141 eth1=tuntap,tap1_moon,fe:fd:0a:01:00:01"
142 SWITCH_carol="eth0=tuntap,tap0_carol,fe:fd:c0:a8:00:64"
143 SWITCH_winnetou="eth0=tuntap,tap0_winnetou,fe:fd:c0:a8:00:96"
144 SWITCH_dave="eth0=tuntap,tap0_dave,fe:fd:c0:a8:00:c8"
145 SWITCH_sun="eth0=tuntap,tap0_sun,fe:fd:c0:a8:00:02 \
146 eth1=tuntap,tap2_sun,fe:fd:0a:02:00:01"
147 SWITCH_bob="eth0=tuntap,tap2_bob,fe:fd:0a:02:00:0a"