From patchwork Mon Sep 18 14:47:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 141440 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp2716853vqi; Mon, 18 Sep 2023 07:50:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBS3CV6zcfx+xNkoSqZFSDIN4gB7tNM8YMjf/tRX9pxDgqOrr91hM7eVjhfbAp+xZkEWfA X-Received: by 2002:aa7:c3c4:0:b0:52c:a382:e0d5 with SMTP id l4-20020aa7c3c4000000b0052ca382e0d5mr7680855edr.34.1695048646568; Mon, 18 Sep 2023 07:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695048646; cv=none; d=google.com; s=arc-20160816; b=PHf3i+i4rY0L8ifpBMxl6VTyZfne0DAeXRUzRD4dhNqqE7NIb6UlBM4mCfS2WrYmy2 ngcQVkW6QrNGRlNIbDyxO0+z9A5GtjnOPtb4t0MSvqdY9eybilEDrStgsn1XCktbetuz 1KkD0pI+9nBE+ZBM8NJ1XUWrFCAKj/FiJxxFqPw6NQ2mttRL7P+CHjO9A0WXhrG2vRAO EEPFODxzw4fJ1RXpk1IIWy5kIST7t1hR9vgib8tY1sedlZD+EyKeiy+GL2KNvu3o6M2u NR9Ab/2gmpRl/NdHYucr3h+W6p8/NFgjzOQNJxJ+OF7Pyoct2pFDdQrrq9MxkuTMtsk0 ffHg== 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:mime-version:message-id:date :user-agent:subject:cc:to:from:ironport-sdr:dmarc-filter :delivered-to; bh=9B1lKAj9KxdGZBEXasm2Po5xAgxESKLa41PqLX4S258=; fh=D1APGTtJ+dNG9eGrFXyYE4Lj32SxhJNYLvgW0uSUrpY=; b=tZ40YWs52MOJaG2nzrl6TijRNbZDUbdJuq1pAjjzBdnhMCHOhPYOh0fEadnmMNvl6r Yte/VnZ/SsRLRIel18/6TxLqh7Kw81eLhUSbgMmIMqGdlwBG0GXuacOteICQ+t5opXK2 sJhjydKy7iSjn1axepFMBx2sykEgHp/vP6L83/Uet8obT9Y8J8rH9hIsUW4f3VumCyOD 0KHd9+K08Fhoy0MkD8FylH9Cdvfi5Mi/Fxss3yNF66B1ucBvvMewrwCstTZfG2mFBS3Z Nqz02nT+t5xBw6T51yLNoDx63436aUeHA99SvxxG7sKkhgEPKxAzR7tho9WeL27NxqFw NM7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id if18-20020a0564025d9200b005304db282f2si7393214edb.327.2023.09.18.07.50.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 07:50:46 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67CB2386F5F8 for ; Mon, 18 Sep 2023 14:49:02 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id A1D893857016 for ; Mon, 18 Sep 2023 14:47:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A1D893857016 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-CSE-ConnectionGUID: oFKWSqQxTBeUaNC+MVH/Ow== X-CSE-MsgGUID: ni4rLhM8QU+XdPV3F9rr3Q== X-IronPort-AV: E=Sophos;i="6.02,156,1688457600"; d="scan'208,223";a="19428777" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 18 Sep 2023 06:47:11 -0800 IronPort-SDR: 2n7DR3F1HxasuwxhDarXBMjl5NFIOCLzHhaZi6GclvGhmEiZszSwUziFIaEFGRjB7aiAOWjLZt Cj2wiYd3sWThHVLFtxFvEOKcdNf1fAtSPbQKZbzh8cHC+mYfyg8ohLOP7ckUIVcFWImTC3+eon h2UYTET8o5Lh+Ca5fKaW9B87h2sUZXLZIR4FvrrdpSkQyo5eOr3tnnAklqYx958U7LgI4bE89g GRuZcCo17PXxWKskF10ZNaqw/gRdtNjjDrMOzU5tW6yE/nzsgNaSBb8A/gBKFkLng7gnH5xUzo P2g= From: Thomas Schwinge To: CC: Tom de Vries Subject: Add 'g++.target/nvptx/nvptx.exp' for nvptx-specific C++ test cases User-Agent: Notmuch/0.29.3+94~g74c3f1b (https://notmuchmail.org) Emacs/28.2 (x86_64-pc-linux-gnu) Date: Mon, 18 Sep 2023 16:47:01 +0200 Message-ID: <87a5tjy1wa.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-13.mgc.mentorg.com (139.181.222.13) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777387329255228941 X-GMAIL-MSGID: 1777387329255228941 Hi! Pushed to master branch commit ade81bb9079f3b84e49300a283c05ee9dc3e2af4 "Add 'g++.target/nvptx/nvptx.exp' for nvptx-specific C++ test cases", see attached. Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 From ade81bb9079f3b84e49300a283c05ee9dc3e2af4 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 18 Sep 2023 16:35:56 +0200 Subject: [PATCH] Add 'g++.target/nvptx/nvptx.exp' for nvptx-specific C++ test cases Like 'gcc.target/nvptx/nvptx.exp' is modeled after 'gcc.dg/dg.exp', this new 'g++.target/nvptx/nvptx.exp' is modeled after 'g++.dg/dg.exp'. gcc/testsuite/ * g++.target/nvptx/nvptx.exp: New. --- gcc/testsuite/g++.target/nvptx/nvptx.exp | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 gcc/testsuite/g++.target/nvptx/nvptx.exp diff --git a/gcc/testsuite/g++.target/nvptx/nvptx.exp b/gcc/testsuite/g++.target/nvptx/nvptx.exp new file mode 100644 index 00000000000..7bde010171d --- /dev/null +++ b/gcc/testsuite/g++.target/nvptx/nvptx.exp @@ -0,0 +1,56 @@ +# Specific regression driver for nvptx. +# Copyright (C) 2000-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GCC; see the file COPYING3. If not see +# . + +# G++ testsuite that uses the `dg.exp' driver. + +# Exit immediately if this isn't a nvptx target. +if ![istarget nvptx*-*-*] then { + return +} + +# Load support procs. +load_lib g++-dg.exp + +# If a testcase doesn't have special options, use these. +global DEFAULT_CXXFLAGS +if ![info exists DEFAULT_CXXFLAGS] then { + set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long" +} + +# Initialize `dg'. +dg-init + +# Recursively find files in $dir and subdirs, do not walk into subdirs +# that contain their own .exp file. +proc find-cxx-tests { dir suffix } { + set tests [lsort [glob -nocomplain -directory $dir "*.$suffix" ]] + foreach subdir [lsort [glob -nocomplain -type d -directory $dir *]] { + if { [glob -nocomplain -directory $subdir *.exp] eq "" } { + eval lappend tests [find-cxx-tests $subdir $suffix] + } + } + return $tests +} + +set tests [find-cxx-tests $srcdir/$subdir {C}] + +# Main loop. +g++-dg-runtest $tests "" $DEFAULT_CXXFLAGS + + +# All done. +dg-finish -- 2.34.1