testing.conf 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #!/bin/bash
  2. # Global configuration file for strongswan integration testing.
  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.
  16. TESTINGDIR=$(dirname `readlink -f ${BASH_SOURCE[0]}`)
  17. if [ -f $TESTINGDIR/testing.conf.local ]
  18. then
  19. . $TESTINGDIR/testing.conf.local
  20. fi
  21. # Root directory of testing
  22. : ${TESTDIR=/srv/strongswan-testing}
  23. # Kernel configuration
  24. : ${KERNELVERSION=5.2.11}
  25. : ${KERNEL=linux-$KERNELVERSION}
  26. : ${KERNELTARBALL=$KERNEL.tar.xz}
  27. : ${KERNELCONFIG=$DIR/../config/kernel/config-5.2}
  28. : ${KERNELPATCH=ha-5.0-abicompat.patch.bz2}
  29. # strongSwan version used in tests
  30. : ${SWANVERSION=5.8.1}
  31. # Build directory where the guest kernel and images will be built
  32. : ${BUILDDIR=$TESTDIR/build}
  33. # Logfile
  34. : ${LOGFILE=$BUILDDIR/testing.log}
  35. # Directory used for loop-mounts
  36. : ${LOOPDIR=$BUILDDIR/loop}
  37. # Common image settings
  38. : ${IMGEXT=qcow2}
  39. : ${IMGDIR=$BUILDDIR/images}
  40. # Base image settings
  41. # The base image is a pristine OS installation created using debootstrap.
  42. : ${BASEIMGSIZE=1800}
  43. : ${BASEIMGSUITE=stretch}
  44. : ${BASEIMGARCH=amd64}
  45. : ${BASEIMG=$IMGDIR/debian-$BASEIMGSUITE-$BASEIMGARCH.$IMGEXT}
  46. : ${BASEIMGMIRROR=http://http.debian.net/debian}
  47. : ${BASEIMGEXTREPOHOST=download.strongswan.org}
  48. : ${BASEIMGEXTKEY=https://$BASEIMGEXTREPOHOST/testing/repos/strongswan-testing.gpg.key}
  49. : ${BASEIMGEXTREPO=https://$BASEIMGEXTREPOHOST/testing/repos/apt/debian}
  50. # Directory shared between host and guests
  51. : ${SHAREDDIR=$BUILDDIR/shared/$BASEIMGSUITE}
  52. # Root image settings
  53. # The root image is the origin of all guest images. It is a clone of the base
  54. # image and contains additional test-specific software and patches.
  55. : ${ROOTIMG=$IMGDIR/root.$IMGEXT}
  56. # libvirt config
  57. : ${NBDEV=/dev/nbd0}
  58. : ${NBDPARTITION=${NBDEV}p1}
  59. : ${VIRTIMGSTORE=/var/lib/libvirt/images}
  60. : ${KVMUSER=libvirt-qemu}
  61. : ${KVMGROUP=kvm}
  62. # Directory where test results will be stored
  63. : ${TESTRESULTSDIR=$TESTDIR/testresults}
  64. ##############################################################
  65. # Enable particular steps in the make-testing
  66. #
  67. : ${ENABLE_BUILD_BASEIMAGE=yes}
  68. : ${ENABLE_BUILD_ROOTIMAGE=yes}
  69. : ${ENABLE_BUILD_GUESTKERNEL=yes}
  70. : ${ENABLE_BUILD_GUESTIMAGES=yes}
  71. ##############################################################
  72. # hostname and corresponding IPv4 and IPv6 addresses
  73. # You may change the IPs but keep them in the same subnet,
  74. # this means retain the netmasks!
  75. # Also don't use IPs ending with 254, they are reserved!
  76. #
  77. : ${HOSTNAMEIPV4="\
  78. alice,10.1.0.10,192.168.0.50 \
  79. venus,10.1.0.20 \
  80. moon,192.168.0.1,10.1.0.1 \
  81. carol,192.168.0.100,10.3.0.1 \
  82. winnetou,192.168.0.150 \
  83. dave,192.168.0.200,10.3.0.2 \
  84. sun,192.168.0.2,10.2.0.1 \
  85. bob,10.2.0.10"}
  86. : ${HOSTNAMEIPV6="\
  87. alice,fec1::10,fec0::5 \
  88. venus,fec1::20 \
  89. moon,fec0::1,fec1::1 \
  90. carol,fec0::10,fec3::1 \
  91. winnetou,fec0::15 \
  92. dave,fec0::20,fec3::2 \
  93. sun,fec0::2,fec2::1 \
  94. bob,fec2::10"}
  95. ##############################################################
  96. # VPN gateways / clients
  97. # The hosts stated here will be created. Possible values
  98. # are sun, moon, dave, carol, alice, venus, bob, winnetou.
  99. #
  100. : ${STRONGSWANHOSTS="alice bob carol dave moon sun venus winnetou"}