#!/bin/sh #set -e dmesg|grep 'Hyp mode initialized successfully' && echo kvm-init-1: pass || echo kvm-init-1: fail wget --no-check-certificate -nv https://snapshots.linaro.org/kernel-hwpack/linux-vexpress-kvm/linux-vexpress-kvm/kvm.qcow2.gz gunzip kvm.qcow2.gz modprobe nbd max_part=16 qemu-nbd -c /dev/nbd0 kvm.qcow2 mount /dev/nbd0p2 /mnt/ cp /mnt/boot/vmlinuz-*-linaro-vexpress ./zImage cp /mnt/lib/firmware/*-linaro-vexpress/device-tree/rtsm_ve-cortex_a15x1.dtb . cp kvm-lava.conf /mnt/etc/init/kvm-lava.conf cp hackbench /mnt/usr/bin/hackbench chmod 777 /mnt/usr/bin/hackbench cp test-rt-tests.sh /mnt/root/test-rt-tests.sh chmod 777 /mnt/root/test-rt-tests.sh umount /mnt qemu-system-arm -smp 2 -m 1024 -cpu cortex-a15 -M vexpress-a15 -kernel ./zImage -dtb ./rtsm_ve-cortex_a15x1.dtb -append 'root=/dev/mmcblk0p2 rw rootwait mem=1024M console=ttyAMA0,38400n8' -drive if=sd,cache=writeback,file=kvm.qcow2,id=foo -device virtio-blk-device,drive=foo -redir tcp:5022::22 -nographic -enable-kvm 2>&1|tee kvm-log.txt if ! grep -q "kvm-boot-1:" kvm-log.txt then echo "kvm-boot-1: fail" fi if ! grep -q "kvm-hackbench:" kvm-log.txt then echo "kvm-hackbench: fail" fi if ! grep -q "kvm-cyclictest:" kvm-log.txt then echo "kvm-cyclictest: fail" fi