summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2014-06-11 14:03:37 +0300
committerRiku Voipio <riku.voipio@linaro.org>2014-06-11 14:21:54 +0300
commita24d57995fc0decb682e5548dbf3faca270987c3 (patch)
treed168a9387d7c0420d30d8811f0fe1dc391936a40 /common
parentb32c50b2446f33bf05ab5d04ac01c706b2ee30aa (diff)
move to virtio block
Switch to virtio block, since sd is emulated interface. While at it, improve installing and compiling hackbench. Avoid compiling in steps since we have scripts in place. Make sure we have gcc and others installed for compiling. Change-Id: I942e6bbafb09b7739156fb8d15f41c6334f16c8c Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'common')
-rwxr-xr-xcommon/scripts/kvm/test-host.sh11
-rwxr-xr-xcommon/scripts/kvm/test-kvm.sh5
2 files changed, 14 insertions, 2 deletions
diff --git a/common/scripts/kvm/test-host.sh b/common/scripts/kvm/test-host.sh
index 98a55bb..38556c3 100755
--- a/common/scripts/kvm/test-host.sh
+++ b/common/scripts/kvm/test-host.sh
@@ -1,4 +1,15 @@
#!/bin/sh
+echo "Compile hackbench"
+if hash curl 2>/dev/null; then
+ DOWNLOAD_FILE="curl -SOk"
+else
+ DOWNLOAD_FILE="wget --progress=dot -e dotbytes=2M --no-check-certificate"
+fi
+
+$DOWNLOAD_FILE http://people.redhat.com/mingo/cfs-scheduler/tools/hackbench.c
+gcc -g -Wall -O2 -o hackbench hackbench.c -lpthread
+cp hackbench /usr/bin/
+
echo "Test hackbench on host"
sh ./common/scripts/kvm/test-rt-tests.sh
diff --git a/common/scripts/kvm/test-kvm.sh b/common/scripts/kvm/test-kvm.sh
index de0d2a2..91eb2d9 100755
--- a/common/scripts/kvm/test-kvm.sh
+++ b/common/scripts/kvm/test-kvm.sh
@@ -85,10 +85,11 @@ ping -W 4 -c 10 192.168.1.10 && echo "$KVM_HOST_NET 0 pc pass" || echo "$KVM_HOS
qemu-system-arm -smp 2 -m 1024 -cpu cortex-a15 -M vexpress-a15 \
-kernel ./zImage -dtb ./vexpress-v2p-ca15-tc1.dtb \
- -append 'root=/dev/mmcblk0p2 rw rootwait mem=1024M console=ttyAMA0,38400n8' \
- -drive if=sd,cache=writeback,file=kvm.qcow2 \
+ -append 'root=/dev/vda2 rw rootwait mem=1024M console=ttyAMA0,38400n8' \
+ -drive if=none,id=image,file=kvm.qcow2 \
-netdev tap,id=tap0,script=no,downscript=no,ifname="tap0" \
-device virtio-net-device,netdev=tap0 \
+ -device virtio-blk-device,drive=image \
-nographic -enable-kvm \
2>&1|tee kvm-log.txt