All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] bios-tables-test: split piix4 and q35 tests
@ 2015-01-19 16:50 Paolo Bonzini
  2015-01-19 16:58 ` John Snow
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2015-01-19 16:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: mst

This makes it clear which one is failing.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 tests/bios-tables-test.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c
index 2519f7d..4d0fa84 100644
--- a/tests/bios-tables-test.c
+++ b/tests/bios-tables-test.c
@@ -765,7 +765,7 @@ static void test_acpi_one(const char *params, test_data *data)
     g_free(args);
 }
 
-static void test_acpi_tcg(void)
+static void test_acpi_piix4_tcg(void)
 {
     test_data data;
 
@@ -776,6 +776,11 @@ static void test_acpi_tcg(void)
     data.machine = MACHINE_PC;
     test_acpi_one("-machine accel=tcg", &data);
     free_test_data(&data);
+}
+
+static void test_acpi_q35_tcg(void)
+{
+    test_data data;
 
     memset(&data, 0, sizeof(data));
     data.machine = MACHINE_Q35;
@@ -799,7 +804,8 @@ int main(int argc, char *argv[])
     g_test_init(&argc, &argv, NULL);
 
     if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) {
-        qtest_add_func("acpi/tcg", test_acpi_tcg);
+        qtest_add_func("acpi/piix4/tcg", test_acpi_piix4_tcg);
+        qtest_add_func("acpi/q35/tcg", test_acpi_q35_tcg);
     }
     ret = g_test_run();
     unlink(disk);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] bios-tables-test: split piix4 and q35 tests
  2015-01-19 16:50 [Qemu-devel] [PATCH] bios-tables-test: split piix4 and q35 tests Paolo Bonzini
@ 2015-01-19 16:58 ` John Snow
  0 siblings, 0 replies; 2+ messages in thread
From: John Snow @ 2015-01-19 16:58 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: mst



On 01/19/2015 11:50 AM, Paolo Bonzini wrote:
> This makes it clear which one is failing.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>   tests/bios-tables-test.c | 10 ++++++++--
>   1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c
> index 2519f7d..4d0fa84 100644
> --- a/tests/bios-tables-test.c
> +++ b/tests/bios-tables-test.c
> @@ -765,7 +765,7 @@ static void test_acpi_one(const char *params, test_data *data)
>       g_free(args);
>   }
>
> -static void test_acpi_tcg(void)
> +static void test_acpi_piix4_tcg(void)
>   {
>       test_data data;
>
> @@ -776,6 +776,11 @@ static void test_acpi_tcg(void)
>       data.machine = MACHINE_PC;
>       test_acpi_one("-machine accel=tcg", &data);
>       free_test_data(&data);
> +}
> +
> +static void test_acpi_q35_tcg(void)
> +{
> +    test_data data;
>
>       memset(&data, 0, sizeof(data));
>       data.machine = MACHINE_Q35;
> @@ -799,7 +804,8 @@ int main(int argc, char *argv[])
>       g_test_init(&argc, &argv, NULL);
>
>       if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) {
> -        qtest_add_func("acpi/tcg", test_acpi_tcg);
> +        qtest_add_func("acpi/piix4/tcg", test_acpi_piix4_tcg);
> +        qtest_add_func("acpi/q35/tcg", test_acpi_q35_tcg);
>       }
>       ret = g_test_run();
>       unlink(disk);
>

Reviewed-by: John Snow <jsnow@redhat.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-19 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-19 16:50 [Qemu-devel] [PATCH] bios-tables-test: split piix4 and q35 tests Paolo Bonzini
2015-01-19 16:58 ` John Snow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.