[PATCH 1/4] testsuites: prune huge files

Jan Beulich jbeulich@suse.com
Tue Mar 3 15:43:42 GMT 2026


Some tests leave files sometimes well beyond the 10Mb boundary. Remove
those after testing.

--- 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"
--- 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-over
 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"
--- 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] \
--- 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
 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}}
--- a/ld/testsuite/ld-elf/linux-x86.exp
+++ b/ld/testsuite/ld-elf/linux-x86.exp
@@ -268,6 +268,9 @@ if { [check_compiler_available] && [comp
 	    "-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"
 }
--- 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
--- 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-*-*"] {
--- 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 mailing list