| 1 |
RUN: rm -rf %t |
| 2 |
RUN: mkdir -p %t/dsymdest |
| 3 |
RUN: cp %p/../Inputs/basic.macho.x86_64 %t/basic.macho.x86_64 |
| 4 |
|
| 5 |
RUN: dsymutil -accelerator=Pub -oso-prepend-path=%p/.. %t/basic.macho.x86_64 |
| 6 |
|
| 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 |
| 9 |
|
| 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 |
| 12 |
|
| 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 |
| 15 |
|
| 16 |
RUN: FileCheck %s --input-file %t/basic.macho.x86_64.dSYM/Contents/Info.plist |
| 17 |
|
| 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 |
| 21 |
|
| 22 |
### -------------------------------------------- |
| 23 |
### Repeat the steps for --linker parallel |
| 24 |
|
| 25 |
RUN: rm -rf %t |
| 26 |
RUN: mkdir -p %t/dsymdest |
| 27 |
RUN: cp %p/../Inputs/basic.macho.x86_64 %t/basic.macho.x86_64 |
| 28 |
|
| 29 |
RUN: dsymutil --linker parallel -accelerator=Pub -oso-prepend-path=%p/.. %t/basic.macho.x86_64 |
| 30 |
|
| 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 |
| 33 |
|
| 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 |
| 36 |
|
| 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 |
| 39 |
|
| 40 |
RUN: FileCheck %s --input-file %t/basic.macho.x86_64.dSYM/Contents/Info.plist |
| 41 |
|
| 42 |
RUN: dsymutil --linker parallel -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 |
| 46 |
|
| 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"> |
| 50 |
CHECK-NEXT: <dict> |
| 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> |
| 65 |
CHECK-NEXT: </dict> |
| 66 |
CHECK-NEXT: </plist> |