]>
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 | |
7fa27191 | 18 | TESTDIR=/srv/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 |
043caec1 | 31 | BUILDDIR=$TESTDIR/build |
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 | |
8ed98c13 | 43 | ROOTFS=$BUILDDIR/debian-$ROOTFSSUITE-$ROOTFSARCH.qcow2 |
aa5803e0 | 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 | 50 | # libvirt config |
8ed98c13 RB |
51 | NBDEV=/dev/nbd0 |
52 | NBDPARTITION=${NBDEV}p1 | |
9b3316ed RB |
53 | VIRTIMGSTORE=/var/lib/libvirt/images |
54 | ||
997358a6 | 55 | # Directory where test results will be stored |
bf48ee33 | 56 | TESTRESULTSDIR=$TESTDIR/testresults |
997358a6 | 57 | |
7ec11936 | 58 | # SSH configuration (speedup SSH) |
bf48ee33 | 59 | SSHCONF="-F $TESTDIR/testing/ssh_config" |
7ec11936 | 60 | |
997358a6 | 61 | ############################################################## |
9b3316ed | 62 | # Enable particular steps in the make-testing |
997358a6 | 63 | # |
aa5803e0 | 64 | ENABLE_BUILD_BASEIMAGE="yes" |
f9df3d06 | 65 | ENABLE_BUILD_GUESTKERNEL="yes" |
b820f8aa MW |
66 | ENABLE_BUILD_UMLROOTFS="yes" |
67 | ENABLE_BUILD_UMLHOSTFS="yes" | |
997358a6 | 68 | |
997358a6 MW |
69 | ############################################################## |
70 | # If set to "yes" only the tests stated at $SELECTEDTESTS | |
71 | # will be executed. (use "yes" or "no") | |
72 | # | |
73 | SELECTEDTESTSONLY="no" | |
74 | ||
75 | # Tests to do if $SELECTEDTESTSONLY is set "yes". | |
76 | # | |
c598ac63 | 77 | SELECTEDTESTS="ikev2/rw-cert" |
997358a6 MW |
78 | |
79 | ############################################################## | |
fc0afb68 AS |
80 | # hostname and corresponding IPv4 and IPv6 addresses |
81 | # You may change the IPs but keep them in the same subnet, | |
997358a6 MW |
82 | # this means retain the netmasks! |
83 | # Also don't use IPs ending with 254, they are reserved! | |
84 | # | |
fc0afb68 | 85 | HOSTNAMEIPV4="\ |
c598ac63 | 86 | alice,10.1.0.10,192.168.0.50 \ |
fc0afb68 AS |
87 | venus,10.1.0.20 \ |
88 | moon,192.168.0.1,10.1.0.1 \ | |
b820f8aa | 89 | carol,192.168.0.100,10.3.0.1 \ |
fc0afb68 AS |
90 | winnetou,192.168.0.150 \ |
91 | dave,192.168.0.200,10.3.0.2 \ | |
92 | sun,192.168.0.2,10.2.0.1 \ | |
93 | bob,10.2.0.10" | |
94 | ||
95 | HOSTNAMEIPV6="\ | |
c598ac63 | 96 | alice,fec1::10,fec0::5 \ |
fc0afb68 AS |
97 | venus,fec1::20 \ |
98 | moon,fec0::1,fec1::1 \ | |
99 | carol,fec0::10,fec3::1 \ | |
100 | winnetou,fec0::15 \ | |
101 | dave,fec0::20,fec3::2 \ | |
102 | sun,fec0::2,fec2::1 \ | |
103 | bob,fec2::10" | |
997358a6 MW |
104 | |
105 | ############################################################## | |
106 | # VPN gateways / clients | |
107 | # The hosts stated here will be created. Possible values | |
108 | # are sun, moon, dave, carol, alice, venus, bob, winnetou. | |
997358a6 | 109 | # |
9b3316ed | 110 | STRONGSWANHOSTS="alice bob carol dave moon sun venus winnetou" |