2006-04-28 07:14:48 +00:00
|
|
|
#!/bin/bash
|
2012-12-07 10:33:27 +00:00
|
|
|
# Global configuration file for strongswan integration testing.
|
2006-04-28 07:14:48 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2004 Eric Marchionni, Patrik Rayo
|
|
|
|
# Zuercher Hochschule Winterthur
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License as published by the
|
|
|
|
# Free Software Foundation; either version 2 of the License, or (at your
|
|
|
|
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# for more details.
|
|
|
|
|
|
|
|
# Root directory of testing
|
2012-12-07 13:47:13 +00:00
|
|
|
TESTDIR=/srv/strongswan-testing
|
2006-04-28 07:14:48 +00:00
|
|
|
|
2012-12-07 10:33:27 +00:00
|
|
|
# Kernel configuration
|
|
|
|
KERNELVERSION=3.5.3
|
|
|
|
KERNEL=linux-$KERNELVERSION
|
|
|
|
KERNELTARBALL=$KERNEL.tar.bz2
|
|
|
|
KERNELCONFIG=$PWD/config/kernel/config-3.5
|
|
|
|
KERNELPATCH=ha-3.0.patch.bz2
|
2006-04-28 07:14:48 +00:00
|
|
|
|
2012-12-04 17:46:21 +00:00
|
|
|
# strongSwan version used in tests
|
|
|
|
SWANVERSION=5.0.2dr4
|
|
|
|
|
2012-12-07 13:21:18 +00:00
|
|
|
# Build directory where the guest kernel and images will be built
|
2012-12-07 13:22:23 +00:00
|
|
|
BUILDDIR=$TESTDIR/build
|
2006-04-28 07:14:48 +00:00
|
|
|
|
2012-11-19 09:43:42 +00:00
|
|
|
# Logfile
|
|
|
|
LOGFILE=$BUILDDIR/testing.log
|
|
|
|
|
|
|
|
# Directory used for loop-mounts
|
|
|
|
LOOPDIR=$BUILDDIR/loop
|
|
|
|
|
2012-12-10 09:05:02 +00:00
|
|
|
# Image extension
|
|
|
|
IMGEXT=qcow2
|
|
|
|
|
2012-11-19 09:43:42 +00:00
|
|
|
# Base image settings
|
2012-12-10 09:05:02 +00:00
|
|
|
# The base image is a pristine OS installation created using debootstrap.
|
|
|
|
BASEIMGSIZE=1024
|
|
|
|
BASEIMGSUITE=wheezy
|
|
|
|
BASEIMGARCH=amd64
|
|
|
|
BASEIMG=$BUILDDIR/debian-$BASEIMGSUITE-$BASEIMGARCH.$IMGEXT
|
|
|
|
BASEIMGMIRROR=http://cdn.debian.net/debian
|
|
|
|
|
|
|
|
# Root image settings
|
|
|
|
# The root image is the origin of all guest images. It contains additional
|
|
|
|
# test-specific software and patches.
|
|
|
|
ROOTIMG=$BUILDDIR/root.$IMGEXT
|
|
|
|
ROOTIMGCOMPILEDIR=$BUILDDIR/compile
|
|
|
|
|
|
|
|
# Guest images settings
|
|
|
|
GUESTIMGDIR=$BUILDDIR/guest-images
|
2012-12-07 08:41:38 +00:00
|
|
|
|
2012-12-07 10:48:48 +00:00
|
|
|
# libvirt config
|
2012-12-07 16:54:19 +00:00
|
|
|
NBDEV=/dev/nbd0
|
|
|
|
NBDPARTITION=${NBDEV}p1
|
2012-12-07 10:48:48 +00:00
|
|
|
VIRTIMGSTORE=/var/lib/libvirt/images
|
|
|
|
|
2006-04-28 07:14:48 +00:00
|
|
|
# Directory where test results will be stored
|
2012-12-07 13:19:11 +00:00
|
|
|
TESTRESULTSDIR=$TESTDIR/testresults
|
2006-04-28 07:14:48 +00:00
|
|
|
|
2010-10-14 12:01:26 +00:00
|
|
|
# SSH configuration (speedup SSH)
|
2012-12-07 13:19:11 +00:00
|
|
|
SSHCONF="-F $TESTDIR/testing/ssh_config"
|
2010-10-14 12:01:26 +00:00
|
|
|
|
2006-04-28 07:14:48 +00:00
|
|
|
##############################################################
|
2012-12-07 10:48:48 +00:00
|
|
|
# Enable particular steps in the make-testing
|
2006-04-28 07:14:48 +00:00
|
|
|
#
|
2012-11-19 09:43:42 +00:00
|
|
|
ENABLE_BUILD_BASEIMAGE="yes"
|
2012-12-10 09:33:19 +00:00
|
|
|
ENABLE_BUILD_ROOTIMAGE="yes"
|
2012-12-07 10:33:27 +00:00
|
|
|
ENABLE_BUILD_GUESTKERNEL="yes"
|
2012-12-10 09:38:27 +00:00
|
|
|
ENABLE_BUILD_GUESTIMAGES="yes"
|
2006-04-28 07:14:48 +00:00
|
|
|
|
|
|
|
##############################################################
|
2006-06-06 05:41:21 +00:00
|
|
|
# hostname and corresponding IPv4 and IPv6 addresses
|
|
|
|
# You may change the IPs but keep them in the same subnet,
|
2006-04-28 07:14:48 +00:00
|
|
|
# this means retain the netmasks!
|
|
|
|
# Also don't use IPs ending with 254, they are reserved!
|
|
|
|
#
|
2006-06-06 05:41:21 +00:00
|
|
|
HOSTNAMEIPV4="\
|
2007-07-02 09:52:20 +00:00
|
|
|
alice,10.1.0.10,192.168.0.50 \
|
2006-06-06 05:41:21 +00:00
|
|
|
venus,10.1.0.20 \
|
|
|
|
moon,192.168.0.1,10.1.0.1 \
|
2008-03-13 14:20:20 +00:00
|
|
|
carol,192.168.0.100,10.3.0.1 \
|
2006-06-06 05:41:21 +00:00
|
|
|
winnetou,192.168.0.150 \
|
|
|
|
dave,192.168.0.200,10.3.0.2 \
|
|
|
|
sun,192.168.0.2,10.2.0.1 \
|
|
|
|
bob,10.2.0.10"
|
|
|
|
|
|
|
|
HOSTNAMEIPV6="\
|
2007-07-02 09:52:20 +00:00
|
|
|
alice,fec1::10,fec0::5 \
|
2006-06-06 05:41:21 +00:00
|
|
|
venus,fec1::20 \
|
|
|
|
moon,fec0::1,fec1::1 \
|
|
|
|
carol,fec0::10,fec3::1 \
|
|
|
|
winnetou,fec0::15 \
|
|
|
|
dave,fec0::20,fec3::2 \
|
|
|
|
sun,fec0::2,fec2::1 \
|
|
|
|
bob,fec2::10"
|
2006-04-28 07:14:48 +00:00
|
|
|
|
|
|
|
##############################################################
|
|
|
|
# VPN gateways / clients
|
|
|
|
# The hosts stated here will be created. Possible values
|
|
|
|
# are sun, moon, dave, carol, alice, venus, bob, winnetou.
|
|
|
|
#
|
2012-12-07 10:48:48 +00:00
|
|
|
STRONGSWANHOSTS="alice bob carol dave moon sun venus winnetou"
|