Browse Source

Support testing on Fedora

Try both flavors of the kvm binary, and test with minimal RAM.

Change-Id: I58e0024be184d55d32f21d4b16733df909fd7844
changes/04/426804/1
Ben Swartzlander 2 years ago
parent
commit
d341b73a9a
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      test-image.sh

+ 6
- 1
test-image.sh View File

@@ -1,7 +1,12 @@
1 1
 #!/bin/sh
2 2
 
3
+KVM=kvm
4
+if ! which $KVM 2> /dev/null ; then
5
+    KVM=qemu-kvm
6
+fi
7
+
3 8
 qemu-img create -f qcow2 -b client.qcow2 client-test.qcow2
4
-kvm -m 512 -monitor none -nographic \
9
+$KVM -m 64 -monitor none -nographic \
5 10
     -drive file=client-test.qcow2,if=virtio,format=qcow2 \
6 11
     -netdev user,id=net0 -device virtio-net-pci,netdev=net0
7 12
 rm client-test.qcow2

Loading…
Cancel
Save