2 # Create the strongSwan UML testing environment
4 # Copyright (C) 2004 Eric Marchionni, Patrik Rayo
5 # Zuercher Hochschule Winterthur
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>.
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
19 source $DIR/scripts/function.sh
21 [ -f $DIR/testing.conf ] || die "!! Configuration file 'testing.conf' not found."
23 source $DIR/testing.conf
28 HOSTS=$STRONGSWANHOSTS
33 ##########################################################################
36 if [ $ENABLE_BUILD_BASEIMAGE = "yes" ]
38 $DIR/scripts/build-baseimage
41 ##########################################################################
42 # build the UML kernel based on a vanilla kernel form kernel.org
43 # and a matching UML patch from user-mode-linux.sourceforge.net
45 if [ $ENABLE_BUILD_UMLKERNEL = "yes" ]
47 $DIR/scripts/build-umlkernel
50 ##########################################################################
51 # build a generic UML root file system based on a Gentoo root file system.
52 # compile and install a specified strongSwan release into the file system.
54 if [ $ENABLE_BUILD_UMLROOTFS = "yes" ]
56 $DIR/scripts/build-umlrootfs
59 ##########################################################################
60 # Creating the root filesystems for the specified UML instances
62 if [ $ENABLE_BUILD_UMLHOSTFS = "yes" ]
64 $DIR/scripts/build-umlhostfs $HOSTS