From patchwork Wed Sep 18 21:07:01 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: 829419 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp35928wrn; Wed, 18 Sep 2024 14:08:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUFGiMzZr/ftYThf+EBzMD6rg04qv+7caLPa8I5qrdQ/DcajCezRzoLk/y6AYxBqVStK6Mo5A==@linaro.org X-Google-Smtp-Source: AGHT+IG4x/ZVV+GwhsWZS7uZP49j+tmrPc6sTKARLMXe7o8Zk7V+6JdeUeeQK9cpFyHla4C6uLeo X-Received: by 2002:a05:620a:1710:b0:7a9:9f5e:26bd with SMTP id af79cd13be357-7ab30d31963mr3520633585a.15.1726693700887; Wed, 18 Sep 2024 14:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726693700; cv=none; d=google.com; s=arc-20240605; b=Vte4SnGyW2DrvKRDsgK55LmXwSjEs3d/44H0vNl9bde7XDFFQKMdLiagovf57SglV+ If9pewZ5EJSDdWwZ3mms3V8mDHNimFPSDf9k+zgBOAhKg6GFTdAX+WcVZGrKH8Dr0VSA HqL0fLfICAvXB5sJzUW7gWoFLsznfR8G9eysws2V0Wb1/kKIBa4VBMFyErSJTgOGWQnN tcSWE3rcVLaR1g2dbht55XyRR6ZQDKYgdRarBBezcLYzAHVU9BOLisHVgbgjQDQJBRN0 vWu4oSXRf9eWGGWsLHaS5CayXV+qsf/XrZIYCE+qLvPnjOePwnTxn91Wd50JippMXa3H L3LQ== 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=rI5TLawxN3XyN9WoPBlVoz7ngejExnr3r/CzR6HnTEw=; fh=Ub7UaGkTAKmrKnW2gkbZmnwQuAJuc1WQwiBrX2fJQsk=; b=S+BSTS2ranwXJ/tTkqi4OLAkpfCr+zBl9LL/59g19t7oACPcMX/tzVFJvDVoEv5EGx AWIX5fUckvEBawa/79yQbg3K6i1MYwNp+VsxR6jVqb2Hm+KLyLvVpooT7Si9Q/IoH19J xvbCJCSXxYcktYH4I1w03T66uyt0gOOBNZic6tinojFYOHOfv96kf4YOGFyNX+Orez09 BHrAcRxH600MDpv8GxzieYGq1nge/VSg6zufgfwpFoqLFXztchS7DCEcSH9ovWYC8Lte 0pysv3yoiedNTScY1lhap5OSdoZ1OwPOlC2yrEVCbTvlKFYOX8YHNJkYn3EsKkgHETRE S5ng==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ePkdgPe0; 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 af79cd13be357-7acb07f7cf5si31121085a.122.2024.09.18.14.08.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 14:08:20 -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=ePkdgPe0; 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 1sr1tS-0004xG-JM; Wed, 18 Sep 2024 17:07:22 -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 1sr1tP-0004pT-UY for qemu-devel@nongnu.org; Wed, 18 Sep 2024 17:07:19 -0400 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr1tO-0001bD-Bw for qemu-devel@nongnu.org; Wed, 18 Sep 2024 17:07:19 -0400 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5c2561e8041so178895a12.2 for ; Wed, 18 Sep 2024 14:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726693637; x=1727298437; 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=rI5TLawxN3XyN9WoPBlVoz7ngejExnr3r/CzR6HnTEw=; b=ePkdgPe0gcPr6nOaB5z1PtrkqCfoNwc7jf83SPU6KK53OqYrwfOaT07xZYoTGmnxWi 8Tj0Pb3vM4buIIeITZjoccZFqDC6DcMO2+WY5nLkmQrDoXiW5Ngxd6tc3Rx6UawO+P0p wQUweYqX1acOqw1GL6afMk2uC1YcGdwQcxKBxEO7S41WSML3rJfQFe8KUz/18w1wmxF5 wdjLcoy24SrA0Q8lBeiWZdRrKTw/qWtmNS9mzmyXoAql55t/5OzkqIKiiJ69eyLAvPrI u5aGQu9oElwD05IpNeOKmzHRVVanlfGhKn/eP8n6+heehu6D8yKM2OozZ6Gu2IlWcHKL ZhnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726693637; x=1727298437; 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=rI5TLawxN3XyN9WoPBlVoz7ngejExnr3r/CzR6HnTEw=; b=ANDn7d6xLcK5UJ4KVPKXgOc6w36C9ei5gihgAAxUdKA5WvE+8wYSNdFoce9xD927gF EKx2f9Mdnc0dsnUS55nr3v0GOXKjY3UwyCTLN9tEHs2LjdAwo028MDDnEAoU18eb6cJ9 yE1Va5CDeJusuUVxjb0bPPLl19g+exkyLZlMheUrIaRvdjQixrlRPkxXfczeSKvM2yUB eUiMydje/ZdDcJt8JDSCVlcZwqBOX9jSStXKLFWP6EOw3lS91ogQEjRKR/PELDCWwGkM KvxWnqEBdgsQf16BYxbSYoRxJisb+nD8Krbc7t2SD7v772Ya3KMx755b4V0K0PBLCUbm oAnA== X-Gm-Message-State: AOJu0Yw2Mmm8fDCtE+WEx6jK7o2+1daM5OltN78adx5Xiq0UHbnZwRIr QYmbKwLNOzsASZDDPYA5YPi6L/d89jRAM3Y+9WCjgc8oLeAyoo/lG92U5L2iy4s= X-Received: by 2002:a05:6402:518a:b0:5c3:cd88:a0a with SMTP id 4fb4d7f45d1cf-5c41e19063bmr17990636a12.18.1726693636778; Wed, 18 Sep 2024 14:07:16 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb56b8bsm5388386a12.38.2024.09.18.14.07.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 14:07:15 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E97E75F915; Wed, 18 Sep 2024 22:07:12 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Xingtao Yao , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PULL 07/18] tests/tcg: allow to check output of plugins Date: Wed, 18 Sep 2024 22:07:01 +0100 Message-Id: <20240918210712.2336854-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240918210712.2336854-1-alex.bennee@linaro.org> References: <20240918210712.2336854-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x531.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 Message-Id: <20240916085400.1046925-8-alex.bennee@linaro.org> 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-%: %