]> git.ipfire.org Git - people/ms/strongswan.git/blame - testing/testing.conf
apidoc: Conditionally run doxygen if any header/Markdown files have changed
[people/ms/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
cac71ff0 27: ${KERNELVERSION=3.15.1}
b656f63e 28: ${KERNEL=linux-$KERNELVERSION}
fde42c15 29: ${KERNELTARBALL=$KERNEL.tar.xz}
cac71ff0
AS
30: ${KERNELCONFIG=$DIR/../config/kernel/config-3.15}
31: ${KERNELPATCH=ha-3.15-ah-abicompat.patch.bz2}
997358a6 32
beff82dd 33# strongSwan version used in tests
8c40609f 34: ${SWANVERSION=5.2.0}
beff82dd 35
619c5430 36# Build directory where the guest kernel and images will be built
b656f63e 37: ${BUILDDIR=$TESTDIR/build}
2c4954ad 38# Directory shared between host and guests
b656f63e 39: ${SHAREDDIR=$BUILDDIR/shared}
997358a6 40
aa5803e0 41# Logfile
b656f63e 42: ${LOGFILE=$BUILDDIR/testing.log}
aa5803e0
RB
43
44# Directory used for loop-mounts
b656f63e 45: ${LOOPDIR=$BUILDDIR/loop}
aa5803e0 46
48ea1d8b 47# Common image settings
b656f63e
MW
48: ${IMGEXT=qcow2}
49: ${IMGDIR=$BUILDDIR/images}
258cbd40 50
aa5803e0 51# Base image settings
258cbd40 52# The base image is a pristine OS installation created using debootstrap.
0f000cdd 53: ${BASEIMGSIZE=1400}
b656f63e
MW
54: ${BASEIMGSUITE=wheezy}
55: ${BASEIMGARCH=amd64}
56: ${BASEIMG=$IMGDIR/debian-$BASEIMGSUITE-$BASEIMGARCH.$IMGEXT}
8c40609f 57: ${BASEIMGMIRROR=http://http.debian.net/debian}
258cbd40
RB
58
59# Root image settings
48ea1d8b
RB
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.
b656f63e 62: ${ROOTIMG=$IMGDIR/root.$IMGEXT}
258cbd40 63
9b3316ed 64# libvirt config
b656f63e
MW
65: ${NBDEV=/dev/nbd0}
66: ${NBDPARTITION=${NBDEV}p1}
67: ${VIRTIMGSTORE=/var/lib/libvirt/images}
68: ${KVMUSER=libvirt-qemu}
69: ${KVMGROUP=kvm}
9b3316ed 70
997358a6 71# Directory where test results will be stored
b656f63e 72: ${TESTRESULTSDIR=$TESTDIR/testresults}
997358a6 73
997358a6 74##############################################################
9b3316ed 75# Enable particular steps in the make-testing
997358a6 76#
b656f63e
MW
77: ${ENABLE_BUILD_BASEIMAGE=yes}
78: ${ENABLE_BUILD_ROOTIMAGE=yes}
79: ${ENABLE_BUILD_GUESTKERNEL=yes}
80: ${ENABLE_BUILD_GUESTIMAGES=yes}
997358a6 81
997358a6 82##############################################################
fc0afb68
AS
83# hostname and corresponding IPv4 and IPv6 addresses
84# You may change the IPs but keep them in the same subnet,
997358a6
MW
85# this means retain the netmasks!
86# Also don't use IPs ending with 254, they are reserved!
87#
b656f63e 88: ${HOSTNAMEIPV4="\
c598ac63 89alice,10.1.0.10,192.168.0.50 \
fc0afb68
AS
90venus,10.1.0.20 \
91moon,192.168.0.1,10.1.0.1 \
b820f8aa 92carol,192.168.0.100,10.3.0.1 \
fc0afb68
AS
93winnetou,192.168.0.150 \
94dave,192.168.0.200,10.3.0.2 \
95sun,192.168.0.2,10.2.0.1 \
b656f63e 96bob,10.2.0.10"}
fc0afb68 97
b656f63e 98: ${HOSTNAMEIPV6="\
c598ac63 99alice,fec1::10,fec0::5 \
fc0afb68
AS
100venus,fec1::20 \
101moon,fec0::1,fec1::1 \
102carol,fec0::10,fec3::1 \
103winnetou,fec0::15 \
104dave,fec0::20,fec3::2 \
105sun,fec0::2,fec2::1 \
b656f63e 106bob,fec2::10"}
997358a6
MW
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.
997358a6 112#
b656f63e 113: ${STRONGSWANHOSTS="alice bob carol dave moon sun venus winnetou"}