#!/usr/bin/python import sys from qemu_ubuntu_test import qemu_ubuntu_test if len(sys.argv) != 2: print "Usage: qemu_ubuntu_quick_test.py kernel" sys.exit(1) kernel = sys.argv[1] print "Testing PAPR virtual IO" q = qemu_ubuntu_test(kvm=False, kernel=kernel, cmdline='root=/dev/sda1 rw') q.simple_test(timeout=1200) q.close()
#!/usr/bin/python import sys from qemu_ubuntu_test import qemu_ubuntu_test if len(sys.argv) != 3: print "Usage: qemu_ubuntu_kernel_rebootme.py kernel iterations" sys.exit(1) kernel = sys.argv[1] iterations = int(sys.argv[2]) q = qemu_ubuntu_test(kvm=True, cores=8, threads=8, kernel=kernel, cmdline='root=/dev/sda1 rw', virtio=True) q.boot() for i in range(iterations): q.login() q.child.sendline('shutdown -r now') q.wait_for_login()
#!/usr/bin/python import sys from qemu_ubuntu_test import qemu_ubuntu_test if len(sys.argv) != 2: print "Usage: qemu_ubuntu_qemu_test.py qemu_binary" sys.exit(1) qemu = sys.argv[1] print "Testing PAPR virtual IO" q = qemu_ubuntu_test(qemu=qemu, kvm=False) q.simple_test(timeout=1200) q.close() print "Testing virtio virtual IO" q = qemu_ubuntu_test(qemu=qemu, kvm=False, virtio=True) q.simple_test(timeout=1200) q.close()
#!/usr/bin/python import sys from qemu_ubuntu_test import qemu_ubuntu_test if len(sys.argv) != 2: print "Usage: qemu_ubuntu_qemu_test.py qemu_binary" sys.exit(1) qemu = sys.argv[1] print "Testing PAPR virtual IO" q = qemu_ubuntu_test(qemu=qemu, kvm='PR') q.simple_test(timeout=120) q.close() print "Testing virtio virtual IO" q = qemu_ubuntu_test(qemu=qemu, kvm='PR', virtio=True) q.simple_test(timeout=120) q.close() print "Testing SMP" q = qemu_ubuntu_test(qemu=qemu, kvm='PR', cores=8, threads=1) q.simple_test(timeout=120) q.close() print "Testing QEMU full emulation" q = qemu_ubuntu_test(qemu=qemu, kvm=False) q.simple_test(timeout=1200) q.close()