Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7726FC46499 for ; Fri, 5 Jul 2019 15:46:44 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4F8172184C for ; Fri, 5 Jul 2019 15:46:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4F8172184C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:54266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjQQ6-00027z-FJ for qemu-devel@archiver.kernel.org; Fri, 05 Jul 2019 11:46:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35906) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjQNh-0001ew-Dm for qemu-devel@nongnu.org; Fri, 05 Jul 2019 11:44:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjQNZ-0001eP-Ru for qemu-devel@nongnu.org; Fri, 05 Jul 2019 11:44:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49256) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hjQNW-0001Ac-Kn for qemu-devel@nongnu.org; Fri, 05 Jul 2019 11:44:04 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F37FA308FC20 for ; Fri, 5 Jul 2019 15:43:58 +0000 (UTC) Received: from localhost.localdomain (ovpn-120-45.rdu2.redhat.com [10.10.120.45]) by smtp.corp.redhat.com (Postfix) with ESMTP id 268BD6AD41; Fri, 5 Jul 2019 15:43:52 +0000 (UTC) To: Cleber Rosa , Eduardo Habkost References: <20190628150217.32659-1-wainersm@redhat.com> <20190628150217.32659-4-wainersm@redhat.com> <20190628201846.GK1862@habkost.net> <20190630173933.GB2820@localhost.localdomain> <20190701183451.GF5198@habkost.net> <20190701202910.GA26789@localhost.localdomain> From: Wainer dos Santos Moschetta Message-ID: <7d211419-7d96-ab98-397d-295ebec5c9bf@redhat.com> Date: Fri, 5 Jul 2019 12:43:51 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20190701202910.GA26789@localhost.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Fri, 05 Jul 2019 15:43:59 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: Re: [Qemu-devel] [PATCH 3/3] tests/acceptance: Add boot linux with kvm test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: philmd@redhat.com, jsnow@redhat.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 07/01/2019 05:29 PM, Cleber Rosa wrote: > On Mon, Jul 01, 2019 at 03:34:51PM -0300, Eduardo Habkost wrote: >> Agreed that kvm:tcg fallback I suggested isn't a good idea. >> However, do we really want to require a separate test method to >> be written just because we want to use a different accelerator or >> other QEMU option? >> > No, in the short term we want to have tests that can respond to a > number of well known parameters, such as "accel". But to actually > have tests (names) that are meaningful enough, we need to: > > 1) Add a varianter implementation (or usage) > 2) Drop the duplicate tests > > #1 is needed because: > > a) it doesn't feel right to name tests based on simple command > line parameters (the ones given with -p, say, "-p accel=kvm" > will add to the test name "accel_kvm". > > b) a variant *name* is added to the test ID, which then can be > kept consistent. > > Then we can proceed to #2, and drop the duplicate tests, say: > > - test_x86_64_pc, test_x86_64_pc_kvm => test_x86_64_pc > > On a further iteration, it may even make sense to consolidate: > > - test_x86_64_pc, test_x86_64_q35 => test_x86_64 > > Time will tell. > >> This patch may be the simplest solution short term, but can we >> have something that doesn't require so much code duplication and >> boilerplate code in the future? > Yes, the new implementation of the Varianter CIT is now generally > available on Avocado 70.0, so I'm working on a file that hopefully > will suite the acceptance tests. Cleber, Eduardo, that's a good discussion. I was expecting we would eventually evolve the acceptance tests to use Avocado varianter feature. Now I think what to do with this series. I can see the usefulness of patch 01 when you want to, for example, start qemu expecting a crash or just want to gather information from command-line (qemu -cpu help, qemu -accel help...etc). The implementation on patch 02 to check the availability of accelerators seems desirable even on this (near, maybe) future where tests can be automatically derived. Thus, can we merge patches 01 and 02 only? Of course, if they pass the reviews. Thanks! - Wainer > >> -- >> Eduardo > Best, > - Cleber.