From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id NjTaMsXOaWCTDwAAWB0awg (envelope-from ) for ; Sun, 04 Apr 2021 10:35:49 -0400 Received: by simark.ca (Postfix, from userid 112) id B96C71EF66; Sun, 4 Apr 2021 10:35:49 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E3F451E789 for ; Sun, 4 Apr 2021 10:35:48 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3E206385780D; Sun, 4 Apr 2021 14:35:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E206385780D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617546948; bh=EJ25YHFw7VFYz8rGkX2GS/+JgDbxNv7XMLAjVMvDA6k=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=UlIIq7GBRE32B0677/z2QHNE0A/izEYiwdZEL3oPTa7+f8bLg2eq77Y+wmUdXuySv Xn2l4Qh5N7O+vhiPtxoR1H1UN95SNMWTPG1OSQ1NA2Dqq81yKflfbMSxfsx4id/ylQ nX6xnt00a31esJOHKeObkpTVL+mwH7G0UiMOrNb0= Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 98EA0385781D for ; Sun, 4 Apr 2021 14:35:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 98EA0385781D Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 64AE3335D19 for ; Sun, 4 Apr 2021 14:35:44 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH 2/3] sim: testsuite: skip tests when the port is disabled Date: Sun, 4 Apr 2021 10:35:37 -0400 Message-Id: <20210404143538.14995-2-vapier@gentoo.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210404143538.14995-1-vapier@gentoo.org> References: <20210404143538.14995-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" If the port hasn't been enabled, don't try to run its tests. Making this dynamic simplifies the test harnesses and avoids duplicating a bunch of target tuple checks. --- sim/testsuite/lib/sim-defs.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index 1b40216ea6ed..e627b6efc595 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -205,6 +205,11 @@ proc run_sim_test { name requested_machs } { global global_cc_options global global_sim_options + if ![file exists [sim_tool_path]] { + unsupported "$name: missing simulator [sim_tool_path]" + return + } + if [string match "*/*" $name] { set file $name set name [file tail $name] -- 2.30.2