[binutils-gdb] testsuites: prune huge files
Jan Beulich
jbeulich@sourceware.org
Fri Mar 13 09:33:02 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7a2692eb7ea30076db1343055181a1e7bf0e397b
commit 7a2692eb7ea30076db1343055181a1e7bf0e397b
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Mar 13 10:31:38 2026 +0100
testsuites: prune huge files
Some tests leave files sometimes well beyond the 10Mb boundary. Remove
those after testing.
Diff:
---
gas/testsuite/gas/mips/mips.exp | 2 ++
ld/testsuite/ld-aarch64/aarch64-elf.exp | 10 ++++++++++
ld/testsuite/ld-aarch64/protections/aarch64-protections.exp | 3 +++
ld/testsuite/ld-arm/arm-elf.exp | 11 +++++++++++
ld/testsuite/ld-elf/linux-x86.exp | 3 +++
ld/testsuite/ld-kvx/kvx-elf.exp | 5 +++++
ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp | 4 ++++
ld/testsuite/ld-powerpc/powerpc.exp | 4 ++++
8 files changed, 42 insertions(+)
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 4ae4a48e286..7d6637728e4 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -1590,6 +1590,8 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test "noreorder"
run_dump_test "align"
+ # Tidy up, to not leave huge files.
+ remote_file host delete tmpdir/align.o
run_dump_test "align2"
run_dump_test "align2-el"
run_dump_test "align3"
diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp
index a0a8867dca1..24c73d530dc 100644
--- a/ld/testsuite/ld-aarch64/aarch64-elf.exp
+++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp
@@ -83,6 +83,9 @@ run_dump_test "emit-relocs-90"
run_dump_test "emit-relocs-90-overflow"
run_dump_test "emit-relocs-92"
+# Tidy up, to not leave large intermediate files.
+remote_file host delete tmpdir/emit-relocs-90-overflow.o
+
run_dump_test "emit-relocs-112"
run_dump_test "emit-relocs-112-overflow"
run_dump_test "emit-relocs-113"
@@ -208,6 +211,9 @@ run_dump_test_lp64 "emit-relocs-558-overflow"
run_dump_test_lp64 "emit-relocs-559"
run_dump_test_lp64 "emit-relocs-560"
+# Tidy up, to not leave large intermediate files.
+remote_file host delete tmpdir/emit-relocs-528-overflow.o
+
run_dump_test "reloc-overflow-bad"
# test addend correctness when --emit-relocs specified for non-relocatable obj.
@@ -236,6 +242,10 @@ run_dump_test "farcall-b-section"
run_dump_test "farcall-bl-section"
run_dump_test "farcall-group"
+# Tidy up, to not leave huge intermediate files.
+remote_file host delete tmpdir/farcall-b-gsym.o tmpdir/farcall-group.o
+remote_file host delete tmpdir/farcall-b-plt.o tmpdir/farcall-bl-plt.o
+
run_dump_test "tls-relax-all"
run_dump_test "tls-relax-all-ilp32"
run_dump_test "tls-relax-gd-le"
diff --git a/ld/testsuite/ld-aarch64/protections/aarch64-protections.exp b/ld/testsuite/ld-aarch64/protections/aarch64-protections.exp
index e27a2550fba..52ae5683246 100644
--- a/ld/testsuite/ld-aarch64/protections/aarch64-protections.exp
+++ b/ld/testsuite/ld-aarch64/protections/aarch64-protections.exp
@@ -68,6 +68,9 @@ foreach t $test_lp64_list {
run_dump_test_lp64 [file rootname $t]
}
+# Tidy up, to not leave huge intermediate files.
+remote_file host delete tmpdir/bti-far-3a.o tmpdir/bti-far-3b.o tmpdir/bti-far-3c.o
+
foreach t $test_list {
# We need to strip the ".d", but can leave the dirname.
run_dump_test [file rootname $t] \
diff --git a/ld/testsuite/ld-arm/arm-elf.exp b/ld/testsuite/ld-arm/arm-elf.exp
index 9380e4a15b4..da0932ab416 100644
--- a/ld/testsuite/ld-arm/arm-elf.exp
+++ b/ld/testsuite/ld-arm/arm-elf.exp
@@ -319,6 +319,9 @@ append armelftests_common $tmp
run_ld_link_tests $armelftests_common
+# Tidy up, to not leave huge files.
+remote_file host delete tmpdir/group-relocs.o tmpdir/group-relocs
+
set armelftests {
{"Thumb-1 BL" "-Ttext 0x1000 --section-start .foo=0x401000" "" "" {thumb1-bl.s}
{{objdump -dr thumb1-bl.d}}
@@ -1163,6 +1166,12 @@ for {set i 0} {$i < $neabi_common} {incr i} {
run_ld_link_tests $armeabitests_common
run_ld_link_tests $armeabitests
+# Tidy up, to not leave huge (largely intermediate) files.
+remote_file host delete tmpdir/cortex-a8-far-1.o tmpdir/cortex-a8-far
+remote_file host delete tmpdir/farcall-group4.o tmpdir/farcall-group-limit
+remote_file host delete tmpdir/farcall-mixed-lib1.o tmpdir/farcall-mixed-lib2.o
+remote_file host delete tmpdir/farcall-mixed-lib.so
+
if { [istarget "arm*-*-uclinuxfdpiceabi"] } {
run_ld_link_tests $armfdpiceabitests
}
@@ -1251,6 +1260,8 @@ run_dump_test "gc-hidden-1"
run_dump_test "protected-data"
run_dump_test "stm32l4xx-cannot-fix-it-block"
run_dump_test "stm32l4xx-cannot-fix-far-ldm"
+# Tidy up, to not leave huge intermediate files.
+remote_file host delete tmpdir/stm32l4xx-cannot-fix-far-ldm.o
set arm_unwind_tests {
{"unwind-rel" "-r -Tarm.ld" "" "" {unwind-rel1.s unwind-rel2.s unwind-rel3.s}
{{readelf -ur unwind-rel.d}}
diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp
index d683b6bb902..e271ff938a3 100644
--- a/ld/testsuite/ld-elf/linux-x86.exp
+++ b/ld/testsuite/ld-elf/linux-x86.exp
@@ -268,6 +268,9 @@ if { [check_compiler_available] && [compiler_honours_aligned] } {
"-fpie" \
] \
]
+ # Tidy up, to not leave huge files.
+ remote_file host delete tmpdir/p_align-1a tmpdir/p_align-1b
+ remote_file host delete tmpdir/p_align-1c tmpdir/p_align-1d
} else {
unsupported "p_align-1"
}
diff --git a/ld/testsuite/ld-kvx/kvx-elf.exp b/ld/testsuite/ld-kvx/kvx-elf.exp
index f54859ffccd..2d373ff6aee 100644
--- a/ld/testsuite/ld-kvx/kvx-elf.exp
+++ b/ld/testsuite/ld-kvx/kvx-elf.exp
@@ -69,3 +69,8 @@ if { ![istarget "kvx*-linux-*"] } {
run_dump_test "farcall-call-section" $extra_32bits
run_dump_test "pcrel-reloc" [list [list as -m32] [list ld -melf32kvx] [list dump pcrel-reloc-32bits.d]]
}
+
+# Tidy up, to not leave huge intermediate files.
+remote_file host delete tmpdir/farcall-call-plt.o
+remote_file host delete tmpdir/farcall-goto-gsym.o
+remote_file host delete tmpdir/farcall-goto-plt.o
diff --git a/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp b/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp
index e030147842b..d702e5138c6 100644
--- a/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp
+++ b/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp
@@ -51,6 +51,10 @@ if [istarget "loongarch64-*-*"] {
run_dump_test "relax-sym-size-1"
run_dump_test "relax-sym-size-2"
run_dump_test "check_got_relax"
+
+ # Tidy up, to not leave huge intermediate files.
+ remote_file host delete tmpdir/relax-medium-call.o
+ remote_file host delete tmpdir/relax-medium-call-1.o
}
if [istarget "loongarch32-*-*"] {
diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp
index 416c28b0427..cd16d70e8c7 100644
--- a/ld/testsuite/ld-powerpc/powerpc.exp
+++ b/ld/testsuite/ld-powerpc/powerpc.exp
@@ -481,6 +481,10 @@ if [ supports_ppc64 ] then {
run_dump_test "pr28827-2"
}
+# Tidy up, to not leave huge (largely intermediate) files.
+remote_file host delete tmpdir/big.o tmpdir/rrelax tmpdir/relbrlt.o
+remote_file host delete tmpdir/tlsdesc4.o tmpdir/tlsdesc4
+
run_dump_test "localgot"
run_dump_test "tlsldopt32"
More information about the Binutils-cvs
mailing list