qemu-test: add support for named choices master
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 13 Jan 2012 16:05:14 +0000 (10:05 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 13 Jan 2012 16:05:14 +0000 (10:05 -0600)
commit6a860069316da7380e676646c538e1ee840bc097
tree4e65ffb907c2dfb2b288d1347cbdf9d581c90661
parent35041d7dd9a341163d69ef1dff688f3f86c6f38b
qemu-test: add support for named choices

You can now use a git-config style configuration file to set the possible values
for named choices.

You can create multiple profiles for each test case and then use the
QEMU_TEST_PROFILE variable to select the profile to use.

With this commit, you can do add the following to ~/.qemu-testrc

[simple-ping "tier1"]
nic = virtio e1000 rtl8139

And then run qemu-test like:

$ QEMU_TEST_PROFILE=tier1 ./qemu-test qemu-system-x86_64 tests/simple-ping.sh

And the test will only test the tier1 network cards.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-test
tests/simple-ping.sh