2 RUN: mkdir -p %t/dsymdest
3 RUN: cp %p/../Inputs/basic.macho.x86_64 %t/basic.macho.x86_64
5 RUN: dsymutil -accelerator=Pub -oso-prepend-path=%p/.. %t/basic.macho.x86_64
7 Check that the object file in the bundle exists and is sane:
8 RUN: llvm-dwarfdump -a %t/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test
10 Check that we don't create an empty Remarks directory if there are no remarks.
11 RUN: not ls %t/basic.macho.x86_64.dSYM/Contents/Resources/Remarks
13 Check that llvm-dwarfdump -a recognizes the bundle as a dSYM:
14 RUN: llvm-dwarfdump -a %t/basic.macho.x86_64.dSYM | FileCheck %S/basic-linking-x86.test
16 RUN: FileCheck %s --input-file %t/basic.macho.x86_64.dSYM/Contents/Info.plist
18 RUN: dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 -o %t/dsymdest/basic.macho.x86_64.dSYM
19 RUN: llvm-dwarfdump -a %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test
20 RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist
22 ### --------------------------------------------
23 ### Repeat the steps for --linker llvm
26 RUN: mkdir -p %t/dsymdest
27 RUN: cp %p/../Inputs/basic.macho.x86_64 %t/basic.macho.x86_64
29 RUN: dsymutil --linker llvm -accelerator=Pub -oso-prepend-path=%p/.. %t/basic.macho.x86_64
31 Check that the object file in the bundle exists and is sane:
32 RUN: llvm-dwarfdump -a %t/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test
34 Check that we don't create an empty Remarks directory if there are no remarks.
35 RUN: not ls %t/basic.macho.x86_64.dSYM/Contents/Resources/Remarks
37 Check that llvm-dwarfdump -a recognizes the bundle as a dSYM:
38 RUN: llvm-dwarfdump -a %t/basic.macho.x86_64.dSYM | FileCheck %S/basic-linking-x86.test
40 RUN: FileCheck %s --input-file %t/basic.macho.x86_64.dSYM/Contents/Info.plist
42 RUN: dsymutil --linker llvm -oso-prepend-path=%p/.. %t/basic.macho.x86_64 \
43 RUN: -o %t/dsymdest/basic.macho.x86_64.dSYM
44 RUN: llvm-dwarfdump -a %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test
45 RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist
47 CHECK: <?xml version="1.0" encoding="UTF-8"?>
48 CHECK-NEXT: <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
49 CHECK-NEXT: <plist version="1.0">
51 CHECK-NEXT: <key>CFBundleDevelopmentRegion</key>
52 CHECK-NEXT: <string>English</string>
53 CHECK-NEXT: <key>CFBundleIdentifier</key>
54 CHECK-NEXT: <string>com.apple.xcode.dsym.basic.macho.x86_64</string>
55 CHECK-NEXT: <key>CFBundleInfoDictionaryVersion</key>
56 CHECK-NEXT: <string>6.0</string>
57 CHECK-NEXT: <key>CFBundlePackageType</key>
58 CHECK-NEXT: <string>dSYM</string>
59 CHECK-NEXT: <key>CFBundleSignature</key>
60 CHECK-NEXT: <string>????</string>
61 CHECK-NEXT: <key>CFBundleShortVersionString</key>
62 CHECK-NEXT: <string>1.0</string>
63 CHECK-NEXT: <key>CFBundleVersion</key>
64 CHECK-NEXT: <string>1</string>