From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5zUM-0002hD-G2 for qemu-devel@nongnu.org; Fri, 09 Mar 2012 08:04:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5zUH-0006WS-MZ for qemu-devel@nongnu.org; Fri, 09 Mar 2012 08:04:06 -0500 Received: from mail-gy0-f173.google.com ([209.85.160.173]:52276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5zUH-0006Ul-FA for qemu-devel@nongnu.org; Fri, 09 Mar 2012 08:04:01 -0500 Received: by ghrr14 with SMTP id r14so960826ghr.4 for ; Fri, 09 Mar 2012 05:03:59 -0800 (PST) Sender: Paolo Bonzini Message-ID: <4F59FFB8.1060801@redhat.com> Date: Fri, 09 Mar 2012 14:03:52 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <4F582EDB.1040608@redhat.com> <4F58B5CB.8040503@codemonkey.ws> <20120308144958.GA25750@t420s.optimusnet> <4F58C897.5020405@codemonkey.ws> <20120308150722.GA30576@t420s.optimusnet> <4F58CCBA.9000702@codemonkey.ws> <20120308160505.GA32360@t420s.optimusnet> <4F58E67A.3050708@codemonkey.ws> <20120308175907.GA4900@t420s.optimusnet> In-Reply-To: <20120308175907.GA4900@t420s.optimusnet> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ademar Reis Cc: Lucas Meneghel Rodrigues , QEMU devel , Scott Zawalski , Anthony Liguori , Cleber Rosa , "kvm-autotest@redhat.com" Il 08/03/2012 18:59, Ademar Reis ha scritto: > unit-test: > void main() > { > my_function(); > } > > integration test (or validation test): > void main() > { > exec("my-application"); > } > > But that's all semantics, not important for this discussion IMO. We do have some "real" unit tests in QEMU, but because a large part of it is not suitable to inclusion as a library, there's also something in the middle for QEMU. Both qtest and qemu-io-tests are in some sense integration tests because they need working binaries (respectively qemu and qemu-io). However, the protocol spoken to the binary, and the kind of stimuli in the test are designed to affect a particular function or module of QEMU; that makes the tests more similar to a unit test, especially for qtest which is written using gtest or PyUnit. This is where we want to have most of test case growth in the not-so-long term. Paolo