summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Swartzlander <ben@swartzlander.org>2017-01-30 10:09:31 -0500
committerBen Swartzlander <ben@swartzlander.org>2017-01-30 10:09:31 -0500
commitd341b73a9ac9c6c25312fe01e49cd394058cd95b (patch)
tree32c6f119735c3262fcf8ed24e7a03fb334be3c09
parent0c98cfee3e32452f2be3a4bf9aa532d10ba15249 (diff)
Support testing on Fedora
Try both flavors of the kvm binary, and test with minimal RAM. Change-Id: I58e0024be184d55d32f21d4b16733df909fd7844
Notes
Notes (review): Code-Review+2: Tom Barron <tpb@dyncloud.net> Code-Review+2: Mark Sturdevant <mark.sturdevant@ibm.com> Workflow+1: Mark Sturdevant <mark.sturdevant@ibm.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 02 Feb 2017 00:09:34 +0000 Reviewed-on: https://review.openstack.org/426804 Project: openstack/manila-test-image Branch: refs/heads/master
-rwxr-xr-xtest-image.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/test-image.sh b/test-image.sh
index d85e577..9d92b76 100755
--- a/test-image.sh
+++ b/test-image.sh
@@ -1,7 +1,12 @@
1#!/bin/sh 1#!/bin/sh
2 2
3KVM=kvm
4if ! which $KVM 2> /dev/null ; then
5 KVM=qemu-kvm
6fi
7
3qemu-img create -f qcow2 -b client.qcow2 client-test.qcow2 8qemu-img create -f qcow2 -b client.qcow2 client-test.qcow2
4kvm -m 512 -monitor none -nographic \ 9$KVM -m 64 -monitor none -nographic \
5 -drive file=client-test.qcow2,if=virtio,format=qcow2 \ 10 -drive file=client-test.qcow2,if=virtio,format=qcow2 \
6 -netdev user,id=net0 -device virtio-net-pci,netdev=net0 11 -netdev user,id=net0 -device virtio-net-pci,netdev=net0
7rm client-test.qcow2 12rm client-test.qcow2