Skip to content

Commit 2acb01b

Browse files
[𝘀𝗽𝗿] initial version
Created using spr 1.3.6
2 parents 3ed91d8 + 63eba84 commit 2acb01b

25 files changed

+145
-85
lines changed

lld/test/COFF/color-diagnostics.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Windows command prompt doesn't support ANSI escape sequences.
2-
# REQUIRES: shell
2+
# UNSUPPORTED: system-windows
33

44
# RUN: not lld-link -xyz --color-diagnostics /nosuchfile 2>&1 \
55
# RUN: | FileCheck -check-prefix=COLOR %s

lld/test/COFF/linkrepro-res.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# REQUIRES: x86, shell
1+
# REQUIRES: x86
2+
# Unsupported on Windows due to maximum path length limitations.
3+
# UNSUPPORTED: system-windows
24

35
# RUN: rm -rf %t.dir
46
# RUN: mkdir -p %t.dir/build

lld/test/COFF/linkrepro.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# REQUIRES: x86, shell
1+
# REQUIRES: x86
2+
# Unsupported on Windows due to maximum path length limitations.
3+
# UNSUPPORTED: system-windows
24

35
# RUN: rm -rf %t.dir
46
# RUN: split-file %s %t.dir

lld/test/COFF/lto-cache-warnings.ll

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: x86, shell
1+
; REQUIRES: x86
22

33
; RUN: opt -module-hash -module-summary %s -o %t.o
44
; RUN: opt -module-hash -module-summary %p/Inputs/lto-cache.ll -o %t2.o
@@ -20,13 +20,17 @@
2020
;; Get the total size of created cache files.
2121
; RUN: rm -rf %t && mkdir %t && cd %t
2222
; RUN: lld-link /lldltocache:%t /lldltocachepolicy:prune_interval=0s:cache_size_bytes=32k /out:%t3 /entry:main %t2.o %t.o 2>&1
23-
; RUN: %python -c "import os, sys; print(sum(os.path.getsize(filename) for filename in os.listdir('.') if os.path.isfile(filename) and filename.startswith('llvmcache-')))" > %t.size.txt
23+
; RUN: %python -c "import os, sys; size=sum(os.path.getsize(filename) for filename in os.listdir('.') if os.path.isfile(filename) and filename.startswith('llvmcache-')); print(size+5); print(size-5)" > %t.size.txt
2424

2525
;; Case 2: If the total size of the cache files created by the current link job is less than the maximum size for the cache directory in bytes, there is no warning.
26-
; RUN: lld-link /verbose /lldltocache:%t /lldltocachepolicy:prune_interval=0s:cache_size_bytes=$(($(cat %t.size.txt) + 5)) /out:%t3 /entry:main %t2.o %t.o 2>&1 | FileCheck %s --implicit-check-not=warning:
26+
; RUN: echo -n "/lldltocachepolicy:prune_interval=0s:cache_size_bytes=" > %t.response
27+
; RUN: head -1 %t.size.txt >> %t.response
28+
; RUN: lld-link /verbose /lldltocache:%t @%t.response /out:%t3 /entry:main %t2.o %t.o 2>&1 | FileCheck %s --implicit-check-not=warning:
2729

2830
;; Case 3: If the total size of the cache files created by the current link job exceeds the maximum size for the cache directory in bytes, a warning is given.
29-
; RUN: lld-link /verbose /lldltocache:%t /lldltocachepolicy:prune_interval=0s:cache_size_bytes=$(($(cat %t.size.txt) - 5)) /out:%t3 /entry:main %t2.o %t.o 2>&1 | FileCheck %s --check-prefix=SIZE
31+
; RUN: echo -n "/lldltocachepolicy:prune_interval=0s:cache_size_bytes=" > %t.response
32+
; RUN: tail -1 %t.size.txt >> %t.response
33+
; RUN: lld-link /verbose /lldltocache:%t @%t.response /out:%t3 /entry:main %t2.o %t.o 2>&1 | FileCheck %s --check-prefix=SIZE
3034

