2 # Start up the specified UML instances and wait for them to finish booting
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"
22 [ -d $DIR/hosts ] || die "Directory hosts cannot be found."
24 source $DIR/testing.conf
28 HOSTS=$STRONGSWANHOSTS
33 #####################################################
34 # start the uml bridges
36 cecho "Start the uml bridges (scripts/start-bridges)"
37 $DIR/scripts/start-bridges
40 #####################################################
41 # start the uml instances
45 cecho "Start the uml instances (scripts/kstart-umls)"
46 $DIR/scripts/kstart-umls $HOSTS
49 cecho "Start the uml instances (scripts/gstart-umls)"
50 $DIR/scripts/gstart-umls $HOSTS
53 cecho "Start the uml instances (scripts/xstart-umls)"
54 $DIR/scripts/xstart-umls $HOSTS
57 cecho "Start the uml instances (scripts/start-umls)"
58 $DIR/scripts/start-umls $HOSTS
61 die "The start mode is unknown! Please set $UMLSTARTMODE properly."
66 #####################################################
67 # do the automated testing
69 if [ $ENABLE_DO_TESTS = "yes" ]
71 cecho "Run the automated tests (do-tests)"
76 ##############################################################################
77 # stop all UML instances and switches
80 if [ $ENABLE_STOP_TESTING = "yes" ]
82 cecho "Stopping all UML instances and switches (stop-testing)"
83 $DIR/stop-testing $HOSTS