Received: from eggs.gnu.org ([2001:4830:134:3::10]:54148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmpHv-00084s-2h for qemu-devel@nongnu.org; Tue, 20 May 2014 15:01:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmpHm-0004Zz-37 for qemu-devel@nongnu.org; Tue, 20 May 2014 15:01:23 -0400 Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:42985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmpHl-0004Zt-V9 for qemu-devel@nongnu.org; Tue, 20 May 2014 15:01:14 -0400 Received: by mail-qg0-f41.google.com with SMTP id j5so1515153qga.0 for ; Tue, 20 May 2014 12:01:13 -0700 (PDT) Date: Tue, 20 May 2014 15:01:11 -0400 From: "Gabriel L. Somlo" Message-ID: <20140520190111.GJ1657@ERROL.INI.CMU.EDU> References: <1400508595-23024-1-git-send-email-somlo@cmu.edu> <20140519194448.GA14502@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140519194448.GA14502@redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 0/3] SMBIOS cleanup round List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: pbonzini@redhat.com, lersek@redhat.com, qemu-devel@nongnu.org, kraxel@redhat.com On Mon, May 19, 2014 at 10:44:48PM +0300, Michael S. Tsirkin wrote: > Thanks! > One question: we don't seem to have unit-test for this > interface in qemu, do we? > I would like to see at least a basic test along the lines of > tests/acpi-test.c: run bios to load tables from QEMU, > then do some basic checks on the tables that bios loaded. Heh, this is starting to feel a bit like "work" ;) So, to be a good citizen, I took a look at acpi-test.c, and it feels like if I just attempted to "cargo-cult" it, creating a working unit test for the new smbios interface is going to take me a while... Is there anything I can RTFM that I could use to (more or less gently) teach myself how to write a sane QEMU unit test? Thanks much, --Gabriel > > > Gabriel L. Somlo (3): > > SMBIOS: Fix endian-ness when populating multi-byte fields > > SMBIOS: Update Type 0 struct generator for machines >= 2.1 > > SMBIOS: Fix type 17 field sizes > > > > hw/i386/smbios.c | 110 +++++++++++++++++++++++++---------------------- > > include/hw/i386/smbios.h | 10 ++--- > > qemu-options.hx | 4 +- > > 3 files changed, 65 insertions(+), 59 deletions(-) > > > > -- > > 1.9.0