[flang] Update CommandTest for AIX (NFC) (#118403)
[llvm-project.git] / llvm / test / tools / dsymutil / X86 / remarks-linking-archive.text
blob47f9df82296fedf3b913a372de0f7f590cbf688b
1 RUN: rm -rf %t
2 RUN: mkdir -p %t
3 RUN: cat %p/../Inputs/remarks/basic.macho.remarks.archive.x86_64 > %t/basic.macho.remarks.archive.x86_64
5 RUN: dsymutil -oso-prepend-path=%p/../Inputs -remarks-prepend-path=%p/../Inputs %t/basic.macho.remarks.archive.x86_64
7 Check that the remark file in the bundle exists and is sane:
8 RUN: llvm-bcanalyzer -dump %t/basic.macho.remarks.archive.x86_64.dSYM/Contents/Resources/Remarks/basic.macho.remarks.archive.x86_64 | FileCheck %s
10 RUN: dsymutil --linker parallel -oso-prepend-path=%p/../Inputs -remarks-prepend-path=%p/../Inputs %t/basic.macho.remarks.archive.x86_64
12 Check that the remark file in the bundle exists and is sane:
13 RUN: llvm-bcanalyzer -dump %t/basic.macho.remarks.archive.x86_64.dSYM/Contents/Resources/Remarks/basic.macho.remarks.archive.x86_64 | FileCheck %s
15 Check that we don't error if we're missing remark files from an archive, but we warn instead.
16 Instead of creating a new binary, just remove the remarks prepend path.
17 RUN: dsymutil -oso-prepend-path=%p/../Inputs %t/basic.macho.remarks.archive.x86_64 2>&1 | FileCheck -DMSG=%errc_ENOENT %s --check-prefix=CHECK-MISSING
19 RUN: dsymutil --linker parallel -oso-prepend-path=%p/../Inputs %t/basic.macho.remarks.archive.x86_64 2>&1 | FileCheck -DMSG=%errc_ENOENT %s --check-prefix=CHECK-MISSING
21 CHECK: <Meta
22 CHECK: <Remark Num
23 CHECK: <Remark Num
24 CHECK: <Remark Num
25 CHECK: <Remark Num
26 CHECK: <Remark Num
27 CHECK: <Remark Num
28 CHECK: <Remark Num
29 CHECK: <Remark Num
30 CHECK: <Remark Num
31 CHECK: <Remark Num
32 CHECK: <Remark Num
33 CHECK: <Remark Num
34 CHECK: <Remark Num
35 CHECK: <Remark Num
36 CHECK: <Remark Num
37 CHECK: <Remark Num
38 CHECK: <Remark Num
39 CHECK: <Remark Num
40 CHECK: <Remark Num
41 CHECK: <Remark Num
42 CHECK: <Remark Num
43 CHECK-NOT: <Remark Num
45 CHECK-MISSING: warning: '/remarks/basic1.macho.remarks.x86_64.opt.bitstream': [[MSG]]
46 CHECK-MISSING-NEXT: note: while processing {{.*}}libbasic.a(basic1.macho.remarks.x86_64.o)
47 CHECK-MISSING-NEXT: warning: '/remarks/basic2.macho.remarks.x86_64.opt.bitstream': [[MSG]]
48 CHECK-MISSING-NEXT: note: while processing {{.*}}libbasic.a(basic2.macho.remarks.x86_64.o)
49 CHECK-MISSING-NEXT: warning: '/remarks/basic3.macho.remarks.x86_64.opt.bitstream': [[MSG]]
50 CHECK-MISSING-NEXT: note: while processing {{.*}}libbasic.a(basic3.macho.remarks.x86_64.o)