]>
Commit | Line | Data |
---|---|---|
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 | |
bf48ee33 | 18 | TESTDIR=~/strongswan-testing |
997358a6 | 19 | |
f9df3d06 RB |
20 | # Kernel configuration |
21 | KERNELVERSION=3.5.3 | |
22 | KERNEL=linux-$KERNELVERSION | |
23 | KERNELTARBALL=$KERNEL.tar.bz2 | |
24 | KERNELCONFIG=$PWD/config/kernel/config-3.5 | |
25 | KERNELPATCH=ha-3.0.patch.bz2 | |
997358a6 | 26 | |
beff82dd RB |
27 | # strongSwan version used in tests |
28 | SWANVERSION=5.0.2dr4 | |
29 | ||
619c5430 | 30 | # Build directory where the guest kernel and images will be built |
bf48ee33 | 31 | BUILDDIR=$TESTDIR/umlbuild |
997358a6 | 32 | |
aa5803e0 RB |
33 | # Logfile |
34 | LOGFILE=$BUILDDIR/testing.log | |
35 | ||
36 | # Directory used for loop-mounts | |
37 | LOOPDIR=$BUILDDIR/loop | |
38 | ||
39 | # Base image settings | |
d47b7518 | 40 | ROOTFSSIZE=1024 |
aa5803e0 RB |
41 | ROOTFSSUITE=wheezy |
42 | ROOTFSARCH=amd64 | |
43 | ROOTFS=$BUILDDIR/debian-$ROOTFSSUITE-$ROOTFSARCH.img | |
44 | ROOTFSMIRROR=http://cdn.debian.net/debian | |
e61ce6ee | 45 | ROOTFSCOMPILEDIR=$BUILDDIR/compile |
aa5803e0 | 46 | |
62a277cf RB |
47 | # Path to guest images |
48 | ROOTFSDIR=$BUILDDIR/root-fs | |
49 | ||
9b3316ed RB |
50 | # libvirt config |
51 | VIRTIMGSTORE=/var/lib/libvirt/images | |
52 | ||
997358a6 | 53 | # Directory where test results will be stored |
bf48ee33 | 54 | TESTRESULTSDIR=$TESTDIR/testresults |
997358a6 | 55 | |
7ec11936 | 56 | # SSH configuration (speedup SSH) |
bf48ee33 | 57 | SSHCONF="-F $TESTDIR/testing/ssh_config" |
7ec11936 | 58 | |
997358a6 MW |
59 | # Timezone for the UMLs, look in /usr/share/zoneinfo! |
60 | TZUML="Europe/Zurich" | |
61 | ||
62 | ############################################################## | |
9b3316ed | 63 | # Enable particular steps in the make-testing |
997358a6 | 64 | # |
aa5803e0 | 65 | ENABLE_BUILD_BASEIMAGE="yes" |
f9df3d06 | 66 | ENABLE_BUILD_GUESTKERNEL="yes" |
b820f8aa MW |
67 | ENABLE_BUILD_UMLROOTFS="yes" |
68 | ENABLE_BUILD_UMLHOSTFS="yes" | |
997358a6 | 69 | |
997358a6 MW |
70 | ############################################################## |
71 | # If set to "yes" only the tests stated at $SELECTEDTESTS | |
72 | # will be executed. (use "yes" or "no") | |
73 | # | |
74 | SELECTEDTESTSONLY="no" | |
75 | ||
76 | # Tests to do if $SELECTEDTESTSONLY is set "yes". | |
77 | # | |
c598ac63 | 78 | SELECTEDTESTS="ikev2/rw-cert" |
997358a6 MW |
79 | |
80 | ############################################################## | |
fc0afb68 AS |
81 | # hostname and corresponding IPv4 and IPv6 addresses |
82 | # You may change the IPs but keep them in the same subnet, | |
997358a6 MW |
83 | # this means retain the netmasks! |
84 | # Also don't use IPs ending with 254, they are reserved! | |
85 | # | |
fc0afb68 | 86 | HOSTNAMEIPV4="\ |
c598ac63 | 87 | alice,10.1.0.10,192.168.0.50 \ |
fc0afb68 AS |
88 | venus,10.1.0.20 \ |
89 | moon,192.168.0.1,10.1.0.1 \ | |
b820f8aa | 90 | carol,192.168.0.100,10.3.0.1 \ |
fc0afb68 AS |
91 | winnetou,192.168.0.150 \ |
92 | dave,192.168.0.200,10.3.0.2 \ | |
93 | sun,192.168.0.2,10.2.0.1 \ | |
94 | bob,10.2.0.10" | |
95 | ||
96 | HOSTNAMEIPV6="\ | |
c598ac63 | 97 | alice,fec1::10,fec0::5 \ |
fc0afb68 AS |
98 | venus,fec1::20 \ |
99 | moon,fec0::1,fec1::1 \ | |
100 | carol,fec0::10,fec3::1 \ | |
101 | winnetou,fec0::15 \ | |
102 | dave,fec0::20,fec3::2 \ | |
103 | sun,fec0::2,fec2::1 \ | |
104 | bob,fec2::10" | |
997358a6 MW |
105 | |
106 | ############################################################## | |
107 | # VPN gateways / clients | |
108 | # The hosts stated here will be created. Possible values | |
109 | # are sun, moon, dave, carol, alice, venus, bob, winnetou. | |
997358a6 | 110 | # |
9b3316ed | 111 | STRONGSWANHOSTS="alice bob carol dave moon sun venus winnetou" |