From patchwork Mon Oct 28 23:21:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 99739 Return-Path: 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 B41333858D34 for ; Mon, 28 Oct 2024 23:21:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 187D73858D26 for ; Mon, 28 Oct 2024 23:21:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 187D73858D26 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 187D73858D26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730157687; cv=none; b=k3fgtsiQOeyfL08AhcNU7a94hrELP/bUKWF9iKCoU+xKoun0cBPfGqeL2NkEsehTjIh/DcUiEkz9IvyfV8jgeWCaYCFD4AlPKxrC8aeA9zYcc8zIz4pOz97WcnOmXTqlatNROP8iKCq1+ce8EHgYnIstBvFvRCFuxwZXOosZmEE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730157687; c=relaxed/simple; bh=tIe9uqjvib2mwdlM/eoB9TQbZaBiPMr6tYG6SGSoXws=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=W/s/3DzF41jO6Pzl9CO/HVa8tRczqrG1cfPO+yvFTPYrhSOWnZp44dBxEDWYihXzg7fegPjE8XSyrIYWz46Wshmus7IAPe2xOpa+dvb4df0wSa4QHZOCmSjIKjQUqc3lr9VMo0eAd1vfDUvuVyduGhM3GnkB3P9AguUfEuAguCg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1730157684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pnSxuxi9urdUk6pQ0OUDvsoeEw3LUSHMsPCUKNA28sc=; b=hM5C9WrhCI9AtlL8FtFRERHd+HfPi5ivXfoAWE0Xd6k9GFeRA9YFUZh2nIdIM1iasf0TO6 VTZMolUyEEAx8Nw+OkfJZvQ7CkQATgpL6rQvRrSLvf5CFgISbJrdgComvLTad4R/62HLHh 5QivDVWgW/O7CZuojLbiRHgsQ6tgYwI= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-37-cGhvGpILPHGJG-oyQGkO2Q-1; Mon, 28 Oct 2024 19:21:22 -0400 X-MC-Unique: cGhvGpILPHGJG-oyQGkO2Q-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7D78E195608A for ; Mon, 28 Oct 2024 23:21:21 +0000 (UTC) Received: from t14s.localdomain.com (unknown [10.22.88.51]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B5B7219560A3; Mon, 28 Oct 2024 23:21:20 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [pushed: r15-4727] testsuite: drop the "test-" prefix from sarif-output python scripts Date: Mon, 28 Oct 2024 19:21:18 -0400 Message-ID: <20241028232118.2016641-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: 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~patchwork=sourceware.org@gcc.gnu.org Drop the "text-" prefix from the various gcc.dg/sarif-output/test-*.py scripts so that the scripts are close to the .c files they are used by when the files are sorted by name. Successfully regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r15-4727-ga67594d1815272. gcc/testsuite/ChangeLog: * gcc.dg/sarif-output/test-bad-pragma.py: Rename to... * gcc.dg/sarif-output/bad-pragma.py: ...this. * gcc.dg/sarif-output/bad-pragma.c: Update for script renaming. * gcc.dg/sarif-output/test-include-chain-1.py: Rename to... * gcc.dg/sarif-output/include-chain-1.py: ...this. * gcc.dg/sarif-output/include-chain-1.c: Update for script renaming. * gcc.dg/sarif-output/test-include-chain-2.py: Rename to... * gcc.dg/sarif-output/include-chain-2.py: ...this. * gcc.dg/sarif-output/include-chain-2.c: Update for script renaming. * gcc.dg/sarif-output/test-missing-semicolon.py: Rename to... * gcc.dg/sarif-output/missing-semicolon.py: ...this. * gcc.dg/sarif-output/missing-semicolon.c: Update for script renaming. * gcc.dg/sarif-output/test-no-diagnostics.py: Rename to... * gcc.dg/sarif-output/no-diagnostics.py: ...this. * gcc.dg/sarif-output/no-diagnostics.c: Update for script renaming. * gcc.dg/sarif-output/test-werror.py: Rename to... * gcc.dg/sarif-output/werror.py: ...this. * gcc.dg/sarif-output/werror.c: Update for script renaming. Signed-off-by: David Malcolm --- gcc/testsuite/gcc.dg/sarif-output/bad-pragma.c | 2 +- .../gcc.dg/sarif-output/{test-bad-pragma.py => bad-pragma.py} | 0 gcc/testsuite/gcc.dg/sarif-output/include-chain-1.c | 2 +- .../{test-include-chain-1.py => include-chain-1.py} | 0 gcc/testsuite/gcc.dg/sarif-output/include-chain-2.c | 2 +- .../{test-include-chain-2.py => include-chain-2.py} | 0 gcc/testsuite/gcc.dg/sarif-output/missing-semicolon.c | 2 +- .../{test-missing-semicolon.py => missing-semicolon.py} | 0 gcc/testsuite/gcc.dg/sarif-output/no-diagnostics.c | 2 +- .../sarif-output/{test-no-diagnostics.py => no-diagnostics.py} | 0 gcc/testsuite/gcc.dg/sarif-output/werror.c | 2 +- gcc/testsuite/gcc.dg/sarif-output/{test-werror.py => werror.py} | 0 12 files changed, 6 insertions(+), 6 deletions(-) rename gcc/testsuite/gcc.dg/sarif-output/{test-bad-pragma.py => bad-pragma.py} (100%) rename gcc/testsuite/gcc.dg/sarif-output/{test-include-chain-1.py => include-chain-1.py} (100%) rename gcc/testsuite/gcc.dg/sarif-output/{test-include-chain-2.py => include-chain-2.py} (100%) rename gcc/testsuite/gcc.dg/sarif-output/{test-missing-semicolon.py => missing-semicolon.py} (100%) rename gcc/testsuite/gcc.dg/sarif-output/{test-no-diagnostics.py => no-diagnostics.py} (100%) rename gcc/testsuite/gcc.dg/sarif-output/{test-werror.py => werror.py} (100%) diff --git a/gcc/testsuite/gcc.dg/sarif-output/bad-pragma.c b/gcc/testsuite/gcc.dg/sarif-output/bad-pragma.c index db274de4b97a..d8e86b945378 100644 --- a/gcc/testsuite/gcc.dg/sarif-output/bad-pragma.c +++ b/gcc/testsuite/gcc.dg/sarif-output/bad-pragma.c @@ -13,4 +13,4 @@ int nonempty; /* Use a Python script to verify various properties about the generated .sarif file: - { dg-final { run-sarif-pytest bad-pragma.c "test-bad-pragma.py" } } */ + { dg-final { run-sarif-pytest bad-pragma.c "bad-pragma.py" } } */ diff --git a/gcc/testsuite/gcc.dg/sarif-output/test-bad-pragma.py b/gcc/testsuite/gcc.dg/sarif-output/bad-pragma.py similarity index 100% rename from gcc/testsuite/gcc.dg/sarif-output/test-bad-pragma.py rename to gcc/testsuite/gcc.dg/sarif-output/bad-pragma.py diff --git a/gcc/testsuite/gcc.dg/sarif-output/include-chain-1.c b/gcc/testsuite/gcc.dg/sarif-output/include-chain-1.c index 177f528cc62d..442c1377b43c 100644 --- a/gcc/testsuite/gcc.dg/sarif-output/include-chain-1.c +++ b/gcc/testsuite/gcc.dg/sarif-output/include-chain-1.c @@ -39,4 +39,4 @@ PATH/include-chain-1-1.h:2:5: note: previous declaration of 'q' with type 'int' /* Use a Python script to verify various properties about the generated .sarif file: - { dg-final { run-sarif-pytest include-chain-1.c "test-include-chain-1.py" } } */ + { dg-final { run-sarif-pytest include-chain-1.c "include-chain-1.py" } } */ diff --git a/gcc/testsuite/gcc.dg/sarif-output/test-include-chain-1.py b/gcc/testsuite/gcc.dg/sarif-output/include-chain-1.py similarity index 100% rename from gcc/testsuite/gcc.dg/sarif-output/test-include-chain-1.py rename to gcc/testsuite/gcc.dg/sarif-output/include-chain-1.py diff --git a/gcc/testsuite/gcc.dg/sarif-output/include-chain-2.c b/gcc/testsuite/gcc.dg/sarif-output/include-chain-2.c index a04b647d259e..d5e3b0cbf472 100644 --- a/gcc/testsuite/gcc.dg/sarif-output/include-chain-2.c +++ b/gcc/testsuite/gcc.dg/sarif-output/include-chain-2.c @@ -32,4 +32,4 @@ PATH/include-chain-2.h:6:3: warning: double-'free' of 'ptr' [CWE-415] [-Wanalyze /* Use a Python script to verify various properties about the generated .sarif file: - { dg-final { run-sarif-pytest include-chain-2.c "test-include-chain-2.py" } } */ + { dg-final { run-sarif-pytest include-chain-2.c "include-chain-2.py" } } */ diff --git a/gcc/testsuite/gcc.dg/sarif-output/test-include-chain-2.py b/gcc/testsuite/gcc.dg/sarif-output/include-chain-2.py similarity index 100% rename from gcc/testsuite/gcc.dg/sarif-output/test-include-chain-2.py rename to gcc/testsuite/gcc.dg/sarif-output/include-chain-2.py diff --git a/gcc/testsuite/gcc.dg/sarif-output/missing-semicolon.c b/gcc/testsuite/gcc.dg/sarif-output/missing-semicolon.c index 426b930cfc2c..c532fb127d12 100644 --- a/gcc/testsuite/gcc.dg/sarif-output/missing-semicolon.c +++ b/gcc/testsuite/gcc.dg/sarif-output/missing-semicolon.c @@ -19,4 +19,4 @@ int missing_semicolon (void) /* Use a Python script to verify various properties about the generated .sarif file: - { dg-final { run-sarif-pytest missing-semicolon.c "test-missing-semicolon.py" } } */ + { dg-final { run-sarif-pytest missing-semicolon.c "missing-semicolon.py" } } */ diff --git a/gcc/testsuite/gcc.dg/sarif-output/test-missing-semicolon.py b/gcc/testsuite/gcc.dg/sarif-output/missing-semicolon.py similarity index 100% rename from gcc/testsuite/gcc.dg/sarif-output/test-missing-semicolon.py rename to gcc/testsuite/gcc.dg/sarif-output/missing-semicolon.py diff --git a/gcc/testsuite/gcc.dg/sarif-output/no-diagnostics.c b/gcc/testsuite/gcc.dg/sarif-output/no-diagnostics.c index 2536e2ec91b0..539ebda19867 100644 --- a/gcc/testsuite/gcc.dg/sarif-output/no-diagnostics.c +++ b/gcc/testsuite/gcc.dg/sarif-output/no-diagnostics.c @@ -10,4 +10,4 @@ int nonempty; /* Use a Python script to verify various properties about the generated .sarif file: - { dg-final { run-sarif-pytest no-diagnostics.c "test-no-diagnostics.py" } } */ + { dg-final { run-sarif-pytest no-diagnostics.c "no-diagnostics.py" } } */ diff --git a/gcc/testsuite/gcc.dg/sarif-output/test-no-diagnostics.py b/gcc/testsuite/gcc.dg/sarif-output/no-diagnostics.py similarity index 100% rename from gcc/testsuite/gcc.dg/sarif-output/test-no-diagnostics.py rename to gcc/testsuite/gcc.dg/sarif-output/no-diagnostics.py diff --git a/gcc/testsuite/gcc.dg/sarif-output/werror.c b/gcc/testsuite/gcc.dg/sarif-output/werror.c index fa9eb9a1ba06..30f89d53f5cb 100644 --- a/gcc/testsuite/gcc.dg/sarif-output/werror.c +++ b/gcc/testsuite/gcc.dg/sarif-output/werror.c @@ -15,4 +15,4 @@ static int ununsed; /* Use a Python script to verify various properties about the generated .sarif file: - { dg-final { run-sarif-pytest werror.c "test-werror.py" } } */ + { dg-final { run-sarif-pytest werror.c "werror.py" } } */ diff --git a/gcc/testsuite/gcc.dg/sarif-output/test-werror.py b/gcc/testsuite/gcc.dg/sarif-output/werror.py similarity index 100% rename from gcc/testsuite/gcc.dg/sarif-output/test-werror.py rename to gcc/testsuite/gcc.dg/sarif-output/werror.py