Reto Buerki
8ed98c1373
Switch from raw images to qcow2 format
...
This allows to use minimal copy-on-write clones of the base image as
guest images, which in turn saves a lot of disk space.
2013-01-17 16:54:54 +01:00
Reto Buerki
7fa2719185
Set default TESTDIR to /srv/strongswan-testing
2013-01-17 16:54:54 +01:00
Reto Buerki
bc3cc45e8b
Drop unneeded TZUML variable
2013-01-17 16:54:53 +01:00
Reto Buerki
043caec129
Set BUILDDIR to $TESTDIR/build
2013-01-17 16:54:53 +01:00
Reto Buerki
619c5430b8
Drop unneeded UMLKERNEL variable
2013-01-17 16:54:53 +01:00
Reto Buerki
bf48ee33e5
Rename UMLTESTDIR variable to TESTDIR
2013-01-17 16:54:53 +01:00
Reto Buerki
36a3fe90d8
Drop cecho functions
2013-01-17 16:54:53 +01:00
Reto Buerki
8cb4628ff9
Use log_action function in do-tests script
2013-01-17 16:54:53 +01:00
Reto Buerki
1102a8c1cc
Remove executable bit from testing.conf
2013-01-17 16:54:52 +01:00
Reto Buerki
9b3316ed27
Use qemu/KVM virtualization instead of UML
...
Guest and network configuration is setup using the libvirt
virtualization API. The [start|stop]_testing scripts have been updated
accordingly.
qemu/KVM does not currently support a hostfs, so the shared build tree
mount has been dropped for now.
2013-01-17 16:54:52 +01:00
Reto Buerki
f9df3d06b5
Rename build-umlkernel script to build-guestkernel
2013-01-17 15:22:11 +01:00
Reto Buerki
62a277cfae
Move ROOTFSDIR declaration to testing.conf
2013-01-17 15:22:11 +01:00
Reto Buerki
ee1cd88c7a
Prefix all recipes with a number
2013-01-17 15:22:11 +01:00
Reto Buerki
0cc4063799
Use do_on_exit() in build scripts for cleanup
2013-01-17 15:22:11 +01:00
Reto Buerki
9a045eef8e
Provide do_on_exit() function
...
This function allows to register an exit action which executes when the
calling script terminates.
2013-01-17 15:22:11 +01:00
Reto Buerki
7c2ef58e86
Import testing.conf file in function.sh
...
This is needed to have access to $LOGFILE and possibly other config
settings.
2013-01-17 15:22:10 +01:00
Reto Buerki
261cf0e395
Drop build-hostconfig script
...
Use processed host configurations directly instead.
2013-01-17 15:22:10 +01:00
Reto Buerki
2d1577d661
Update build-umlhostfs script to new log format
2013-01-17 15:22:10 +01:00
Reto Buerki
bf3ff0e585
Update build-umlrootfs script to new log format
2013-01-17 15:22:10 +01:00
Reto Buerki
5828e434bd
Update build-umlkernel script to new log format
2013-01-17 15:22:10 +01:00
Reto Buerki
fb2aab414a
Use red color in die() function
...
This is the function where red color SHOULD be used.
2013-01-17 15:22:10 +01:00
Reto Buerki
b86866579a
Move execute wrappers to function.sh file
2013-01-17 15:22:09 +01:00
Reto Buerki
9574bf7a5e
Use log_action, log_status in build-baseimage script
2013-01-17 15:22:09 +01:00
Reto Buerki
c120f25e60
Provide log_action and log_status functions
...
These two functions are used to log action descriptions and the
corresponding command exit status in a consistent way.
2013-01-17 15:22:09 +01:00
Reto Buerki
3c9df38c5e
Add chroot() helper function
2013-01-17 15:22:09 +01:00
Reto Buerki
3b75c7ddc8
Use execute wrapper to disable root password
2013-01-17 15:22:09 +01:00
Reto Buerki
6022f37aec
Simplify test starting and stopping logic
...
Reduce the coupling of the different scripts.
make-testing : Build the testing environment
start-testing : Start switches and guests
do-tests : Run tests
stop-testing : Stop switches and guests
2013-01-17 15:22:09 +01:00
Tobias Brunner
18bce26ea6
Use key(and password-)less SSH authentication
2013-01-17 15:22:09 +01:00
Reto Buerki
beff82dd98
Adjust strongSwan version handling in HTML output
2013-01-17 15:22:08 +01:00
Tobias Brunner
ffe710ae71
Patch AVP parsing in EAP-TTLS module in FreeRADIUS
2013-01-17 15:22:08 +01:00
Tobias Brunner
d47b751850
Add recipes for libtnc and TNC@FHH
2013-01-17 15:22:08 +01:00
Tobias Brunner
669fc9f9ec
Copy and display host specific tcpdump.log files
2013-01-17 15:22:08 +01:00
Tobias Brunner
b460fb1dd2
Drop SHAREDTREE in favor of mounting the compile dir
2013-01-17 15:22:08 +01:00
Tobias Brunner
633bee03fc
Patch EAP-SIM module in FreeRADIUS
2013-01-17 15:22:08 +01:00
Tobias Brunner
d94f6a2ff6
Don't generate do-tests
2013-01-17 15:22:08 +01:00
Reto Buerki
533177003c
Adapt test configurations
...
Adapt test configurations to the new Debian-based system.
2013-01-17 15:22:07 +01:00
Reto Buerki
766466b8d1
Adapt host configuration
...
Adapt the configuration of the test hosts to the new Debian-based
system.
2012-12-18 16:00:21 +01:00
Reto Buerki
108040800d
Add recipe for iptables
2012-12-18 16:00:21 +01:00
Reto Buerki
adbb5cbd43
Add freeradius recipe
2012-12-18 16:00:21 +01:00
Reto Buerki
e61ce6ee02
Factor out building of strongswan into own Makefile
...
Small Makefiles (recipes) are used to install software from source into
the root UML image.
2012-12-18 16:00:21 +01:00
Reto Buerki
aa5803e0e3
testing: Switch to Debian based guest images
...
Instead of extracting a downloaded Gentoo filesystem tree into a file
containing a reiserfs filesystem, create an ext3 filesystem inside a
sparse file, mount it and debootstrap an up-to-date Debian system. Use
this image as base for all UML guest images.
Also, drop support for the various consoles and use xterm
unconditionally.
2012-12-18 16:00:21 +01:00
Tobias Brunner
0080daa787
Fix deadlock in IMC/IMV managers
...
Since reserve_id() might be called from e.g. notify_connection_change()
using a write lock will not work as this can't be acquired while holding
the read lock.
Also, with the previous code it was possible that two IMCs/IMVs added by
two threads at the same time would get the same ID assigned.
2012-12-18 15:59:29 +01:00
Tobias Brunner
6a8eeba540
Properly select IMC/IMV according to given primary ID in reserve_id()
2012-12-18 15:59:29 +01:00
Martin Willi
4185c64464
Use a ./configure check to detect pthread spinlock availability
...
_POSIX_SPIN_LOCKS does not seem to be defined correctly on all
systems (Debian libc 2.3.6). Fixes #262 .
2012-12-18 09:51:33 +01:00
Martin Willi
544c2e3d7b
kernel-netlinks get_interface() considers virtual IPs, too
...
When using load-tester, we can install tunnel outer addresses on
demand. As these are installed as "virtual", we have to consider
virtual IPs in the get_interface() lookup to install "real" virtual
IPs to these dynamic external addresses.
2012-12-17 14:23:44 +01:00
Martin Willi
d9d0f12222
If load-tester requests a virtual IP, use a dynamic local traffic selector
2012-12-17 14:22:25 +01:00
Martin Willi
fe3060f5d0
Add missing CHILD_SA specific proposal keyword in conftest README
2012-12-17 10:58:47 +01:00
Tobias Brunner
283898d6e0
Fix traffic selectors also as initiator in case of transport mode over NAT
2012-12-13 15:27:29 +01:00
Tobias Brunner
2990671748
Fix debug output if responder selected invalid traffic selectors during QM
2012-12-13 15:27:28 +01:00
Andreas Steffen
45b5203f5d
fixed memory leak in TPM Version Info
2012-12-13 11:10:38 +01:00