From patchwork Tue Sep 10 17:20:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 827026 Delivered-To: patch@linaro.org Received: by 2002:adf:ab1c:0:b0:367:895a:4699 with SMTP id q28csp423336wrc; Tue, 10 Sep 2024 10:21:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWHlTH7fhHN9/Z1dBsYfdigDoI+KvD5i8DtiBIfiHSEZWhxC3ak0JhNlhqndebY/cdQhpC+nQ==@linaro.org X-Google-Smtp-Source: AGHT+IFUU9vvnDRnWH1++eijgyiRBQrFRIHK+Y/R02SbiXPvGrCHCpSz24/rdTeUDB47MnuzVLow X-Received: by 2002:ac8:7d46:0:b0:458:4412:fd06 with SMTP id d75a77b69052e-4584e9366camr3880671cf.45.1725988882758; Tue, 10 Sep 2024 10:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725988882; cv=none; d=google.com; s=arc-20240605; b=SWpfTvZLf3qHvrhYTGZx6IsZ3H6Qr2xJ0Onn/w2RzORlFC/RFwQRsGDbJh0GYD+1rr gwwTb007yyrxyYCHddsmUXmqJMaqVCNJl2A7fp1Cx8gJImaw++Sx9gVVgS+x4jJcJ86A 1fj4mbEbZVDXWD2JKXORZlQUHSCe2pZoRrfrtce8oPj76Y5dJ8ue1zpD3tePhOyM7Y4K gbK+N56CARcAZsFY1yRss9S2ZhLRBOxmdWKxgE2QkLx6G2wJt3N2bnt/EgeqAmk2Hmp6 kEQ1qdgwtJU30YAbXJFXgIW9u+wVWeDe+NkvEVq9O0BUYtusIFLE3Hik+Oc3709lEUvm Kx8g== 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=8J65jia4UycAJFoDQeTPh+ZznoVYWGR7xablNp0yP3U=; fh=OhV3JIe6s7BYVATlKJ3Ib2ybA9N3ZJt49O4IlF1MoN4=; b=WTeLRH2DPllsrTCzB0AQqK14bPRBr+O064IQkBbtC3ybPe++frPX9MucTkWvKKRb3E RvmP5kEg24TBvEed7qe22j5Dw5M8jnNpqtxRFXvaCnqoi9MLK7Fb0H7UcvtzvkyRI0eA EI3UGhOPiZfC/0tkdrYNTzijsM5raWNHNrn4Q9yM6LYlaYbYadRv5ZdRGadc+gCzxNh8 ZQ7Y86RSmI+DSjPCMdXhcks4xZWknS28kYy/Hkl0F94uX9gw1wHP9O+VorvEXJNsCKNL 0WqZjsSLXfacGmplTKlVqSLDnq/wqiJNlBLuGbk8pPgVmfyATJfl7soXQCa02AgjmbH+ GXTQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FkPvzWMJ; 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-45822e7f508si84702671cf.221.2024.09.10.10.21.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Sep 2024 10:21:22 -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=FkPvzWMJ; 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 1so4Y0-0003fd-SQ; Tue, 10 Sep 2024 13:21: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 1so4Xv-0003JH-CB for qemu-devel@nongnu.org; Tue, 10 Sep 2024 13:20:55 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1so4Xs-0002nK-5T for qemu-devel@nongnu.org; Tue, 10 Sep 2024 13:20:53 -0400 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1fee6435a34so9639405ad.0 for ; Tue, 10 Sep 2024 10:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725988850; x=1726593650; 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=8J65jia4UycAJFoDQeTPh+ZznoVYWGR7xablNp0yP3U=; b=FkPvzWMJQyIuTGKWPijthzEWzhv4UnTYVfdprwOOPZ09CmdF+Enqiv9K1to6yeb55D aTcC046i/SMFKb9DDo25CPE4a9Ch9DEq6STneAE6P76Vd8lkXwHZBVRwWRXNG5SpxGCX wYR2v32l82RK/tsTdWbWoi00ktlH0N/w8KhK4N3R9Xwr16T7caZx4p8Ns2SFNRTL1+P+ GGpw3m59Axu/y/sV/NbEbaiP6mi7cdtpluiB+p147XztGlIIVZg9LgpA9k63PAboLaWs LvtNIVdg2/+xKE85Vnd55hg996ppaFZyLv+TPQz6/ggxNZnYf/8EoD+QMj4xupqzCqXP l4wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725988850; x=1726593650; 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=8J65jia4UycAJFoDQeTPh+ZznoVYWGR7xablNp0yP3U=; b=tNE6hqbBi0jtAM4lGUkUmTz5IOAdUt5xgIGOvx3xl2D4bsxk8PSARPxKVtZtZoEpqT SVTWvEFv/KsD4Zs/+q3HCydEOOgrs7HvGhj7T9lulRrQX9Asp/i7vVjjFlZtDdrVmrNO Pjv6M+zxONJS831mZ30300BXPqpbpcghNvrZ4yXzFV4f1E/je9ss7iKBvjAA8GhwzVtY OUDvuQsYLJ1TPdpXlW0/0C4+U3EFvTGMKBMf0AMUFK013jpVfjyHXtOq0Ag9r+QsMvAI QB5EHVEAx39JjJ6jT9rKqPXTRzemfaPQpGeCGpDQPxP27TQDlwSZYAS+OhgX0coY8JZz 2glw== X-Gm-Message-State: AOJu0YwCdRY3evqAjs5Ql9vARYMkgk7GH0KrHNKR/LGGLags0TdTnAke /ZOuG69jSigd9u/7eQ6b8bqfkHzy1Qz72UrX50aNGugL+eb9efEZUwOmpJMegmCmwdk1LwTGDv4 otlT8WQ== X-Received: by 2002:a05:6a21:a342:b0:1cf:2f11:63f with SMTP id adf61e73a8af0-1cf62cdf83bmr551595637.30.1725988850271; Tue, 10 Sep 2024 10:20:50 -0700 (PDT) Received: from linaro.vn.shawcable.net ([2604:3d08:9384:1d00::9633]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2db049883e5sm6685310a91.50.2024.09.10.10.20.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 10:20:49 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Nicholas Piggin , Daniel Henrique Barboza , Alexandre Iooss , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , Eduardo Habkost , Richard Henderson , Pierrick Bouvier , Paolo Bonzini , Marcel Apfelbaum , Yanan Wang , Mahmoud Mandour , qemu-ppc@nongnu.org, Zhao Liu , Xingtao Yao Subject: [PATCH v8 4/6] tests/tcg: allow to check output of plugins Date: Tue, 10 Sep 2024 10:20:31 -0700 Message-Id: <20240910172033.1427812-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240910172033.1427812-1-pierrick.bouvier@linaro.org> References: <20240910172033.1427812-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x631.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 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 --- tests/tcg/Makefile.target | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index c5b1c7a786f..2da70b2fcfa 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-%: %