3135
;; Check emit two warnings if pruning happens due to reach both the size and number limits.
3236
; RUN: lld-link /lldltocache:%t /lldltocachepolicy:prune_interval=0s:cache_size_files=1:cache_size_bytes=1 /out:%t3 /entry:main %t2.o %t.o 2>&1 | FileCheck %s --check-prefixes=NUM,SIZE

lld/test/ELF/arm-exidx-range.s

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// REQUIRES: arm, shell
1+
// REQUIRES: arm
2+
// Fails for unclear reasons on 32-bit windows
3+
// UNSUPPORTED: system-windows
24
// RUN: llvm-mc --arm-add-build-attributes --triple=armv7a-linux-gnueabihf -filetype=obj %s -o %t.o
35
// RUN: echo "SECTIONS { \
46
// RUN: . = 0x80000000; \

lld/test/ELF/color-diagnostics.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Windows command prompt doesn't support ANSI escape sequences.
2-
# REQUIRES: shell
2+
# UNSUPPORTED: system-windows
33

44
# RUN: not ld.lld -xyz --color-diagnostics /nosuchfile 2>&1 \
55
# RUN: | FileCheck -check-prefix=COLOR %s

lld/test/ELF/file-access.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# REQUIRES: x86, shell
1+
# REQUIRES: x86
2+
# UNSUPPORTED: system-windows
23

34
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
45
# RUN: ld.lld -r %t.o -o %t1.o

lld/test/ELF/linkerscript/invalid.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## We can't write quoted strings that are interpreted the same way
66
## by all echo commands. So, we don't want to run this on Windows.
77

8-
# REQUIRES: shell
8+
# UNSUPPORTED: system-windows
99

1010
# RUN: mkdir -p %t.dir
1111

lld/test/ELF/lto/cache-warnings.ll

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: x86, shell
1+
; REQUIRES: x86
22
; UNSUPPORTED: main-run-twice
33

44
; RUN: opt -module-hash -module-summary %s -o %t.o
@@ -21,13 +21,17 @@
2121
;; Get the total size of created cache files.
2222
; RUN: rm -rf %t && mkdir %t && cd %t
2323
; RUN: ld.lld --thinlto-cache-dir=%t --thinlto-cache-policy=prune_interval=0s:cache_size_bytes=32k %t2.o %t.o -o %t3 2>&1
24-
; RUN: %python -c "import os, sys; print(sum(os.path.getsize(filename) for filename in os.listdir('.') if os.path.isfile(filename) and filename.startswith('llvmcache-')))" > %t.size.txt
24+
; RUN: %python -c "import os, sys; size=sum(os.path.getsize(filename) for filename in os.listdir('.') if os.path.isfile(filename) and filename.startswith('llvmcache-')); print(size+5); print(size-5)" > %t.size.txt
2525

2626
;; Case 2: If the total size of the cache files created by the current link job is less than the maximum size for the cache directory in bytes, there is no warning.
27-
; RUN: ld.lld --verbose --thinlto-cache-dir=%t --thinlto-cache-policy=prune_interval=0s:cache_size_bytes=$(($(cat %t.size.txt) + 5)) %t2.o %t.o -o %t3 2>&1 | FileCheck %s --implicit-check-not=warning:
27+
; RUN: echo -n "--thinlto-cache-policy=prune_interval=0s:cache_size_bytes=" > %t.response
28+
; RUN: head -1 %t.size.txt >> %t.response
29+
; RUN: ld.lld --verbose --thinlto-cache-dir=%t @%t.response %t2.o %t.o -o %t3 2>&1 | FileCheck %s --implicit-check-not=warning:
2830

