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: 1845666 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=uvDmZTKx; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S4Slr5p2Fz1yqN for ; Tue, 10 Oct 2023 18:51:52 +1100 (AEDT) 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-Google-Smtp-Source: AGHT+IGn5xd4xjifpMZWqv3hO+nMNbC6Ki6OXNgt2RSlF4Hs8lSBQ1LGvZ8ECrTZ0+6dtpz/ZesOUQ== 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.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(-)