autotest/autotest — pull request #107 by jzupka (2011-12-07 11:05:01+00:00)
Title: Adds cpuflags test and subtest interface.

This patch add tests for testing cpu flags in qemu:
a) interface cpu flags tests
1) qemu -cpu ?model
2) qemu -cpu ?dump
3) qemu -cpu ?cpuid
b) guest run cpu flags tests
1) Test boot cpu model.
2) Test boot cpu model and additiona/nonstandard model flags.
3) Test boot fail with host unsupported flags.
4) Test boot guest and try flags under load.
5) Test online offline guest CPUs under load.

There is new c program cpuflags-test which is able to test
main Intel cpu flags now . There will be extension for test
AMD cpuflags etc in next version.. This program ensure to test special
instruction provides cpuflags like rdrand etc..

RFC:

In addition, there is subtest interface. This is class and some
decorators for easy way of start function like a subtest.
Subtests result are collected and it is posible for review on end of test.
Subtest class and decorators should be placed in autotest_lib.client.utils.

Signed-off-by: Jiří Župka