]> git.ipfire.org Git - thirdparty/strongswan.git/blame - testing/testing.conf
Rename build-umlkernel script to build-guestkernel
[thirdparty/strongswan.git] / testing / testing.conf
CommitLineData
997358a6 1#!/bin/bash
f9df3d06 2# Global configuration file for strongswan integration testing.
997358a6
MW
3#
4# Copyright (C) 2004 Eric Marchionni, Patrik Rayo
5# Zuercher Hochschule Winterthur
6#
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>.
11#
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
15# for more details.
997358a6
MW
16
17# Root directory of testing
b820f8aa 18UMLTESTDIR=~/strongswan-testing
997358a6 19
f9df3d06
RB
20# Kernel configuration
21KERNELVERSION=3.5.3
22KERNEL=linux-$KERNELVERSION
23KERNELTARBALL=$KERNEL.tar.bz2
24KERNELCONFIG=$PWD/config/kernel/config-3.5
25KERNELPATCH=ha-3.0.patch.bz2
997358a6 26
beff82dd
RB
27# strongSwan version used in tests
28SWANVERSION=5.0.2dr4
29
997358a6
MW
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"
f27f6296 33MEM=96
997358a6
MW
34
35# Directory where the UML kernels and file system will be built
36BUILDDIR=$UMLTESTDIR/umlbuild
37
aa5803e0
RB
38# Logfile
39LOGFILE=$BUILDDIR/testing.log
40
41# Directory used for loop-mounts
42LOOPDIR=$BUILDDIR/loop
43
44# Base image settings
d47b7518 45ROOTFSSIZE=1024
aa5803e0
RB
46ROOTFSSUITE=wheezy
47ROOTFSARCH=amd64
48ROOTFS=$BUILDDIR/debian-$ROOTFSSUITE-$ROOTFSARCH.img
49ROOTFSMIRROR=http://cdn.debian.net/debian
e61ce6ee 50ROOTFSCOMPILEDIR=$BUILDDIR/compile
aa5803e0 51
62a277cf
RB
52# Path to guest images
53ROOTFSDIR=$BUILDDIR/root-fs
54
997358a6 55# Filename of the built UML Kernel
b820f8aa 56UMLKERNEL=$BUILDDIR/linux-uml-$KERNELVERSION
997358a6
MW
57
58# Directory where test results will be stored
59TESTRESULTSDIR=$UMLTESTDIR/testresults
60
7ec11936
TB
61# SSH configuration (speedup SSH)
62SSHCONF="-F $UMLTESTDIR/testing/ssh_config"
63
997358a6
MW
64# Timezone for the UMLs, look in /usr/share/zoneinfo!
65TZUML="Europe/Zurich"
66
67##############################################################
68# Enable particular steps in the make-testing and
69# start-testing scripts
70#
aa5803e0 71ENABLE_BUILD_BASEIMAGE="yes"
f9df3d06 72ENABLE_BUILD_GUESTKERNEL="yes"
b820f8aa
MW
73ENABLE_BUILD_UMLROOTFS="yes"
74ENABLE_BUILD_UMLHOSTFS="yes"
997358a6 75
997358a6
MW
76##############################################################
77# If set to "yes" only the tests stated at $SELECTEDTESTS
78# will be executed. (use "yes" or "no")
79#
80SELECTEDTESTSONLY="no"
81
82# Tests to do if $SELECTEDTESTSONLY is set "yes".
83#
c598ac63 84SELECTEDTESTS="ikev2/rw-cert"
997358a6
MW
85
86##############################################################
fc0afb68
AS
87# hostname and corresponding IPv4 and IPv6 addresses
88# You may change the IPs but keep them in the same subnet,
997358a6
MW
89# this means retain the netmasks!
90# Also don't use IPs ending with 254, they are reserved!
91#
fc0afb68 92HOSTNAMEIPV4="\
c598ac63 93alice,10.1.0.10,192.168.0.50 \
fc0afb68
AS
94venus,10.1.0.20 \
95moon,192.168.0.1,10.1.0.1 \
b820f8aa 96carol,192.168.0.100,10.3.0.1 \
fc0afb68
AS
97winnetou,192.168.0.150 \
98dave,192.168.0.200,10.3.0.2 \
99sun,192.168.0.2,10.2.0.1 \
100bob,10.2.0.10"
101
102HOSTNAMEIPV6="\
c598ac63 103alice,fec1::10,fec0::5 \
fc0afb68
AS
104venus,fec1::20 \
105moon,fec0::1,fec1::1 \
106carol,fec0::10,fec3::1 \
107winnetou,fec0::15 \
108dave,fec0::20,fec3::2 \
109sun,fec0::2,fec2::1 \
110bob,fec2::10"
997358a6
MW
111
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
35a19861 117# resources. In this case we assume you know what you do!
997358a6
MW
118#
119STRONGSWANHOSTS="sun moon dave carol alice venus bob winnetou"
120
121##############################################################
122# Needed programs, do not change!
123#
124PROGRAMS="uml_switch uml_mconsole ssh ssh-keygen iptables \
125 chroot screen mkreiserfs"
126
127##############################################################
128# IP parameters of the UML switches
129#
130IFCONFIG_0="192.168.0.254 netmask 255.255.255.0"
131IFCONFIG_1="10.1.0.254 netmask 255.255.0.0"
132IFCONFIG_2="10.2.0.254 netmask 255.255.0.0"
133
134##############################################################
135# Network interfaces of the UML instances
136#
a44bb934
MW
137SWITCH_alice="eth0=tuntap,tap1_alice,fe:fd:0a:01:00:0a \
138 eth1=tuntap,tap0_alice,fe:fd:c0:a8:00:32"
139SWITCH_venus="eth0=tuntap,tap1_venus,fe:fd:0a:01:00:14"
140SWITCH_moon="eth0=tuntap,tap0_moon,fe:fd:c0:a8:00:01 \
141 eth1=tuntap,tap1_moon,fe:fd:0a:01:00:01"
142SWITCH_carol="eth0=tuntap,tap0_carol,fe:fd:c0:a8:00:64"
143SWITCH_winnetou="eth0=tuntap,tap0_winnetou,fe:fd:c0:a8:00:96"
144SWITCH_dave="eth0=tuntap,tap0_dave,fe:fd:c0:a8:00:c8"
145SWITCH_sun="eth0=tuntap,tap0_sun,fe:fd:c0:a8:00:02 \
146 eth1=tuntap,tap2_sun,fe:fd:0a:02:00:01"
147SWITCH_bob="eth0=tuntap,tap2_bob,fe:fd:0a:02:00:0a"