From patchwork Tue Jul 2 18:44:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 809140 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp353723wru; Tue, 2 Jul 2024 11:47:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWHIAjbHEaj6KXdKGdYoqQ0y67ZjR/Uf8fEaCp0ENX3kmXm2DwQzkXqZnUq+EZ/qkyZL+cNOaaxGo2pC7qnl5BK X-Google-Smtp-Source: AGHT+IEuCSeRZYQbv71s1hQy2fZyoD6UHTONzrgDR1ZLQEPWvqjiP47A3HZ1lSdBYcGTGd8AN7l/ X-Received: by 2002:ad4:5cef:0:b0:6b5:ce93:c3fc with SMTP id 6a1803df08f44-6b5ce93d1e5mr38216636d6.18.1719946029394; Tue, 02 Jul 2024 11:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719946029; cv=none; d=google.com; s=arc-20160816; b=t58MYzFjQE+720qMJl+71i4rexbBMGoQRZtsrMXkue65d25BXr3zZeTbPc8hSnT6lj 6OhZub1f/3pwIN2K8GG0NGyVGQgp2etwGJZcbBJiH9tGrdKWubeDRSQZ+eR9NfKUJb4b hl5RyGj8gVyDIyLAY7F7i25oiJnNVQy3LPgYWRLZSlYVebPPCYeqQ0dUKL3SEysWn3+C XNkagKRqqQzqbQTGVUKWDhFHUJDBHMCMl3ytZ+0vVruMQW4JnoZRWKpqH4N6vuZOcEOM zS45hsiWhcSBcV09+7ijwX1/8tzArOG7mD/XWkd7mRGMDouFHQvmQcGVf1BpiCCFS/XO 6ncQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tJdBX9SfhlJKk9rWv11IMwaEBO+AoHCZIGuGx9ia+J0=; fh=gfpM3aBSiIRsf14INmaLJ3KRp8sEj+HIZZ4PMQV7Q/U=; b=aDKyfa+ndEaM7GdYSx6bYRebSk15nWt8MIXg9ziPzJkIZSQFvgg3UDujrqwdVv6BoZ Krr7bCheQc71sEZslTBjiXaH6nIhu16r+mApjLid9X9iJCMKEfOk9DElLC39moo4Ko90 97GPSt9F/uQUuofz3IJr1/KU7T7YdQJJqUfl2badGIYhHbjnDJGiO0SEqRXbkBZtY3bY /udw9QgIah1x9+nztEXZ3vWX8ZrRpQg5szphCfsLt9vU0JQwYG9bSnnqQnA0zxY4+4AE lA/xRa1+1xcdrBhih3gbQSqLafrYleL2fNZm9j0HED7XW+tI4QUJz5tFhbzGvQt9Nkrr 3BgA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yTbia0Wx; 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 6a1803df08f44-6b5dea7d2c6si4490186d6.597.2024.07.02.11.47.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jul 2024 11:47:09 -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=yTbia0Wx; 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 1sOiVM-0005PI-Er; Tue, 02 Jul 2024 14:45:28 -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 1sOiVK-0005Ot-GF for qemu-devel@nongnu.org; Tue, 02 Jul 2024 14:45:27 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOiV6-0008J4-1o for qemu-devel@nongnu.org; Tue, 02 Jul 2024 14:45:26 -0400 Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-2c967e21888so531644a91.1 for ; Tue, 02 Jul 2024 11:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719945910; x=1720550710; 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=tJdBX9SfhlJKk9rWv11IMwaEBO+AoHCZIGuGx9ia+J0=; b=yTbia0WxbRRxv42sLPJVzB23n027oiiCBauISbr1HA3zh04r3WllNyyhDQ/EK5XzLr 4+5M79k8VUsqXScCQ8yvpfbL5RBNZFF55f11dsVjGM9N6qxQcBhgQKqSLBPoW3DRLItQ QgDqWkoVgcpze6sz7GeqTMPfhqRp0n0l0sdLwLRvR90oEn1j2Yz7lpvJL5wraLCEov2a Ox+6hI5jux75v2Yw2BDiN6H+pKzc/ZV0a4o8PO/HMOWycpMXiij6NGy5LHeSfuY3ttme w65+O3ine+mbsuplE9aUH/YvR3bfyV937qCsq6gOGaYJg0y4/a/Gb4441V3tD4cAcD31 z0ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719945910; x=1720550710; 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=tJdBX9SfhlJKk9rWv11IMwaEBO+AoHCZIGuGx9ia+J0=; b=nVKBPHNyVHM7b/tOkb1qLuF5Pr7iEIjCZZLtJgGFuGjHqLEEaAtarA5bxwrNu2a5Oh rsq98GR7j9CBCN8blg9OD7ntHzfaa+738EAQKZiAkA631KCacssO5300Lq5wUAAZMFA3 IFuvYCPFKQAEo7yXdjFZCVHvSV2/nZEiJOUQ0F+NJX7F0CXI9ljsk3aG188GbJoiTtgL wxVt3JSmiXKQJ9hzAtjv0Lg5YO/u17Eg1JTn7HfRYyL+06wF1xrPCGHxCiVh1WrgVqGZ cgcXeg9Jl2uBgHSkFiK1bfhoeJEP0dB+12dSkXN2s8LwqvxpQniAm6gLvd++DHcmh8fP 5GxA== X-Gm-Message-State: AOJu0Yxf0Z18TMyAiC5zMnooYJCWUuddqF3CndSq1q2AT12uyZUCzJTS tiv0MnBZqNwTRe2HhTKRDEZ9YOtq3HzlB5ld8EtA/AdP0BbvO7Pz6vXRM0k3mSmmabOiQS8n2rG M X-Received: by 2002:a17:90b:1807:b0:2c8:5129:417b with SMTP id 98e67ed59e1d1-2c93d77600cmr8339040a91.31.1719945910184; Tue, 02 Jul 2024 11:45:10 -0700 (PDT) Received: from linaro.vn.shawcable.net ([2604:3d08:9384:1d00::2193]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c91d3e8196sm9257394a91.49.2024.07.02.11.45.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 11:45:09 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Mahmoud Mandour , Pierrick Bouvier , Alexandre Iooss , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , Richard Henderson , Eduardo Habkost Subject: [PATCH v4 5/7] tests/tcg: allow to check output of plugins Date: Tue, 2 Jul 2024 11:44:46 -0700 Message-Id: <20240702184448.551705-6-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240702184448.551705-1-pierrick.bouvier@linaro.org> References: <20240702184448.551705-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x1031.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, 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 A specific plugin test can now read and check a plugin output, to ensure it contains expected values. Signed-off-by: Pierrick Bouvier Tested-by: Xingtao Yao Reviewed-by: Richard Henderson --- tests/tcg/Makefile.target | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index dc5c8b7a3b4..b78fd99c337 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -90,6 +90,7 @@ CFLAGS= LDFLAGS= QEMU_OPTS= +CHECK_PLUGIN_OUTPUT_COMMAND=true # If TCG debugging, or TCI is enabled things are a lot slower @@ -180,6 +181,9 @@ run-plugin-%: -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@)$(PLUGIN_ARGS) \ -d plugin -D $*.pout \ $(call strip-plugin,$<)) + $(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 +198,9 @@ run-plugin-%: -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@)$(PLUGIN_ARGS) \ -d plugin -D $*.pout \ $(QEMU_OPTS) $(call strip-plugin,$<)) + $(call quiet-command, $(CHECK_PLUGIN_OUTPUT_COMMAND) $*.pout, \ + TEST, check plugin $(call extract-plugin,$@) output \ + with $(call strip-plugin,$<)) endif gdb-%: %