From patchwork Tue Oct 24 08:04:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Iannetta X-Patchwork-Id: 157274 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1786228vqx; Tue, 24 Oct 2023 01:04:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGanucFz1oESd/YVD9AO9OqCduqhdMK8wBPZuLvBtZ0p9mtJJoMvyXhxWmRy6Tu6BlOboMt X-Received: by 2002:a05:622a:1493:b0:417:a42d:d91b with SMTP id t19-20020a05622a149300b00417a42dd91bmr11611356qtx.36.1698134694800; Tue, 24 Oct 2023 01:04:54 -0700 (PDT) Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d21-20020a05622a15d500b0041060a4ffb7si6568811qty.404.2023.10.24.01.04.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 01:04:54 -0700 (PDT) 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=@kalrayinc.com header.s=sec-sig-email header.b=NSaTioV8; dkim=neutral (body hash did not verify) header.i=@kalrayinc.com header.s=selector1 header.b=ObkPC4RP; arc=fail (previous hop failed); 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=QUARANTINE sp=NONE dis=NONE) header.from=kalrayinc.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 815F13858000 for ; Tue, 24 Oct 2023 08:04:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpout140.security-mail.net (smtpout145.security-mail.net [85.31.212.145]) by sourceware.org (Postfix) with ESMTPS id 03E1E3858296 for ; Tue, 24 Oct 2023 08:04:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 03E1E3858296 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=kalrayinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kalrayinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 03E1E3858296 Authentication-Results: server2.sourceware.org; arc=fail smtp.remote-ip=85.31.212.145 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1698134664; cv=fail; b=gJomX1AMn522o6AgmWqgypb7UPqLYUwNYuRDyrejtxBiSbDTj35uXQUmMqPY0Vd3GJVIKjx/y0ojPV0hiQ+x9BbXwBPrdTECkPmXghvrX30RCIzWpifko/kfIjFI2IUykKjUQ0Mcayz7v/uluFndVtkem7fiKMA4KqtDpxaVJoI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1698134664; c=relaxed/simple; bh=7icwZ1qXKArPk1zRUlCjhCk+OSsAa0aG0sacL0i/8yc=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=VBjlJUWAweCRmQL5OrsmCkswi8e7WXF7ufAV5iSY1CRNWPiedBQQETDNzg5ihpQ9FW9QHoc5dK0yONlf3imghb9JMhOj79VubrwMNKqfs6AFx3eqkq8Je3tI3in20RE7BAFnJPvBJWcWjl3ZlMtF1RC7hbpwGapoRprg9tnOXes= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from localhost (fx405.security-mail.net [127.0.0.1]) by fx405.security-mail.net (Postfix) with ESMTP id 36FBE336287 for ; Tue, 24 Oct 2023 10:04:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kalrayinc.com; s=sec-sig-email; t=1698134660; bh=7icwZ1qXKArPk1zRUlCjhCk+OSsAa0aG0sacL0i/8yc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=NSaTioV88c18/GmJtb5icuWQKQ+qix4JMA/BV7auTd9RSvE2nUUq6sqOj0OVo0TW2 x6qvUmcNC7FiOmxlat6iJEI/2EZ8nig9S7sGpfy5aU+jtVBIM/ZdFf9vLbwjC7OzQe lIXZa2znCt9ZUl6fJ8F6ul/EJT9HiQaBUc/OV59o= Received: from fx405 (fx405.security-mail.net [127.0.0.1]) by fx405.security-mail.net (Postfix) with ESMTP id 016F8336231; Tue, 24 Oct 2023 10:04:19 +0200 (CEST) Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-pr2fra01lp0100.outbound.protection.outlook.com [104.47.24.100]) by fx405.security-mail.net (Postfix) with ESMTPS id 08789335F94; Tue, 24 Oct 2023 10:04:19 +0200 (CEST) Received: from MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:33::22) by MR1P264MB3329.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:29::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.16; Tue, 24 Oct 2023 08:04:17 +0000 Received: from MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM ([fe80::3f53:755c:fed4:3bb6]) by MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM ([fe80::3f53:755c:fed4:3bb6%3]) with mapi id 15.20.6933.011; Tue, 24 Oct 2023 08:04:17 +0000 X-Virus-Scanned: E-securemail Secumail-id: <945b.65377a83.7491.0> ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IRK6xL9NFJG2ZOepOkKgMirpbt/Y955l6g2izKZ3eVkqAFzF2cYtDueGFMT4AF3rRR8Ptml8/jRDVCyFkoyk6wLC8Kuj4ofkQt8K2eODZ+ncMug3fjnZpStrf/W8MSJC3cuaVItaN0EsdDaDNleN42X1NbnfwZO1msIndd0HXG08G7Z24CSQueUvCLt3JPjBefG/2KlvceNBWHaIe46cOQtxBwXYBlwFo1jxx0EoNrkoK05BJR7laITuWBHc/2SG1M2GxKY0VCwSwXlv1Sf6RV4DJrhZcBln+6pO13+WZUQLJUroMsqaaoM3knIFrxbB8bsKbG8WV0GFRy4kppgKtw== 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=wdAFZkL+IUx8XTsCETW8NPuX3soor4/Xju0UwMs3DbM=; b=ZEoldO27ASxy6AMykZOY7jub1yFV6vMvGL11irAhYtZABIMcZMrIYJhZm3wcfTCApLrsS6xsGbiGypBIR6mAlBpstZUt37w+Fp5Qir16hJZcwyhKy8gUimzI4CdpMdyP3YwfwUC6uc3R+7z8ymFKpZk183p4LWcPnpK8xwEp0vqL/vmTaZh3Lvj2AAVymM89rReZLPcz0eengltH/p8RoIAyOaM7PYeQoGMufX7sXnRr3LfmDYBMedjOncqpE+I2rJFDqRK6CSh2VRIGOqzspBT8fPiGujM6I3/KF197M92Kk8A73PaKloxB2caC+fcRqd8cD7+1dpf83/hOyShpEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kalrayinc.com; dmarc=pass action=none header.from=kalrayinc.com; dkim=pass header.d=kalrayinc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalrayinc.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wdAFZkL+IUx8XTsCETW8NPuX3soor4/Xju0UwMs3DbM=; b=ObkPC4RP205DdPXQp3KVqQDDCgnU7pgOlUpJO/5U8OLppa6dsiLkZneEXqFXSKYlYdPh2IpT9+ANQopFEGE02Mp4xbC0qa9ACmKZgI4LGq+MNop87eV5s5ikFuG/XoFhGwTxSHP6X5RYo1qLdPKcyXqudnaiqtMvtp+7H1CnptWuOMvfKp+xzmr8Lus8AO97AJyWQwgf+TbMfdnNR8ij9P+ATOhugHc5cGH3/xGs00/umB6nxS0tzwb5RZyTXWCCxugWzOXRCSNZLadqSwvWo14c9zILL7WXyKF1rLGX3iMRyrBntNoU2S8BEfBnSH38Mha0axAATjdCzjYl+RVsIw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kalrayinc.com; Date: Tue, 24 Oct 2023 10:04:16 +0200 From: Paul Iannetta To: Jeff Law Cc: Thomas Schwinge , gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com, oliva@adacore.com Subject: [PATCH] Ignore case of header line in dg-extract-results.py Message-ID: <20231024080416.k3htpcxgowjsgriv@ws2202.lin.mbt.kalray.eu> References: <20230914142433.fifbjzmb6iu3yoqk@ws2202.lin.mbt.kalray.eu> <20230918063934.wfvho5gmoyiihiwy@ws2202.lin.mbt.kalray.eu> <20230925095502.lf7l7ckejrke2bfj@ws2202.lin.mbt.kalray.eu> <20230929081951.y327vilv554tivct@ws2202.lin.mbt.kalray.eu> <15a956df-4066-484d-bad5-ba7ae75a8867@gmail.com> <87lec0tgsa.fsf@euler.schwinge.homeip.net> <10a2fdf4-6fda-408b-8545-8f83b4966282@gmail.com> Content-Disposition: inline In-Reply-To: <10a2fdf4-6fda-408b-8545-8f83b4966282@gmail.com> User-Agent: NeoMutt/20171215 X-ClientProxiedBy: LO4P302CA0041.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:317::19) To MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:33::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MR1P264MB2482:EE_|MR1P264MB3329:EE_ X-MS-Office365-Filtering-Correlation-Id: 3cfb6faf-4629-445e-d745-08dbd467d220 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v4RuqdWuBxFpm1MMFYNsJdxVqheB/JV4pq/vtefrFDC868TVuy7tMfZPsrqM850BTMv48z3iq478HJT6NlXc19B4ujavXahqgYGxsVdomCZHLfi/b9gVoHBlXhzewE6g19u+jKzfbdnBy0AjrpPw1uZwIhnTV8vybltF6tijGGa51HhLcvkb/+nHMUaFzO3YXqyYCBdXEGvemI/XDgAYntZu2EWp9KWsfGvarCpVfMthd3yc3zAbouJo/bkE6IzvcZPlTeCeJJ4JFaoNGPO7OE2tcBwWUdpDDIwvqIGDdEI2vSh9sbpoZmRxwCca1liLgD57FXes8c/6vw0gFsIC9h3bEgZDq7kHHliL18vqUlfCd7BoQa/s7MSW5tt/+t3eaGKgi3OV8TBTGttwN8VP3c+QnNKnMtCJSGcmkplUR0jwbNu4ONrdlvKBC20FL4x8Ra8M/CjH5eORsyovHd69lYL7lBqZpWYSbLpTgg9ITOAYwOLKkLsI0QA9t0FBfG/ry2GCH/tnvBo4RF89pDsSIF5/878zl/LC38XJqWWShmoxWhLDif5gqwSQaPFb6jxcnzqOsmOXrF5naueLpm1f6IuzFa/ghRMRvWmKFlnt5XY= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(376002)(346002)(39850400004)(366004)(136003)(396003)(230922051799003)(64100799003)(186009)(451199024)(1800799009)(6486002)(6512007)(6506007)(53546011)(44144004)(478600001)(41300700001)(5660300002)(4326008)(8936002)(8676002)(9686003)(86362001)(1076003)(83380400001)(38100700002)(26005)(66946007)(66476007)(66556008)(235185007)(2906002)(316002)(6916009)(2700100001); DIR:OUT; SFP:1102; X-MS-Exchange-Anti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gOO4/l+jRjL4h/VByLLSPPC0fUAu+9UP2nungkrlaoWjNANKQxXVIVj1JZszyKVewwxhRYL6/HYE8EXezTeG3F4DKBPBQRQkuGp7uOUAt+NnhfcidAOpUEZXoCXr0zgvVtFqEzk2bsk9W8XasSkLm1y3UrKDs0E1nVsfwqOa4PJQH8r5sF64w1yeuII5hlc1gAGfOlQuVM+BH6/TNrKeOR2dc6a2Bgholbr5AMYSRhaASbwvULQFgwcPR0abMKEouEdhYLgHQHJTzkUwiip0CPO9tPrs6zRrvXEP36murDdmj/efPS+Ex+9dUDzge01qpW1POuRf0X/d2OiRPN51TngsVm0hctP1nn9VIAFDmZPUcu/yPMKL/+A+DdoKeuqDBeiUggF3Y2InwCM0ZHHUBC41nf/Jpbu6xC4jUNo3tFIOEyPTeHL04vVfJ9L7HvvSAy8Fnr2ykQrLuvxvw7Se5T0vTVG5AmmhbexUxLLm1IyTwvH6JgDSVFC4dxHhayAvPbWjAFg3kwYhPI72juxjN2rrFCdE6m3CAJDT688pCXqAsA1hqCmosDAfYmBaOOVMho6T0Zkzo9IH77eEfTPA53XpbQ== X-OriginatorOrg: kalrayinc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cfb6faf-4629-445e-d745-08dbd467d220 X-MS-Exchange-CrossTenant-AuthSource: MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2023 08:04:17.6802 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8931925d-7620-4a64-b7fe-20afd86363d3 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DmIuERUkmyIP7qi/Fvwxjih6HaGuGaaQQwMkkVEZTvLgRw4JVA1wbLdnTFiNTJPybGdgdtgdH9ED3De8qSiXhA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MR1P264MB3329 X-ALTERMIMEV2_out: done X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780623285501716747 X-GMAIL-MSGID: 1780623285501716747 On Thu, Oct 19, 2023 at 10:48:17AM -0600, Jeff Law wrote: > On 10/18/23 03:35, Thomas Schwinge wrote: > > > > Is this (case variants) maybe something that has changed in DejaGnu at > > some point in time? (I have not checked.) > No idea :-) > Yes, it changed around 2016. > > I suggest that we adapt all remaining upper-case instances in GCC, > > similar to your change. And/or, as applicable, recognize both variants > > (or ignore case distinctions generally)? > Yea, we should try to get this commonized. Probably wise to recognize both > variants as well -- especially if there are instances of these strings which > aren't under GCC's contorl. > In retrospect, I also think that we the regex should be case insensitive, that will allow to be compatible with older releases of dejagnu and will incur less changes in GCC. (cf. attached patch) > > Given Paul's (and colleagues'?) ongoing work on GCC (Kalray KVX back end, > > complex numbers support), is it maybe now time to enable Git write access > > for him (them?)? > > > > , "write after approval". > Sure. I'd sponsor them. Thanks. May I request an account on sourceware.org, mentioning you as our sponsor? Paul From ce418afa1d3098603e26e1fd2ee262a8ab72e5ab Mon Sep 17 00:00:00 2001 From: Paul Iannetta Date: Tue, 24 Oct 2023 09:48:42 +0200 Subject: [PATCH] dg-extract-results.py: Ignore case in header line DejaGNU changed its header line from "Test Run By" to "Test run by" around 2016. This patch makes it so that both alternatives are correcly detected. contrib/ChangeLog: 2023-10-24 Paul Iannetta * dg-extract-results.py: Make the test_run regex case insensitive. --- contrib/dg-extract-results.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/dg-extract-results.py b/contrib/dg-extract-results.py index 0bc65d30eaf..e92e8756ccc 100644 --- a/contrib/dg-extract-results.py +++ b/contrib/dg-extract-results.py @@ -113,7 +113,8 @@ class Prog: # Whether to create .sum rather than .log output. self.do_sum = True # Regexps used while parsing. - self.test_run_re = re.compile (r'^Test run by (\S+) on (.*)$') + self.test_run_re = re.compile (r'^Test run by (\S+) on (.*)$', + re.IGNORECASE) self.tool_re = re.compile (r'^\t\t=== (.*) tests ===$') self.result_re = re.compile (r'^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED' r'|WARNING|ERROR|UNSUPPORTED|UNTESTED' -- 2.35.1.500.gb896f729e2