[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [Qemu-devel] [PATCH v2 8/8] qtest: Add boot order test
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-stable] [Qemu-devel] [PATCH v2 8/8] qtest: Add boot order test |
Date: |
Mon, 25 Feb 2013 09:09:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
Andreas Färber <address@hidden> writes:
> Am 22.02.2013 18:20, schrieb Markus Armbruster:
>> diff --git a/tests/boot-order-test.c b/tests/boot-order-test.c
>> new file mode 100644
>> index 0000000..60412ad
>> --- /dev/null
>> +++ b/tests/boot-order-test.c
> [...]
>> +static void test_pc_with_args(const char *args, uint8_t boot1, uint8_t
>> boot2,
>> + uint8_t reboot1, uint8_t reboot2)
>> +{
>> + char *extra_args = g_strdup_printf("-nodefaults -display none -S %s",
>> + args);
>
> Why do you add -S here? qtest is an accel mode of its own and should
> never execute anything.
Brain fart, dropping.
> Also in my code I found it more logical to add extra args to args rather
> than the reverse, not just because of 80 chars limit when trying to add
> -machine argument. ;)
Point taken :)
> I assume q35 is reusing pc code? Or should it be tested as well?
> (Having any of our qtests cover it would be nice.)
They share the RTC CMOS setup.
>> + qtest_start(extra_args);
>> + test_cmos(boot1, boot2);
>
>> + qtest_qmp(global_qtest, "{ 'execute': 'system_reset' }");
>
> qmp()?
Yes.
>> + test_cmos(reboot1, reboot2);
>> + qtest_quit(global_qtest);
>> + g_free(extra_args);
>> +}
> [snip]
Thanks!
- [Qemu-stable] [PATCH v2 1/8] vl: Clean up parsing of -boot option argument, (continued)
- [Qemu-stable] [PATCH v2 1/8] vl: Clean up parsing of -boot option argument, Markus Armbruster, 2013/02/22
- [Qemu-stable] [PATCH v2 4/8] vl: Rename *boot_devices to *boot_order, for consistency, Markus Armbruster, 2013/02/22
- [Qemu-stable] [PATCH v2 5/8] pc: Make -no-fd-bootchk stick across boot order changes, Markus Armbruster, 2013/02/22
- [Qemu-stable] [PATCH v2 6/8] pc: Drop ref to Bochs from -no-fd-bootchk documentation, Markus Armbruster, 2013/02/22
- [Qemu-stable] [PATCH v2 7/8] qtest: Don't reset on qtest chardev connect, Markus Armbruster, 2013/02/22
- [Qemu-stable] [PATCH v2 8/8] qtest: Add boot order test, Markus Armbruster, 2013/02/22