From nobody Mon Nov 10 22:25:49 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1559585665; cv=none; d=zoho.com; s=zohoarc; b=MHAs5CHpnawUth96Ews0BWMUypCWuYo7u88Eq5wwjQAnjSj+/G4et9EhvoemxV42l7NAuLniXkISKtcFbs3c+hMsIkmRV2PN3Lp0WRvMDX0gc0dnjEhV4QvHh3ouJRBOxawpn1GwcP7Zhh+lRKVU/jnWhWMSp4JjJfcWGx142ag= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559585665; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=nFPCh5odrVBik4hdEQQECWSU7rqWJuCuSRkfsEPasz4=; b=YDNxoCAVNuyp3F3Cz0RfKrfhuc63lS5IrwnaSwqk9dDz4IxWkk6kHPdH4xBHbnfjYbdHn5xixECCHLFILc3uZOOMK6Pc0KsrOK5k/Ghq377eC6u6SyWEPGewaex5vXKJHNuJpAduyHd+zfIKCkJl+t8VpdG4PEjjIlDvPfBMAko= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1559585665696946.3141155709661; Mon, 3 Jun 2019 11:14:25 -0700 (PDT) Received: from localhost ([127.0.0.1]:39009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXrTI-0005o9-B7 for importer@patchew.org; Mon, 03 Jun 2019 14:14:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXrOJ-00028k-Sb for qemu-devel@nongnu.org; Mon, 03 Jun 2019 14:09:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXrOI-0000bE-VH for qemu-devel@nongnu.org; Mon, 03 Jun 2019 14:09:03 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:34868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXrOI-0000ZS-QR for qemu-devel@nongnu.org; Mon, 03 Jun 2019 14:09:02 -0400 Received: by mail-qt1-f180.google.com with SMTP id d23so10559714qto.2 for ; Mon, 03 Jun 2019 11:09:02 -0700 (PDT) Received: from redhat.com (pool-100-0-197-103.bstnma.fios.verizon.net. [100.0.197.103]) by smtp.gmail.com with ESMTPSA id g124sm8099744qkf.55.2019.06.03.11.09.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 03 Jun 2019 11:09:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nFPCh5odrVBik4hdEQQECWSU7rqWJuCuSRkfsEPasz4=; b=XAzmUh72aWHIncCfTGBzHHYw1t16ouCGgTy2/c+okU79g4XFIe5Kq1sc2QE5ycE3e4 HvBC8tZaWwPjE3cxcWlri8ujxdtIU6i+i/ugRS3ZNqYYvbohj6ne65TuHU+ocFBQEue3 sG88+xzzVIgWVHFOJMuA0uCS/2kkOBHA7iG6fAsledt/jumPfXt8UViByKNIS2qxHytk UfqBaWajouDtK2aPK1QG/u1tVbjZE8UMMrzBy5YQ/i0VPimKaVdP8iYUEcQL2gLUXp1V HLb5HyKjtokQ9WIKkYV8qkAOR36gfj1CIPSpeCDesPtdKpJ26qzC60bjJJgbhaRpJivi bXfQ== X-Gm-Message-State: APjAAAWO5K6NzEqZ5KfAys42AW0dL/xDIEvpKE6oFD3RFXBCaC+O2QZZ cbFnmPEZfjpnzpEZoxcBjx1UhCLVpWA= X-Google-Smtp-Source: APXvYqwRmO+x2nCotBw/7ahD/bMe+7WoedCMOXqZbXFL9D+qYKWT1FfqGnf6ZO8k58sMT9aj8xi4JQ== X-Received: by 2002:ac8:6b95:: with SMTP id z21mr23547373qts.337.1559585341770; Mon, 03 Jun 2019 11:09:01 -0700 (PDT) Date: Mon, 3 Jun 2019 14:08:59 -0400 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Message-ID: <20190603180807.16140-11-mst@redhat.com> References: <20190603180807.16140-1-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190603180807.16140-1-mst@redhat.com> X-Mailer: git-send-email 2.17.1.1206.gb667731e2e.dirty X-Mutt-Fcc: =sent X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.160.180 Subject: [Qemu-devel] [PULL v2 10/14] bios-tables-test: add diff allowed list X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Peter Maydell , Thomas Huth , Igor Mammedov , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Expected table change is then handled like this: 1. add table to diff allowed list 2. change generating code (can be combined with 1) 3. maintainer runs a script to update expected + blows away allowed diff list Signed-off-by: Michael S. Tsirkin --- tests/bios-tables-test-allowed-diff.h | 1 + tests/bios-tables-test.c | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tests/bios-tables-test-allowed-diff.h diff --git a/tests/bios-tables-test-allowed-diff.h b/tests/bios-tables-test= -allowed-diff.h new file mode 100644 index 0000000000..dfb8523c8b --- /dev/null +++ b/tests/bios-tables-test-allowed-diff.h @@ -0,0 +1 @@ +/* List of comma-separated changed AML files to ignore */ diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index 11e07be093..28d7d427e0 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -342,6 +342,22 @@ try_again: return exp_tables; } =20 +static bool test_acpi_find_diff_allowed(AcpiSdtTable *sdt) +{ + const gchar *allowed_diff_file[] =3D { +#include "bios-tables-test-allowed-diff.h" + NULL + }; + const gchar **f; + + for (f =3D allowed_diff_file; *f; ++f) { + if (!g_strcmp0(sdt->aml_file, *f)) { + return true; + } + } + return false; +} + /* test the list of tables in @data->tables against reference tables */ static void test_acpi_asl(test_data *data) { @@ -396,7 +412,8 @@ static void test_acpi_asl(test_data *data) "see ASL difference."); } } - } + } + g_assert(test_acpi_find_diff_allowed(exp_sdt)); } g_string_free(asl, true); g_string_free(exp_asl, true); --=20 MST