From patchwork Fri Sep 13 17:26:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 828208 Delivered-To: patch@linaro.org Received: by 2002:adf:a2d0:0:b0:367:895a:4699 with SMTP id t16csp362501wra; Fri, 13 Sep 2024 10:29:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXtydhIb1XcZd4+pNSerwrXedKqHIDU/NyBaIsNwOPLJptHHWGKA1Ci0+kqTB3q4OlRJYbz8A==@linaro.org X-Google-Smtp-Source: AGHT+IGJzKrFW4CK5xwiQ9DL5RDHkkMkRd8mt2EXtwd7tBgOLMJeZt8QaQQjudrKBHoT9cKR6mo6 X-Received: by 2002:a05:622a:5e8e:b0:455:a52:926c with SMTP id d75a77b69052e-458602f0032mr109956581cf.13.1726248578748; Fri, 13 Sep 2024 10:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726248578; cv=none; d=google.com; s=arc-20240605; b=bWB2aNDdDEAlUF8VN9FOo4J0XkM/Vg/66H6moLMzdw3eDURG76ZegW+wGBht34gmVD tfbkL0FxPM49T677yMdpDi7h49LvOqGx4I1nSTLZgcw2VINWniLe1jZQOn8Dxhxrplbd geX+sDzdvqLm1XVJlL7gWB+ZrSQd6dxPPFBE5vcK9+fSb8DNBILJnLSMpESIs5T9LMI/ dzO2FZv1h7Qz1MFnGst9q6/tfCiEkWMaoBUAZ35a2IVNUF6Aqd0lBezI3tWZrkqdoKSL ja/QtUYpRLXSOCAcXTrqID9ENUydGDIhMho2TIQ8nEKkJzXKS8NMunsVaOldXObuGEBt LX4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XLtSiC/Qmy/Q/dtQX8Zk8sWvmopgnkSy4LkF7QeFpv4=; fh=F5awbK741II+wT+mHTjf48yqF0ogIKVBroCor9WBHkU=; b=Puluhd0PAjSz6AeOMdTrF3eqNOyL2I7TpLLzXpQijFo2s812q07wapLO7AISsBAteR 0r+nFm0ijAaJ1ve0BQDinRkHbHqMqjsHX5TaKHa8066OGz5hFjbyiq0vt2y3uSt22M5q quivjugJLrBeuqvIdnZXanjZVapK2FfFYi9OBYnxFrD7Sn31m4V8qWECu6AP7llZUzA+ 6AOeHCYLniyvXOZk4ywPbLuVpRHTvbcl3jeRxBFu3o5C6rit/8L5mwWJM5YFP7tAoHPc 9zME1Oo3EW0v7aIpG7ujePHtsUAa/eQ+1hv7d27MMgqD0UeesOoaS8pB9CTIEpif6sDe gSnw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JITw5UeM; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4583129c0a3si139714121cf.552.2024.09.13.10.29.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Sep 2024 10:29:38 -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=JITw5UeM; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spA4m-0006ZH-Gs; Fri, 13 Sep 2024 13:27:20 -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 1spA4c-0005xs-RI for qemu-devel@nongnu.org; Fri, 13 Sep 2024 13:27:11 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spA4X-0005uW-R5 for qemu-devel@nongnu.org; Fri, 13 Sep 2024 13:27:10 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5c255e3c327so2772504a12.1 for ; Fri, 13 Sep 2024 10:27:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726248424; x=1726853224; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XLtSiC/Qmy/Q/dtQX8Zk8sWvmopgnkSy4LkF7QeFpv4=; b=JITw5UeMtK/350EYxkHcACmVWMq7lyjDsrc1oUZc5L2gRMN1niIVDqMFDYVZ9hN+5S 0ZWewREjiwIeXw11AskTQyzqUelKEVWF/ZuIdi7amLjaPEIZr5nG4aouebltjHTPXAz/ 3uFTxVsBuAMqKxh12mdv5cgZo38IUwHkXDdiSNH67PiAc6kcPAIH54XHmMVH4THg1sh8 2HAlAJ5Mi0maR3WD+kT5tFiRZzFy8Dn5EmNh4L282MLN6dLUDdxsGGLyd+XxeWtO8ZBb qji5SaYWb3amaiRSSrlWeaZXUzyPIByHkHcAlPuShI9iBr8VDMfgEotc45mGzEfBQUUd amkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726248424; x=1726853224; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XLtSiC/Qmy/Q/dtQX8Zk8sWvmopgnkSy4LkF7QeFpv4=; b=a/I8sLom+kwZdGE1uLENAhAqDFY/etH7howLdjoA8hyhXyxQPwKsvfJIeJjCAmQIQs EGsuzYkVubW4hqa7L6MK+zLQdwWxL/l2JH9SXNLdzkA9K2vpCGqjIumsPbfEHUZY9Gu/ m4tSe+gKn8zds26KLxgWijk2tfkuk+BAXSs2spyU/Rvj3V017oB7+jexpLfyumpFa2W7 uEz1dNWUqOUdpTqqjE50+yWTFAYhHle54khJOPq9Kyy8ylzdgu89CL/fEYcUNgX7FoEd pzluWZ8O8sUkfzFCR67I88iXa3YvXgT0iOZXC5N7BhX9qoGT/HjG+4rMZvo/MzWQdaXB EVoQ== X-Gm-Message-State: AOJu0YxU36vZETpzkrQe/cx3QRE6Ydx8fuvB6PdJJOeJcQfilqdfTv19 PmiJevHqAcKDu0m4Odp1vFK3RCxXz3DVxFBzOhpujINPOjD0ODMCpQZue9ima9M= X-Received: by 2002:a05:6402:24a5:b0:5c4:b00:5e62 with SMTP id 4fb4d7f45d1cf-5c413e2a27cmr5376289a12.20.1726248423625; Fri, 13 Sep 2024 10:27:03 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c401420b55sm4748991a12.38.2024.09.13.10.26.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 10:27:00 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id C58AD5FA03; Fri, 13 Sep 2024 18:26:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , devel@lists.libvirt.org, Thomas Huth , Mahmoud Mandour , Paolo Bonzini , David Hildenbrand , Ilya Leoshkevich , qemu-ppc@nongnu.org, Zhao Liu , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Yanan Wang , Eduardo Habkost , qemu-s390x@nongnu.org, Alexandre Iooss , Pierrick Bouvier , Nicholas Piggin , Daniel Henrique Barboza , Marcel Apfelbaum , Xingtao Yao Subject: [PATCH 07/17] tests/tcg: allow to check output of plugins Date: Fri, 13 Sep 2024 18:26:45 +0100 Message-Id: <20240913172655.173873-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240913172655.173873-1-alex.bennee@linaro.org> References: <20240913172655.173873-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52f.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 From: Pierrick Bouvier A specific plugin test can now read and check a plugin output, to ensure it contains expected values. Tested-by: Xingtao Yao Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20240724194708.1843704-5-pierrick.bouvier@linaro.org> Signed-off-by: Alex Bennée --- tests/tcg/Makefile.target | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index c5b1c7a786..2da70b2fcf 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -90,6 +90,7 @@ CFLAGS= LDFLAGS= QEMU_OPTS= +CHECK_PLUGIN_OUTPUT_COMMAND= # If TCG debugging, or TCI is enabled things are a lot slower @@ -180,6 +181,10 @@ run-plugin-%: -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@)$(PLUGIN_ARGS) \ -d plugin -D $*.pout \ $(call strip-plugin,$<)) + $(if $(CHECK_PLUGIN_OUTPUT_COMMAND), \ + $(call quiet-command, $(CHECK_PLUGIN_OUTPUT_COMMAND) $*.pout, \ + TEST, check plugin $(call extract-plugin,$@) output \ + with $(call strip-plugin,$<))) else run-%: % $(call run-test, $<, \ @@ -194,6 +199,10 @@ run-plugin-%: -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@)$(PLUGIN_ARGS) \ -d plugin -D $*.pout \ $(QEMU_OPTS) $(call strip-plugin,$<)) + $(if $(CHECK_PLUGIN_OUTPUT_COMMAND), \ + $(call quiet-command, $(CHECK_PLUGIN_OUTPUT_COMMAND) $*.pout, \ + TEST, check plugin $(call extract-plugin,$@) output \ + with $(call strip-plugin,$<))) endif gdb-%: %