From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VO6J7-0002wZ-GG for qemu-devel@nongnu.org; Mon, 23 Sep 2013 09:36:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VO6Ix-0006R7-PU for qemu-devel@nongnu.org; Mon, 23 Sep 2013 09:36:09 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35234 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VO6Ix-0006QZ-GA for qemu-devel@nongnu.org; Mon, 23 Sep 2013 09:35:59 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 23 Sep 2013 15:35:34 +0200 Message-Id: <1379943352-1979-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v3 00/18] qtest: Test all targets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Aur=C3=A9lien=20Jarno?= , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Anthony Liguori , Paolo Bonzini Hello, As discussed on the KVM Call, this series extends test coverage to all 16= targets. For now it tests that QOM type changes do not lead to QOM cast assertions= . v3 macro'fies and cleans up ppcemb machine test setup. There was a discussion of dropping usage of qtest_enabled() in favor of n= ever erroring out in machine inits but Aur=C3=A9lien went ahead to restore mip= s error behavior, Markus suggested as alternative to supply dummy blobs and real = blobs per machine seem infeasible. This solution seems the easiest way forward,= be it an interim solution, so I am planning to take this through qom-next befor= e I pull in more QOM realize conversions on so far untested machines. Similar= ly I see it as more important to get test coverage quickly than waiting for = a working QMP query-machines based solution; if we do more than just machin= e instantiation, we will need to pass in machine-specific QOM paths anyway. Regards, Andreas v2 -> v3: * Rebased onto mips and Makefile changes; ppc patches were applied. * Use macros for machine list traversal. v1 -> v2: * gumstix, z2: Avoided conditionalizing use of pflash device in favor of = NULL bdrv. * puv3: Limited qtest workaround to a NULL kernel_filename. * Added error workarounds for milkymist, ppc405, shix and leon3. * Cleaned up debug output for ppc405 and shix. * Extended qom-test to cover virtually all machines, including n800 and p= c. * Moved machine names to arrays wherever sensible, to aid with extensibil= ity. * Adopted error_report() for armv7m, too. Cc: Anthony Liguori Cc: Aur=C3=A9lien Jarno Cc: Paolo Bonzini Cc: Peter Maydell Andreas F=C3=A4rber (18): mips_mipssim: Silence BIOS loading warning for qtest arm/boot: Turn arm_load_kernel() into no-op for qtest without -kernel puv3: Turn puv3_load_kernel() into a no-op for qtest without -kernel mainstone: Don't enforce use of -pflash for qtest gumstix: Don't enforce use of -pflash for qtest z2: Don't enforce use of -pflash for qtest palm: Don't enforce loading ROM or kernel for qtest omap_sx1: Don't enforce use of kernel or flash for qtest exynos4_boards: Silence lack of -smp 2 warning for qtest armv7m: Don't enforce use of kernel for qtest axis_dev88: Don't enforce use of kernel for qtest mcf5208: Don't enforce use of kernel for qtest an5206: Don't enforce use of kernel for qtest milkymist: Suppress -kernel/-bios/-drive error for qtest shix: Drop debug output shix: Don't require firmware presence for qtest leon3: Don't enforce use of -bios with qtest qtest: Prepare QOM machine tests hw/arm/armv7m.c | 25 ++--- hw/arm/boot.c | 4 + hw/arm/exynos4_boards.c | 3 +- hw/arm/gumstix.c | 11 ++- hw/arm/mainstone.c | 5 +- hw/arm/omap_sx1.c | 3 +- hw/arm/palm.c | 3 +- hw/arm/z2.c | 5 +- hw/block/tc58128.c | 10 +- hw/cris/axis_dev88.c | 11 ++- hw/lm32/milkymist.c | 3 +- hw/m68k/an5206.c | 4 + hw/m68k/mcf5208.c | 4 + hw/mips/mips_mipssim.c | 4 +- hw/sh4/shix.c | 16 +-- hw/sparc/leon3.c | 3 +- hw/unicore32/puv3.c | 4 + tests/Makefile | 26 +++++ tests/qom-test.c | 253 ++++++++++++++++++++++++++++++++++++++++++= ++++++ 19 files changed, 353 insertions(+), 44 deletions(-) create mode 100644 tests/qom-test.c --=20 1.8.1.4