]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
testsuites: prune huge files
authorJan Beulich <jbeulich@suse.com>
Fri, 13 Mar 2026 09:31:38 +0000 (10:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Mar 2026 09:31:38 +0000 (10:31 +0100)
Some tests leave files sometimes well beyond the 10Mb boundary. Remove
those after testing.

gas/testsuite/gas/mips/mips.exp
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/protections/aarch64-protections.exp
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-elf/linux-x86.exp
ld/testsuite/ld-kvx/kvx-elf.exp
ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp
ld/testsuite/ld-powerpc/powerpc.exp

index 4ae4a48e286f842dac254ea4be59cedec969a40e..7d6637728e427efccc7223ba1d7bf7c25f634210 100644 (file)
@@ -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"
index a0a8867dca1bb876fa2efd3088e30db22f8b67a3..24c73d530dce16fbb03e920955f259ccab956514 100644 (file)
@@ -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"
index e27a2550fba5fd7d8cedb5cf3ca2ee178648b3b7..52ae568324611789d6f1a1c3fd5a54b13f03eefc 100644 (file)
@@ -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] \
index 9380e4a15b472339917fd50b0ecb87e78b851b17..da0932ab416a96235fdaa09d254e030bc9fb2554 100644 (file)
@@ -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}}
index d683b6bb90227f9d64a187028ee28b0100654cb1..e271ff938a39d0def3a4f66c73845bcb44250cc4 100644 (file)
@@ -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"
 }
index f54859ffccde9a2db7d4c60de8617cc77fac355e..2d373ff6aeed540d25a208111bc3a8d68b459aa7 100644 (file)
@@ -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
index e030147842bac93c698609bb9037691cb0485dba..d702e5138c692136d1b53d31519df9d50dafea01 100644 (file)
@@ -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-*-*"] {
index 416c28b042700beb53c6f448f230c4a3db2002ed..cd16d70e8c7b9882ffa07ae67d5600cdeff51749 100644 (file)
@@ -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"