From patchwork Tue Oct 10 07:49:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 731419 Delivered-To: patch@linaro.org Received: by 2002:a5d:574c:0:b0:31d:da82:a3b4 with SMTP id q12csp1606525wrw; Tue, 10 Oct 2023 00:51:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGF+TDaEItopJ50UMe+MQ4patsEjKRtqeWI7sA4uefv5EhgP2NeoxMNSga/u+w3h+VNBEkl X-Received: by 2002:ac8:7f44:0:b0:407:b2db:135f with SMTP id g4-20020ac87f44000000b00407b2db135fmr22535972qtk.17.1696924311584; Tue, 10 Oct 2023 00:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696924311; cv=none; d=google.com; s=arc-20160816; b=DWcQ/J5QykUQU9jhPHdGxFuGPCw6jzDZuvIQILGlyixEUjaS76FIwzuWcNnKEBPf38 2g0Ve43MthoBd05AXXJVzJTMUBq0BNSaTcvBotNWKnDgqOX+L+6D0RzTHPfRNSSCs8Wn YWNfM1ixyxMQu9CaQpy4IgxtHiUi3cAQPtqrZkZAdIiJvhyps21JFzpUQun7KLdskhCO /34JRpjgT/oTIuI3pU12pDJW3wwIkkq/+19oD8cAaNV8ep4EJUTELhK9nd79KRgUSxFr PLPcalwM4fwrL4IRGqk4HEZRoN4miP8s8Ris/po8hPLJNN+qPt+aMMZh2VFOY9Gkbniq DnJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=JOtqibj2dbLOoy6fkge4kltiRjME8crv5WjHZGdx+Tg=; fh=H5ieliU25sye5YHfIOtq5FRCn6jB3GWQIglrsMrNJhA=; b=L5B0DBBYEQtHQtC6T2iv1mC14eOMsJy6Fh3hFwmIdaIDAUZ+GKAeDBbAXD4VjcMCJS 5Ncwa17aXfS0exBfuKsqtMJ8klzngrnoXzkR2Vhyh2mPJ8jwgqGacdx9jOG+tB+dON8Z VpDo6DDuKPAnWMzPegWBB8WeJPp3g1mpszh+1SRlGvByRO9Cn5IEryuo6p8t0e775gqN tOX4OTUBgyBH01J/1Epk1NGKiSUas23yTz4sIw8sJrdOyySkaTiTBnsJgi8WUR+69Bht YvNAPCrnFiuWCQLSxzJYH30j7APe2ah8eN5uY8nAmzAK49lWGa8PUZotPH/bZZqYf8ip rLCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uvDmZTKx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 20-20020ac85714000000b00419852a7662si7153445qtw.436.2023.10.10.00.51.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Oct 2023 00:51:51 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uvDmZTKx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qq7VA-0008II-M4; Tue, 10 Oct 2023 03:50:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qq7V9-0008Hq-BR for qemu-devel@nongnu.org; Tue, 10 Oct 2023 03:49:59 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qq7V7-0004Zj-OK for qemu-devel@nongnu.org; Tue, 10 Oct 2023 03:49:59 -0400 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-991c786369cso890067366b.1 for ; Tue, 10 Oct 2023 00:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696924196; x=1697528996; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JOtqibj2dbLOoy6fkge4kltiRjME8crv5WjHZGdx+Tg=; b=uvDmZTKx9zxF8tXYpaOaw3R+yF4kY4BBlGQkhI+UgZko6Y6sNVa5KreJxOWORoonrW rB0K3m9fOwnMsdZI7fBKpyPNrxRG8/k5aEHtmsJ0Hsxo0WAXit6hd81/oM22Kx1xBA4r n4N5uQSmaFFC6XsibscM0Mv8+rIYwofcATMdwisn6UWGPpcao5OLT/HrKtqUrrCR+iMo BGUliQuqRyJOKRJdCGAeXUTeWj0GawimIon7x8myNY3ZxxxVg3BQ4lz48qegOJSVBSpU DLUc9O0m7lhDzM5A8MK07vH3KoNDthmiV7gV+X7XwOg0B3QTIZNCqJf9YKkEtEE72IaA /TpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696924196; x=1697528996; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JOtqibj2dbLOoy6fkge4kltiRjME8crv5WjHZGdx+Tg=; b=IgrkA9Cr66rdSli7hlKwEugluziV/aqACnqI5MIq7sdzXPqQnSG9k+Ua4VOXTcqlAD ydtL7caNXPYVSqFKRAO79oLC4E43FhmxohYAeEp5oCqzq+4bEqOHuu1h2YDUf2+PNB/I FIDhEgyd832R6JlvZXz3TabMpcx9c7urxC74WLuNnDBDwn9cdYnPIahr/l6tQ4BQusWG XLSGN6mZQ/lCMpJFluSefl3QaFrh8R7QfxdaVeDMarv2cB3kIjaf0OzoshRmqNTeb5zJ eoj0RmnKBcN3k8CjOI9/+C5zeCIsViTTVgXxvEc4lg7tFas9MMg33iVgZCKq/w41kvNM /dnA== X-Gm-Message-State: AOJu0YyvP+VKib1Kuw0tmgOkqlU6sAgrqiocoJ/VNtX/ZA+4Wo5DutMm hA+LdeLSACyscmMWvnfguBCIZ0W//JpISVsyM3IYWQ== X-Received: by 2002:a17:906:25d:b0:9ba:1d1a:1e2c with SMTP id 29-20020a170906025d00b009ba1d1a1e2cmr5029409ejl.34.1696924196033; Tue, 10 Oct 2023 00:49:56 -0700 (PDT) Received: from m1x-phil.lan (aif79-h01-176-172-113-148.dsl.sta.abo.bbox.fr. [176.172.113.148]) by smtp.gmail.com with ESMTPSA id r11-20020a170906364b00b009a1a5a7ebacsm7887987ejb.201.2023.10.10.00.49.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 10 Oct 2023 00:49:55 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Paolo Bonzini , qemu-ppc@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-arm@nongnu.org, qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH 0/4] tests/qtest: Introduce qtest_get_base_arch() and qtest_get_arch_bits() Date: Tue, 10 Oct 2023 09:49:48 +0200 Message-ID: <20231010074952.79165-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=philmd@linaro.org; helo=mail-ej1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org When unifying some 32/64 architectures as a single binary (for example i386 & x86_64 -> x86), some qtests fail because we lose some information (the arch bits). This series introduce the tuple qtest_get_base_arch() / qtest_get_arch_bits() to allow the tests to keep passing. Eventually we should remove qtest_get_arch() entirely and rename qtest_get_base_arch() -> qtest_get_arch(). So far these changes are sufficient to keep me progressing, so posting up to this point. Philippe Mathieu-Daudé (4): tests/libqtest: Introduce qtest_get_arch_bits() tests/qtest: Use qtest_get_arch_bits() tests/libqtest: Introduce qtest_get_base_arch() tests/qtest: Use qtest_get_base_arch() tests/qtest/libqtest.h | 15 ++++++++++ tests/qtest/ahci-test.c | 5 ++-- tests/qtest/am53c974-test.c | 4 +-- tests/qtest/arm-cpu-features.c | 49 +++++++++++++++---------------- tests/qtest/bios-tables-test.c | 22 +++++++------- tests/qtest/boot-sector.c | 6 ++-- tests/qtest/device-plug-test.c | 6 ++-- tests/qtest/drive_del-test.c | 16 ++++------ tests/qtest/erst-test.c | 4 +-- tests/qtest/fuzz-e1000e-test.c | 4 +-- tests/qtest/ivshmem-test.c | 6 ++-- tests/qtest/libqos/qos_external.c | 6 ++-- tests/qtest/libqtest.c | 49 +++++++++++++++++++++++++++++++ tests/qtest/lpc-ich9-test.c | 4 +-- tests/qtest/m48t59-test.c | 6 ++-- tests/qtest/pxe-test.c | 6 ++-- tests/qtest/qos-test.c | 6 ++-- tests/qtest/readconfig-test.c | 6 +--- tests/qtest/rtas-test.c | 4 +-- tests/qtest/ufs-test.c | 4 +-- tests/qtest/usb-hcd-uhci-test.c | 6 ++-- tests/qtest/virtio-net-test.c | 3 +- tests/qtest/virtio-rng-test.c | 4 +-- 23 files changed, 138 insertions(+), 103 deletions(-)