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