]> git.ipfire.org Git - thirdparty/strongswan.git/blob - testing/testing.conf
Merge branch 'dnscert'
[thirdparty/strongswan.git] / testing / testing.conf
1 #!/bin/bash
2 # Global configuration file for strongswan integration testing.
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.
16
17 TESTINGDIR=$(dirname `readlink -f ${BASH_SOURCE[0]}`)
18 if [ -f $TESTINGDIR/testing.conf.local ]
19 then
20 . $TESTINGDIR/testing.conf.local
21 fi
22
23 # Root directory of testing
24 : ${TESTDIR=/srv/strongswan-testing}
25
26 # Kernel configuration
27 : ${KERNELVERSION=3.8.1}
28 : ${KERNEL=linux-$KERNELVERSION}
29 : ${KERNELTARBALL=$KERNEL.tar.bz2}
30 : ${KERNELCONFIG=$DIR/../config/kernel/config-3.8}
31 : ${KERNELPATCH=ha-3.8-abicompat.patch.bz2}
32
33 # strongSwan version used in tests
34 : ${SWANVERSION=5.0.3}
35
36 # Build directory where the guest kernel and images will be built
37 : ${BUILDDIR=$TESTDIR/build}
38 # Directory shared between host and guests
39 : ${SHAREDDIR=$BUILDDIR/shared}
40
41 # Logfile
42 : ${LOGFILE=$BUILDDIR/testing.log}
43
44 # Directory used for loop-mounts
45 : ${LOOPDIR=$BUILDDIR/loop}
46
47 # Common image settings
48 : ${IMGEXT=qcow2}
49 : ${IMGDIR=$BUILDDIR/images}
50
51 # Base image settings
52 # The base image is a pristine OS installation created using debootstrap.
53 : ${BASEIMGSIZE=1280}
54 : ${BASEIMGSUITE=wheezy}
55 : ${BASEIMGARCH=amd64}
56 : ${BASEIMG=$IMGDIR/debian-$BASEIMGSUITE-$BASEIMGARCH.$IMGEXT}
57 : ${BASEIMGMIRROR=http://cdn.debian.net/debian}
58
59 # Root image settings
60 # The root image is the origin of all guest images. It is a clone of the base
61 # image and contains additional test-specific software and patches.
62 : ${ROOTIMG=$IMGDIR/root.$IMGEXT}
63
64 # libvirt config
65 : ${NBDEV=/dev/nbd0}
66 : ${NBDPARTITION=${NBDEV}p1}
67 : ${VIRTIMGSTORE=/var/lib/libvirt/images}
68 : ${KVMUSER=libvirt-qemu}
69 : ${KVMGROUP=kvm}
70
71 # Directory where test results will be stored
72 : ${TESTRESULTSDIR=$TESTDIR/testresults}
73
74 ##############################################################
75 # Enable particular steps in the make-testing
76 #
77 : ${ENABLE_BUILD_BASEIMAGE=yes}
78 : ${ENABLE_BUILD_ROOTIMAGE=yes}
79 : ${ENABLE_BUILD_GUESTKERNEL=yes}
80 : ${ENABLE_BUILD_GUESTIMAGES=yes}
81
82 ##############################################################
83 # hostname and corresponding IPv4 and IPv6 addresses
84 # You may change the IPs but keep them in the same subnet,
85 # this means retain the netmasks!
86 # Also don't use IPs ending with 254, they are reserved!
87 #
88 : ${HOSTNAMEIPV4="\
89 alice,10.1.0.10,192.168.0.50 \
90 venus,10.1.0.20 \
91 moon,192.168.0.1,10.1.0.1 \
92 carol,192.168.0.100,10.3.0.1 \
93 winnetou,192.168.0.150 \
94 dave,192.168.0.200,10.3.0.2 \
95 sun,192.168.0.2,10.2.0.1 \
96 bob,10.2.0.10"}
97
98 : ${HOSTNAMEIPV6="\
99 alice,fec1::10,fec0::5 \
100 venus,fec1::20 \
101 moon,fec0::1,fec1::1 \
102 carol,fec0::10,fec3::1 \
103 winnetou,fec0::15 \
104 dave,fec0::20,fec3::2 \
105 sun,fec0::2,fec2::1 \
106 bob,fec2::10"}
107
108 ##############################################################
109 # VPN gateways / clients
110 # The hosts stated here will be created. Possible values
111 # are sun, moon, dave, carol, alice, venus, bob, winnetou.
112 #
113 : ${STRONGSWANHOSTS="alice bob carol dave moon sun venus winnetou"}