From patchwork Thu Nov 23 17:06:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 17020 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp589437vqx; Thu, 23 Nov 2023 09:07:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IET+HRum380hsAxgMih9QupGfKRKsBn7rm3X9ajzbbfNWcqMPMwzu1u5XWRU6mvBIjw3YSp X-Received: by 2002:a05:620a:3cc:b0:77d:5b00:e862 with SMTP id r12-20020a05620a03cc00b0077d5b00e862mr5698388qkm.38.1700759238752; Thu, 23 Nov 2023 09:07:18 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1700759238; cv=pass; d=google.com; s=arc-20160816; b=XQLUBoYpikxmxXrrrky47jQH6lgT1lsAV7xEdC8Igk+lKxfyNZZ+WG5656vwSCh1am w31zGPsMSuImQYLo3gezgNKYWEj79bE3RczkqanNTsLs79BYcvQm7ckS/ARYuBJqZ4K6 5V2uMhm6Hw5wt/LiDXpckvPVRDqsqrr0WUaFKvJ/OG3E946HVCnYUnpeqfbAOQY0aeMi r/R9SyexLIBpEtZu6EgjL5ivNDblGr90bNPd4dIVizvsWCOdLsvnFMRPHyYabB5IyWhA 6n1SNM4LT97d28i6pMo+Ck15LL35SBIria4zm9TlXdWKDJM8RqKrX7tmTPwIOr6qdTeH sOig== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:date:message-id :content-transfer-encoding:mime-version:subject:cc:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=Z3u0A8Yy7G2SA36r4HNjfoBlnS8n5tI2QdmVH7dLnM0=; fh=oeK/P5AJE/SiZ4W15OGZY5BmuJv0674peXLd85mgKOY=; b=Lfg/mjdGT1rzeDqcBpbYIMZ5RzWW6BV0F4W0py5RZO/9Dk5noT72+RQMok4llDYgW7 gy5Zyum3c725O3BOrbj2CUln5VTKL7/XPtXOGJZCyKZyVPTS6rD3ZdA4k+LP2Fg6uKDu nFAnfM1e/ifin85i9Ask7PyjAdVi4IZD/cy30tZdzPP516uZ4DAKpCe/bnLzhGnwUa8b U5oLpupNm8C+ACQ6NPP1UKwjtMHgETVS1HDZf1/06xM+PD04rkL+Vy788/sdjE0OAaqV VxGV88rx0NC4HENyrYyP/VKdoOcBU/2mThs1LsW6/UQOgNdnpA9nsKUGbnN1jVNFpq+0 wf/w== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=WnRRdyiK; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id w6-20020a05620a444600b0077771ab761bsi1510444qkp.35.2023.11.23.09.07.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:07:18 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=WnRRdyiK; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 92B15385417D for ; Thu, 23 Nov 2023 17:07:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2058.outbound.protection.outlook.com [40.107.103.58]) by sourceware.org (Postfix) with ESMTPS id 06792385842F for ; Thu, 23 Nov 2023 17:06:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 06792385842F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 06792385842F Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.103.58 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700759213; cv=pass; b=KItvFRlkENEkGuclTf6HdnbrHXcSrvEc9Fo4/+Ct+ZrEqvVhhUBYDYeMABZFXd38TSWgKuZjALhYO8KQ4kGmIYljBk9lBhzGYZ0G8OTgUum5vg+F3fnEbAJZTlSMxiluKQhMxAhxmiVf8rqptv4haGDkh2UVn69VwUXQRvJ0Z6A= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700759213; c=relaxed/simple; bh=nu2xdyIodno0Sk9Ho5CoUh4/X/wz5JjmZjkX856onbk=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=xhMxJl7c8gBcFzZSpZTlmK+2qQFWfxRE00/C7uB2wTzs/dfgClVyuDA7oIBZI9nI/MVTQPWJjgRaqgKV27mE5GQ4gfnNZZM2EY8OB44ygXdsxsWy8ejPhzXNTVFzOHPPhdrDUY1he9DW92hkRD+G8btNmkYvnROQl/mw080TnpE= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hc9clrnox+peEL+bdHuDvZ665J7HJWl6156lw+du0xVWVvrz99yDLbr4WH7QG7NR4UeHe0hkdbQalLzDgikQHL7G7ezcJYT6griKopohN/vQSed97UAXW7BM67/ATp0hMrCDYk1cpAGBzgZwWP6B2pvIrcxU+ZJ5URwKB+tmsS84xWqXzfBGkiD48wkQ4gy/C3U2+wqNamAwsm5xbvxkmfeA4t4U4kd/J+rHWeeVX3o5GhnADtBKMpht5fAOSQYCMwMZLOfoXxPDzQRJXlbeO7LSc1uapa8N/zEzJErPBs2yfKDZaLg5cNGgGIgoOZW475HbeM3/Sk0CkedzJZe8hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Z3u0A8Yy7G2SA36r4HNjfoBlnS8n5tI2QdmVH7dLnM0=; b=kIHVrHdjD8soeBzcIMLHcsL6sA1xvyFjO33B7cEBgC05yDxu4jIL3bUE4VGuyBeF/0FJVxRWDT4RcEVMvNzDH/Mz9AmdBrQmE12aK14HSIzNo/J8MCXdFpuxAtxkvtgOUlyy+X/bG9Evf/D1zPg2x6hI+UWv71dSgKtqv1UTi4w2I5FesJro9RNwrLROCibUCywIaLxWUKhVO8U4aJNhLtmh5MY4sEm2h1lnfn13wdd7u8phxplSArpx/g41FnJQHvFjkZW8tUPCkadp9f+yfBOR7WfXsUC4NfHveys5SMH2OPDafyxkkVt2+o5CflZzxipOsB3zcRbXvlF/jgzHlg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 195.60.68.100) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=axis.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z3u0A8Yy7G2SA36r4HNjfoBlnS8n5tI2QdmVH7dLnM0=; b=WnRRdyiKq7QAxN3lc6aPAdbvxohKs58WSMVPDqAhEIrKGCOUATJCF7RJUGXfDAI+gpl1I+bSrA25cTChAfv+2YYiKpz/MsYlega5SET3WN+WAyizL2qLWdYTJMQ40pa3+jo8K3MsdxHYoq5ldQwWvLAfFIqPNl5sf7B9461NibY= Received: from AM6P192CA0002.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:83::15) by PAXPR02MB7197.eurprd02.prod.outlook.com (2603:10a6:102:1ca::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20; Thu, 23 Nov 2023 17:06:47 +0000 Received: from AMS0EPF00000196.eurprd05.prod.outlook.com (2603:10a6:209:83:cafe::8e) by AM6P192CA0002.outlook.office365.com (2603:10a6:209:83::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.18 via Frontend Transport; Thu, 23 Nov 2023 17:06:47 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Fail (protection.outlook.com: domain of axis.com does not designate 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; Received: from mail.axis.com (195.60.68.100) by AMS0EPF00000196.mail.protection.outlook.com (10.167.16.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7025.12 via Frontend Transport; Thu, 23 Nov 2023 17:06:46 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Nov 2023 18:06:46 +0100 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAILARCH01W.axis.com (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Nov 2023 18:06:46 +0100 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Thu, 23 Nov 2023 18:06:46 +0100 Received: from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id F214FE7D7; Thu, 23 Nov 2023 18:06:45 +0100 (CET) Received: by pchp3.se.axis.com (Postfix, from userid 171) id ED4EB20427; Thu, 23 Nov 2023 18:06:45 +0100 (CET) From: Hans-Peter Nilsson To: CC: Subject: [PATCH 0/3] A few contrib/regression/btest-gcc.sh updates. MIME-Version: 1.0 Message-ID: <20231123170645.ED4EB20427@pchp3.se.axis.com> Date: Thu, 23 Nov 2023 18:06:45 +0100 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF00000196:EE_|PAXPR02MB7197:EE_ X-MS-Office365-Filtering-Correlation-Id: 24512f89-7def-4fdc-34a8-08dbec46934d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hUu4maR9WeSwIzGHCFWkemUjUkNojL8PoqJoaU0Vb03JafnFxweBYx+y5zFXdChnsvpXqtgUP/E6iuSqZMAdHITVJK/gkQTeoXDIg3olYjuG56hKGowFQPRpUjRg0DiBalhqNX0Cgl+QpMZoCmV6cjvAxfT7WsDObuVD4w2ZVf8f+oQ1LwgyCBVrlsJAuuI8xPNhmXPmqGNDLw/x3AVqkBq8fU6YUExsw/0T/hKrIXuUxeR+SvNiMT3wTWnTqnd/EM33yyX2dPNNxoBFfLWuzfVC7oio43HCD4XPgjh0SO1ILx6EvfTVySn6fFV02gPCRJ5NQW3GvDFHDgL0Ug6Tadh97zsvCIv1UAKZyyeVH0EI+DIzIr777rqk8KnGQENxjuY995LUVWkticzPu+QNtH9Bj2TaErI7D0Qld/kmj0ywiIuumbBpIunGS68a1RLDMi1JJZX5h9pRxrarm+Z1vu3T3m291H5mYcRxEd0LyESZkeJU60b8LCqd1Hw28Cx0yviVMyDAvaNPXJOoXC2dplYgdB8Grz4LscHuciBlR8kGcrdhFfGCeWrtZEYZy5zOW3b6pKZ3EUtwh47sQdU4xi/RspMg42J/Zq3NAlDrc1b3cGK1efFr5u5aWFzLbpvI3KlpNiYlUF5G/RUGLbKGxIBESxqidwLcE5JBj47gJ0/dpDm5kpiKxh7sdJFvggvoChU7KiLBR3+scxRm0itiX2yjyr4G4vYVcwaIBdm/frlBI5HckeEnYJ3pbozQOQHWzJcrDTPTcEVybM9Oq90Yww== X-Forefront-Antispam-Report: CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(136003)(376002)(346002)(396003)(230922051799003)(451199024)(1800799012)(64100799003)(82310400011)(186009)(40470700004)(46966006)(36840700001)(36860700001)(356005)(81166007)(47076005)(82740400003)(33656002)(40480700001)(40460700003)(478600001)(15650500001)(8676002)(8936002)(4326008)(6916009)(70586007)(316002)(5660300002)(42186006)(70206006)(6266002)(336012)(2906002)(83380400001)(426003)(66899024)(1076003)(26005)(41300700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 17:06:46.5764 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 24512f89-7def-4fdc-34a8-08dbec46934d X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100]; Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF00000196.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR02MB7197 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783375319561362137 X-GMAIL-MSGID: 1783375319561362137 Anyone using contrib/regression/btest-gcc.sh besides me? It has, besides a copyright update, not seen love and attention in a decade. Also, the original author and maintainer hasn't been visibly active with gcc. I've contributed the other trivial, non-date changes since 2009 and some others before that, and I use it regularly both in my autotester and any per-target patch testing. Thus, I volunteer to pick it up. I intend to keep functional compatibility. Besides adding .sum file with optional presence as has been done in the past, new functionality, as well as changes in functionality, will be optional and default off, where reasonable alternative use could otherwise break and/or have different results. For example, I won't add an almost trivial LC_ALL=C to unify results and avoid the problem with different LC_ALL and trying to pass state between systems. One such breaking setup is running btest-gcc.sh with LC_ALL=C on one system and using the resulting state in a run with LC_ALL=en_US.utf8 on the other. This will break at the calls to "comm" after "sort" between previous and current collections of passing tests due to "g++" and "gcc" collating differently, a wart I've discovered twice (and wrongly worked around once). Changing that would obviously break *some* setups. This problem also doesn't need a fix in btest-gcc.sh, it's trivially handled by changing its usage to e.g. "env LC_ALL=C /path/to/btest-gcc.sh ...". That's not a big deal if you like me call btest-gcc.sh in *another* script. With this mostly trivial patchset, leading up to optional handling of XPASS, I'm sort-of testing the waters. I knew about XPASS being currently ignored, just didn't care enough about that as I also diff the test-logs for my manual testing. The biggest problem was then that each run can't be done in parallel. Hans-Peter Nilsson (3): contrib/regression/btest-gcc.sh: Handle multiple options. contrib/regression/btest-gcc.sh: Simplify option handling. contrib/regression/btest-gcc.sh: Optionally handle XPASS. contrib/regression/btest-gcc.sh | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-)