Add ethtool to debootstrap package includes
[strongswan.git] / testing / stop-testing
1 #!/bin/bash
2
3 . $PWD/scripts/function.sh
4
5 echo "Stopping test environment"
6
7 NETWORKS="vnet1 vnet2 vnet3"
8 KNLTARGET=/var/run/kvm-swan-kernel
9
10 [ `id -u` -eq 0 ] || die "You must be root to run $0"
11
12 check_commands virsh
13
14 for net in $NETWORKS
15 do
16         log_action "Network $net"
17         execute "virsh net-destroy $net"
18 done
19
20 for host in $STRONGSWANHOSTS
21 do
22         log_action "Guest $host"
23         execute "virsh destroy $host"
24         rm -f $VIRTIMGSTORE/$host.$IMGEXT
25 done
26
27 log_action "Removing kernel $KERNEL"
28 execute "rm $KNLTARGET"