Message ID | 20230223141815.996942-1-stephan.rohr@intel.com |
---|---|
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8D0D138582B0 for <patchwork@sourceware.org>; Thu, 23 Feb 2023 14:40:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D0D138582B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677163204; bh=Z/0xEMJkAi7MjWgBAP56CtC/bEfPBEu98+WwLMji4RM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=FJ3M+3tdPwXguFuMZW4bHtcmQRSP2ibR8c3Ki83BvbHzZ9QTCwwFQnXMNmk7CnXAH dnXHMR+OzBvh0ZYIuZzps8TIYnjMUtqpKccCWBMMyBTLbpYR1fvSdGyMFFs54xHsvU f/SXIx1T0BmOD4ZxSmw1CYd592BKsqzBdVh8U92s= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by sourceware.org (Postfix) with ESMTPS id 0798D3858C5E for <gdb-patches@sourceware.org>; Thu, 23 Feb 2023 14:39:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0798D3858C5E X-IronPort-AV: E=McAfee;i="6500,9779,10630"; a="321384143" X-IronPort-AV: E=Sophos;i="5.97,320,1669104000"; d="scan'208";a="321384143" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2023 06:18:22 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10630"; a="622348689" X-IronPort-AV: E=Sophos;i="5.97,320,1669104000"; d="scan'208";a="622348689" Received: from labpcdell3650-004.iul.intel.com (HELO localhost) ([172.28.50.126]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2023 06:18:21 -0800 To: gdb-patches@sourceware.org Subject: [PATCH 0/1] Add functionality to disable test for specific architecture Date: Thu, 23 Feb 2023 15:18:14 +0100 Message-Id: <20230223141815.996942-1-stephan.rohr@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> From: Stephan Rohr via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Stephan Rohr <stephan.rohr@intel.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Add functionality to disable test for specific architecture
|
|
Message
Rohr, Stephan
Feb. 23, 2023, 2:18 p.m. UTC
From: "Rohr, Stephan" <stephan.rohr@intel.com>
Hi all,
the proposed patch adds functionality to disable a test for an architecture
as specified by the user. The current 'register_test_foreach_arch'
implementation skips all tests if the architecture is listed inside the
'skip_arch' function. However, if the user wants to skip a limited set of
tests for a given architecture, this is currently not supported by the
interface. The proposed patch extends the 'register_test_foreach_arch'
interface and allows the user to provide a set of architectures for which the
test shall not be executed, e.g.,
selftests::register_test_foreach_arch ("test_name",
function_name,
std::set<std::string> ({"arch"}));
I tested this patch with the following targets:
* unix
* unix/-m32
* native-gdbserver
* native-extended-gdbserver
No regressions are identified.
Rohr, Stephan (1):
gdb: Add functionality to disable test for specific architecture
gdb/selftest-arch.c | 11 ++++++++---
gdb/selftest-arch.h | 5 ++++-
2 files changed, 12 insertions(+), 4 deletions(-)