summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcommon/scripts/kvm/test-host.sh11
-rwxr-xr-xcommon/scripts/kvm/test-kvm.sh5
-rw-r--r--ubuntu/kvm.yaml5
3 files changed, 15 insertions, 6 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
diff --git a/ubuntu/kvm.yaml b/ubuntu/kvm.yaml
index 337492a..e867c72 100644
--- a/ubuntu/kvm.yaml
+++ b/ubuntu/kvm.yaml
@@ -22,10 +22,7 @@ install:
- bridge-utils
- udhcpc
- wget
- steps:
- - 'wget http://people.redhat.com/mingo/cfs-scheduler/tools/hackbench.c'
- - 'gcc -g -Wall -O2 -o hackbench hackbench.c -lpthread'
- - 'cp hackbench /usr/bin/'
+ - build-essential
run:
steps: