[pushed:,r15-4727] testsuite: drop the "test-" prefix from sarif-output python scripts

Message ID 20241028232118.2016641-1-dmalcolm@redhat.com
State Committed
Commit a67594d181527218d8c0316ef68af238f8d80e87
Headers
Series [pushed:,r15-4727] testsuite: drop the "test-" prefix from sarif-output python scripts |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply

Commit Message

David Malcolm Oct. 28, 2024, 11:21 p.m. UTC
  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 <dmalcolm@redhat.com>
---
 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%)
  

Patch

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