2931
;; Case 3: If the total size of the cache files created by the current link job exceeds the maximum size for the cache directory in bytes, a warning is given.
30-
; RUN: ld.lld --verbose --thinlto-cache-dir=%t --thinlto-cache-policy=prune_interval=0s:cache_size_bytes=$(($(cat %t.size.txt) - 5)) %t2.o %t.o -o %t3 2>&1 | FileCheck %s --check-prefixes=SIZE,WARN
32+
; RUN: echo -n "--thinlto-cache-policy=prune_interval=0s:cache_size_bytes=" > %t.response
33+
; RUN: tail -1 %t.size.txt >> %t.response
34+
; RUN: ld.lld --verbose --thinlto-cache-dir=%t @%t.response %t2.o %t.o -o %t3 2>&1 | FileCheck %s --check-prefixes=SIZE,WARN
3135

3236
;; Check emit two warnings if pruning happens due to reach both the size and number limits.
3337
; RUN: ld.lld --thinlto-cache-dir=%t --thinlto-cache-policy=prune_interval=0s:cache_size_files=1:cache_size_bytes=1 %t2.o %t.o -o %t3 2>&1 | FileCheck %s --check-prefixes=NUM,SIZE,WARN

lld/test/ELF/lto/comdat-nodeduplicate.ll

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: x86, shell
1+
; REQUIRES: x86
22

33
;; Keep __profd_foo in a nodeduplicate comdat, despite a comdat of the same name
44
;; in a previous object file.
@@ -36,19 +36,25 @@
3636

3737
; RUN: ld.lld --thinlto-index-only --save-temps -u foo %t/a.bc %t/b.bc -o %t/ab
3838
; RUN: FileCheck %s --check-prefix=RESOL_AB < %t/ab.resolution.txt
39-
; RUN: (llvm-dis < %t/b.bc && llvm-dis < %t/b.bc.thinlto.bc) | FileCheck %s --check-prefix=IR_AB
39+
; RUN: llvm-dis < %t/b.bc > %t.out
40+
; RUN: llvm-dis < %t/b.bc.thinlto.bc >> %t.out
41+
; RUN: FileCheck %s --check-prefix=IR_AB --input-file %t.out
4042
; RUN: ld.lld -u foo %t/a.bc %t/b.bc -o %t/ab
4143
; RUN: llvm-readelf -x .data %t/ab | FileCheck %s --check-prefix=DATA
4244

4345
; RUN: ld.lld --thinlto-index-only --save-temps -u foo %t/a.bc --start-lib %t/b.bc --end-lib -o %t/ab
4446
; RUN: FileCheck %s --check-prefix=RESOL_AB < %t/ab.resolution.txt
45-
; RUN: (llvm-dis < %t/b.bc && llvm-dis < %t/b.bc.thinlto.bc) | FileCheck %s --check-prefix=IR_AB
47+
; RUN: llvm-dis < %t/b.bc > %t.out
48+
; RUN: llvm-dis < %t/b.bc.thinlto.bc >> %t.out
49+
; RUN: FileCheck %s --check-prefix=IR_AB --input-file %t.out
4650
; RUN: ld.lld -u foo %t/a.bc --start-lib %t/b.bc --end-lib -o %t/ab
4751
; RUN: llvm-readelf -x .data %t/ab | FileCheck %s --check-prefix=DATA
4852

4953
; RUN: ld.lld --thinlto-index-only --save-temps -u foo -u c %t/a.bc --start-lib %t/b.bc %t/c.bc --end-lib -o %t/abc
5054
; RUN: FileCheck %s --check-prefix=RESOL_ABC < %t/abc.resolution.txt
51-
; RUN: (llvm-dis < %t/b.bc && llvm-dis < %t/b.bc.thinlto.bc) | FileCheck %s --check-prefix=IR_ABC
55+
; RUN: llvm-dis < %t/b.bc > %t.out
56+
; RUN: llvm-dis < %t/b.bc.thinlto.bc >> %t.out
57+
; RUN: FileCheck %s --check-prefix=IR_ABC --input-file %t.out
5258
; RUN: ld.lld -u foo %t/a.bc --start-lib %t/b.bc %t/c.bc --end-lib -o %t/abc
5359
; RUN: llvm-readelf -x .data %t/abc | FileCheck %s --check-prefix=DATA
5460

0 commit comments

Comments
 (0)