Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing.conf: default all vars, so they can be overridden on command … #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
74 changes: 37 additions & 37 deletions testing/testing.conf
Expand Up @@ -14,83 +14,83 @@
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.

TESTINGDIR=$(dirname `readlink -f ${BASH_SOURCE[0]}`)
: ${TESTINGDIR:=$(dirname `readlink -f ${BASH_SOURCE[0]}`)}
if [ -f $TESTINGDIR/testing.conf.local ]
then
. $TESTINGDIR/testing.conf.local
fi

# Root directory of testing
: ${TESTDIR=/srv/strongswan-testing}
: ${TESTDIR:=/srv/strongswan-testing}

# Kernel configuration
: ${KERNELVERSION=5.11.11}
: ${KERNEL=linux-$KERNELVERSION}
: ${KERNELTARBALL=$KERNEL.tar.xz}
: ${KERNELCONFIG=$DIR/../config/kernel/config-5.11}
: ${KERNELPATCH=ha-5.10-abicompat.patch.bz2}
: ${KERNELVERSION:=5.11.11}
: ${KERNEL:=linux-$KERNELVERSION}
: ${KERNELTARBALL:=$KERNEL.tar.xz}
: ${KERNELCONFIG:=$DIR/../config/kernel/config-5.11}
: ${KERNELPATCH:=ha-5.10-abicompat.patch.bz2}

# strongSwan version used in tests
: ${SWANVERSION=5.9.3dr1}
: ${SWANVERSION:=5.9.3dr1}

# Build directory where the guest kernel and images will be built
: ${BUILDDIR=$TESTDIR/build}
: ${BUILDDIR:=$TESTDIR/build}

# Logfile
: ${LOGFILE=$BUILDDIR/testing.log}
: ${LOGFILE:=$BUILDDIR/testing.log}

# Directory used for loop-mounts
: ${LOOPDIR=$BUILDDIR/loop}
: ${LOOPDIR:=$BUILDDIR/loop}

# Common image settings
: ${IMGEXT=qcow2}
: ${IMGDIR=$BUILDDIR/images}
: ${IMGEXT:=qcow2}
: ${IMGDIR:=$BUILDDIR/images}

# Base image settings
# The base image is a pristine OS installation created using debootstrap.
: ${BASEIMGSIZE=2500}
: ${BASEIMGSUITE=buster}
: ${BASEIMGARCH=amd64}
: ${BASEIMG=$IMGDIR/debian-$BASEIMGSUITE-$BASEIMGARCH.$IMGEXT}
: ${BASEIMGMIRROR=http://http.debian.net/debian}
: ${BASEIMGEXTREPOHOST=download.strongswan.org}
: ${BASEIMGEXTKEY=https://$BASEIMGEXTREPOHOST/testing/repos/strongswan-testing.gpg.key}
: ${BASEIMGEXTREPO=https://$BASEIMGEXTREPOHOST/testing/repos/apt/debian}
: ${BASEIMGSIZE:=2500}
: ${BASEIMGSUITE:=buster}
: ${BASEIMGARCH:=amd64}
: ${BASEIMG:=$IMGDIR/debian-$BASEIMGSUITE-$BASEIMGARCH.$IMGEXT}
: ${BASEIMGMIRROR:=http://http.debian.net/debian}
: ${BASEIMGEXTREPOHOST:=download.strongswan.org}
: ${BASEIMGEXTKEY:=https://$BASEIMGEXTREPOHOST/testing/repos/strongswan-testing.gpg.key}
: ${BASEIMGEXTREPO:=https://$BASEIMGEXTREPOHOST/testing/repos/apt/debian}

# Directory shared between host and guests
: ${SHAREDDIR=$BUILDDIR/shared/$BASEIMGSUITE}
: ${SHAREDDIR:=$BUILDDIR/shared/$BASEIMGSUITE}

# Root image settings
# The root image is the origin of all guest images. It is a clone of the base
# image and contains additional test-specific software and patches.
: ${ROOTIMG=$IMGDIR/root.$IMGEXT}
: ${ROOTIMG:=$IMGDIR/root.$IMGEXT}

# libvirt config
: ${NBDEV=/dev/nbd0}
: ${NBDPARTITION=${NBDEV}p1}
: ${VIRTIMGSTORE=/var/lib/libvirt/images}
: ${KVMUSER=libvirt-qemu}
: ${KVMGROUP=kvm}
: ${NBDEV:=/dev/nbd0}
: ${NBDPARTITION:=${NBDEV}p1}
: ${VIRTIMGSTORE:=/var/lib/libvirt/images}
: ${KVMUSER:=libvirt-qemu}
: ${KVMGROUP:=kvm}

# Directory where test results will be stored
: ${TESTRESULTSDIR=$TESTDIR/testresults}
: ${TESTRESULTSDIR:=$TESTDIR/testresults}

##############################################################
# Enable particular steps in the make-testing script
#
: ${ENABLE_BUILD_BASEIMAGE=yes}
: ${ENABLE_BUILD_ROOTIMAGE=yes}
: ${ENABLE_BUILD_GUESTKERNEL=yes}
: ${ENABLE_BUILD_CERTIFICATES=yes}
: ${ENABLE_BUILD_GUESTIMAGES=yes}
: ${ENABLE_BUILD_BASEIMAGE:=yes}
: ${ENABLE_BUILD_ROOTIMAGE:=yes}
: ${ENABLE_BUILD_GUESTKERNEL:=yes}
: ${ENABLE_BUILD_CERTIFICATES:=yes}
: ${ENABLE_BUILD_GUESTIMAGES:=yes}

##############################################################
# 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="\
: ${HOSTNAMEIPV4:="\
alice,10.1.0.10,192.168.0.50 \
venus,10.1.0.20 \
moon,192.168.0.1,10.1.0.1 \
Expand All @@ -100,7 +100,7 @@ dave,192.168.0.200,10.3.0.2 \
sun,192.168.0.2,10.2.0.1 \
bob,10.2.0.10"}

: ${HOSTNAMEIPV6="\
: ${HOSTNAMEIPV6:="\
alice,fec1::10,fec0::5 \
venus,fec1::20 \
moon,fec0::1,fec1::1 \
Expand All @@ -115,4 +115,4 @@ bob,fec2::10"}
# 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"}
: ${STRONGSWANHOSTS:="alice bob carol dave moon sun venus winnetou"}