]> git.ipfire.org Git - thirdparty/strongswan.git/blame - testing/testing.conf
Version bump to 5.7.0dr5
[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 16
42525d11
TB
17TESTINGDIR=$(dirname `readlink -f ${BASH_SOURCE[0]}`)
18if [ -f $TESTINGDIR/testing.conf.local ]
b656f63e 19then
42525d11 20 . $TESTINGDIR/testing.conf.local
b656f63e
MW
21fi
22
997358a6 23# Root directory of testing
b656f63e 24: ${TESTDIR=/srv/strongswan-testing}
997358a6 25
f9df3d06 26# Kernel configuration
69ee158e 27: ${KERNELVERSION=4.15.18}
b656f63e 28: ${KERNEL=linux-$KERNELVERSION}
fde42c15 29: ${KERNELTARBALL=$KERNEL.tar.xz}
476200ec 30: ${KERNELCONFIG=$DIR/../config/kernel/config-4.15}
dc2dfedd 31: ${KERNELPATCH=ha-4.15.6-abicompat.patch.bz2}
997358a6 32
beff82dd 33# strongSwan version used in tests
9a7a9623 34: ${SWANVERSION=5.7.0dr5}
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.
257e5db0
TB
51: ${BASEIMGSIZE=1600}
52: ${BASEIMGSUITE=jessie}
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##############################################################
9b3316ed 79# Enable particular steps in the make-testing
997358a6 80#
b656f63e
MW
81: ${ENABLE_BUILD_BASEIMAGE=yes}
82: ${ENABLE_BUILD_ROOTIMAGE=yes}
83: ${ENABLE_BUILD_GUESTKERNEL=yes}
84: ${ENABLE_BUILD_GUESTIMAGES=yes}
997358a6 85
997358a6 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#
b656f63e 92: ${HOSTNAMEIPV4="\
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 \
b656f63e 100bob,10.2.0.10"}
fc0afb68 101
b656f63e 102: ${HOSTNAMEIPV6="\
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 \
b656f63e 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.
997358a6 116#
b656f63e 117: ${STRONGSWANHOSTS="alice bob carol dave moon sun venus winnetou"}