• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
3# RUN: rm -rf %t.dir
4# RUN: mkdir -p %t.dir/build1
5# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos %s -o %t.dir/build1/foo.o
6# RUN: cd %t.dir
7# RUN: %lld -platform_version macos 10.10.0 11.0 build1/foo.o -o bar --reproduce repro1.tar
8# RUN: tar xOf repro1.tar repro1/%:t.dir/build1/foo.o > build1-foo.o
9# RUN: cmp build1/foo.o build1-foo.o
10
11# RUN: tar xf repro1.tar repro1/response.txt repro1/version.txt
12# RUN: FileCheck %s --check-prefix=RSP1 < repro1/response.txt
13# RSP1:      {{^}}-platform_version macos 10.10.0 11.0{{$}}
14# RSP1-NOT:  {{^}}repro1{{[/\\]}}
15# RSP1-NEXT: {{[/\\]}}foo.o
16# RSP1-NEXT: -o bar
17# RSP1-NOT:  --reproduce
18
19# RUN: FileCheck %s --check-prefix=VERSION < repro1/version.txt
20# VERSION: LLD
21
22# RUN: mkdir -p %t.dir/build2/a/b/c
23# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos %s -o %t.dir/build2/foo.o
24# RUN: cd %t.dir/build2/a/b/c
25# RUN: echo ./../../../foo.o > %t.dir/build2/filelist
26# RUN: env LLD_REPRODUCE=repro2.tar %lld -filelist %t.dir/build2/filelist -o /dev/null
27# RUN: tar xOf repro2.tar repro2/%:t.dir/build2/foo.o > build2-foo.o
28# RUN: cmp %t.dir/build2/foo.o build2-foo.o
29
30# RUN: tar xf repro2.tar repro2/response.txt repro2/version.txt
31# RUN: FileCheck %s --check-prefix=RSP2 < repro2/response.txt
32# RSP2-NOT:  {{^}}repro2{{[/\\]}}
33# RSP2:      {{[/\\]}}foo.o
34
35.globl _main
36_main:
37  ret
38