1 ## Test that we can pass multiple files. There are several ways to do this:
2 ## list them all individually, use --libdir to shorten the list, or use a
3 ## response file (with or without --libdir).
5 # REQUIRES: x86-registered-target
8 # RUN: yaml2obj --docnum=1 %s -o %t.dir/file1
9 # RUN: yaml2obj --docnum=2 %s -o %t.dir/file2
10 # RUN: yaml2obj --docnum=3 %s -o %t.dir/file3
12 # RUN: llvm-tli-checker --triple x86_64-scei-ps4 --report=full \
13 # RUN: %t.dir/file1 %t.dir/file2 %t.dir/file3 | \
16 ## Same result using --libdir.
17 # RUN: llvm-tli-checker --triple x86_64-scei-ps4 --report=full \
18 # RUN: --libdir=%t.dir file1 file2 file3 | \
21 ## And with a response file.
22 # RUN: echo -e "file1\nfile2\nfile3\n" > %t.dir/resp1.txt
23 # RUN: llvm-tli-checker --triple x86_64-scei-ps4 --report=full \
24 # RUN: --libdir=%t.dir @%t.dir/resp1.txt | \
27 # RUN: echo %t.dir/file1 > %t.dir/resp2.txt
28 # RUN: echo %t.dir/file2 >> %t.dir/resp2.txt
29 # RUN: echo %t.dir/file3 >> %t.dir/resp2.txt
30 # RUN: llvm-tli-checker --triple x86_64-scei-ps4 --report=full \
31 # RUN: @%t.dir/resp2.txt | \
34 ## Also check that an archive works. Put file1 and file2 into an archive,
35 ## and pass the archive name plus file3 on the command line.
36 # RUN: rm -f %t.dir/archive.a
37 # RUN: llvm-ar rc %t.dir/archive.a %t.dir/file1 %t.dir/file2
38 # RUN: llvm-tli-checker --triple x86_64-scei-ps4 --report=full \
39 # RUN: --libdir=%t.dir archive.a file3 | \
42 # CHECK: TLI knows {{[0-9]+}} symbols, [[#AVAILABLE:]] available
43 # CHECK: >> TLI no SDK yes: '_ZdaPvj'
44 # CHECK: == TLI yes SDK yes: 'abs'
45 # CHECK: == TLI yes SDK yes: 'calloc'
46 ## The yes/no and yes/yes should add up to the total available.
47 ## The no/yes aren't included in the total available.
48 # CHECK: << Total TLI yes SDK no: [[#AVAILABLE-2]]
49 # CHECK: >> Total TLI no SDK yes: 1{{$}}
50 # CHECK: == Total TLI yes SDK yes: 2{{$}}
52 ## --separate should give one summary per input file (as listed on the
53 # command line; it doesn't break things down by archive member).
54 # RUN: llvm-tli-checker --triple x86_64-scei-ps4 --separate \
55 # RUN: --libdir=%t.dir archive.a file3 | \
56 # RUN: FileCheck %s --check-prefix=SEPARATE
58 # SEPARATE: TLI knows {{[0-9]+}} symbols, [[#AVAILABLE:]] available
59 # SEPARATE: Found 2 global function symbols in '{{.*}}archive.a'
60 # SEPARATE: << Total TLI yes SDK no: [[#AVAILABLE-1]]
61 # SEPARATE: >> Total TLI no SDK yes: 1{{$}}
62 # SEPARATE: == Total TLI yes SDK yes: 1{{$}}
63 # SEPARATE: Found 1 global function symbols in '{{.*}}file3'
64 # SEPARATE: << Total TLI yes SDK no: [[#AVAILABLE-1]]
65 # SEPARATE: >> Total TLI no SDK yes: 0{{$}}
66 # SEPARATE: == Total TLI yes SDK yes: 1{{$}}
73 OSABI: ELFOSABI_FREEBSD
90 OSABI: ELFOSABI_FREEBSD
107 OSABI: ELFOSABI_FREEBSD