#!/bin/bash # Global configuration file for strongswan integration testing. # # 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 . # # 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 UMLTESTDIR=~/strongswan-testing # 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 # strongSwan version used in tests SWANVERSION=5.0.2dr4 # Directory where the UML kernels and file system will be built BUILDDIR=$UMLTESTDIR/umlbuild # Logfile LOGFILE=$BUILDDIR/testing.log # Directory used for loop-mounts LOOPDIR=$BUILDDIR/loop # Base image settings ROOTFSSIZE=1024 ROOTFSSUITE=wheezy ROOTFSARCH=amd64 ROOTFS=$BUILDDIR/debian-$ROOTFSSUITE-$ROOTFSARCH.img ROOTFSMIRROR=http://cdn.debian.net/debian ROOTFSCOMPILEDIR=$BUILDDIR/compile # Path to guest images ROOTFSDIR=$BUILDDIR/root-fs # libvirt config VIRTIMGSTORE=/var/lib/libvirt/images # Filename of the built UML Kernel UMLKERNEL=$BUILDDIR/linux-uml-$KERNELVERSION # Directory where test results will be stored TESTRESULTSDIR=$UMLTESTDIR/testresults # SSH configuration (speedup SSH) SSHCONF="-F $UMLTESTDIR/testing/ssh_config" # Timezone for the UMLs, look in /usr/share/zoneinfo! TZUML="Europe/Zurich" ############################################################## # Enable particular steps in the make-testing # ENABLE_BUILD_BASEIMAGE="yes" ENABLE_BUILD_GUESTKERNEL="yes" ENABLE_BUILD_UMLROOTFS="yes" ENABLE_BUILD_UMLHOSTFS="yes" ############################################################## # If set to "yes" only the tests stated at $SELECTEDTESTS # will be executed. (use "yes" or "no") # SELECTEDTESTSONLY="no" # Tests to do if $SELECTEDTESTSONLY is set "yes". # SELECTEDTESTS="ikev2/rw-cert" ############################################################## # hostname and corresponding IPv4 and IPv6 addresses # You may change the IPs but keep them in the same subnet, # this means retain the netmasks! # Also don't use IPs ending with 254, they are reserved! # HOSTNAMEIPV4="\ alice,10.1.0.10,192.168.0.50 \ venus,10.1.0.20 \ moon,192.168.0.1,10.1.0.1 \ carol,192.168.0.100,10.3.0.1 \ 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="\ alice,fec1::10,fec0::5 \ 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" ############################################################## # VPN gateways / clients # The hosts stated here will be created. Possible values # are sun, moon, dave, carol, alice, venus, bob, winnetou. # STRONGSWANHOSTS="alice bob carol dave moon sun venus winnetou"