Received: from eggs.gnu.org ([208.118.235.92]:43494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5cIC-0005XY-5W for qemu-devel@nongnu.org; Thu, 08 Mar 2012 07:18:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5cI5-0007n5-Q2 for qemu-devel@nongnu.org; Thu, 08 Mar 2012 07:17:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5cI5-0007mh-IW for qemu-devel@nongnu.org; Thu, 08 Mar 2012 07:17:53 -0500 Date: Thu, 8 Mar 2012 09:17:42 -0300 From: Ademar Reis Message-ID: <20120308121742.GA3509@t420s.optimusnet> References: <4F582EDB.1040608@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable 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: Stefan Hajnoczi Cc: Lucas Meneghel Rodrigues , QEMU devel , Scott Zawalski , Cleber Rosa , Autotest Mailing List , "kvm-autotest@redhat.com" On Thu, Mar 08, 2012 at 11:54:31AM +0000, Stefan Hajnoczi wrote: > On Thu, Mar 8, 2012 at 11:44 AM, Stefan Hajnoczi w= rote: > > On Thu, Mar 8, 2012 at 4:00 AM, Lucas Meneghel Rodrigues wrote: > >> One of our main goals is to provide useful tools for the qemu commun= ity, > >> since we have a good number of tests and libraries written to perfor= m > >> integration/QA testing for that tool, being successfuly used by a nu= mber of > >> QA teams that work on qemu. Also, we recently provided a subset of t= hat > >> infrastructure to test libvirt, one of our virtualization projects o= f > >> interest. > > > > Thanks for sharing. >=20 > One thing I should have added is that my message is about what it > would take for me to use autotest and contribute tests. But now I > realize that you might be going for a different model: >=20 > If you're aiming for a different model where autotest integrates > external test suites (i.e. tests wouldn't be written in autotest.git, > instead autotest.git would contain snapshots of external test suites), > then this proposal seems fine. Upstream projects like QEMU would > develop their own test suite and it would be dropped into autotest or > a specific autotest instance. >=20 Yes, that's the idea. We want autotest to be the framework, not (just a) collection of tests. We also want each development team to implement and maintain their own set of tests, using (or not) the goodies from autotest at their discretion. In summary, autotest is (or is going to be) a framework that provides: - A test runner, with grid/cluster support and advanced instrumentation - A devel library and set of utilities for test writers - A set of pre-built images (JeOS =E2=80=93 Just Enough OS) for test writers=20 (attached is a picture showing what we want to achieve) If a project has an internal library or set of utilities that can be of general use, they can be submitted to autotest.git for inclusion, thus reaching a broader audience. A short summary of the plans: - Tests can live anywhere and each devel team implements and maintains their own set of tests - Usage of the autotest library by test writers is optional - Tests are scripts returning 0 or error (any language) - Tests can be run individually or in sets - Tests should run fast, our target is seconds or a few minutes - The test runner is smart and =E2=80=9Cjust works=E2=80=9D by default - Trivial standard output (FAIL, PASS, SKIPPED) - Collect logs, OS data and other stuff (e.g. --record-video!) - Skip unsupported tests based on the environment they're run - Multiplex configurations / platforms when on the grid - Support to run tests =E2=80=9Cin the cloud=E2=80=9D There are also lots of small changes and usability improvements in the pipeline (and feedback right now is very valuable). Thanks, - Ademar --=20 Ademar de Souza Reis Jr. Red Hat ^[:wq!